question

J avatar image
0 Likes"
J asked J commented

Something about module sdk and dll

I'm doing the module sdk and dll through the user manual. But I'm confused with some step.

Below is where I am now. I don't know how to do this part. I even can't find out how to clear object's variables sub-tree.... Can somebody give me some hints. I'm in a hurry. Much thanks.

1634701631666.png

FlexSim 20.0.10
module sdkdllmodulesdll c++
1634701631666.png (56.7 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered J commented

I haven't worked with the module SDK before but I can hopefully help you with those steps.

The library is located in the "Main" tree. You can insert new nodes into the tree by right clicking on an existing node and (under "Node") choosing "Insert After" (inserts a new node at the same relative level, directly after the selected one - shortcut "Spacebar") or "Insert Into" (creates a new subnode in the selected node - shortcut "Enter").

I believe "clearing" means to simply delete all subnodes inside the "variables" and "behaviour" nodes. Mark all subnodes by holding "Shift" and dragging the selection box across, then hit "Delete/Del".

1634712715947.gif


1634712715947.gif (308.3 KiB)
· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

J avatar image J Phil BoBo ♦♦ commented ·
Okay, thank you very much!!!
0 Likes 0 ·
J avatar image J commented ·

Thanks, it's truly help.

By the way, do you know how to do step 7-step 8. I try to change, but when I shut down the window, it become to it's original setting. I just delete it and add a same variables by myself. But, their is a compiler console in the first picture. Last question, why the words of initial settings is purple?

1634779403560.png1634779421474.png

0 Likes 0 ·
1634779403560.png (181.2 KiB)
1634779421474.png (14.0 KiB)
Felix Möhlmann avatar image Felix Möhlmann J commented ·

The purple text signifies that the node stores "Coupling Data" (a link to a different node). You can change the datatype of nodes in the right-click menu. I believe the error message is caused by the new node not being of that type.

1634791609230.png

To change a node's value without it reverting to the original value, you should be able to use the sampler tool that appears in the properties when a node is selected.

1634791584628.png

0 Likes 0 ·
1634791584628.png (6.6 KiB)
1634791609230.png (18.0 KiB)
J avatar image J Felix Möhlmann commented ·

Got it. Thanks very much!!!

0 Likes 0 ·