LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulation Interface Toolkit 3.0

Hi, Thsa

I read those posts, actually they are really very helpful for my project too.

I have the similar problems: a. I want to send certain analog input from DAQ device as the input for the simulation, and use the output from the simulation algorithm as analog output.  (I am working on your suggestion now)  b. A bigger problem I am facing now is how can I let the simulation running in LV with certain frequency automatically like doing signal sampling. Currently, I am only allowd to manipulate the running of simulation by 'Start' & 'Stop' button manually.  (That is not good enough for my application) I want the updating from analog signals could be synchronized with the simulation in LV.

 

Thanks for your help!

0 Kudos
Message 11 of 13
(855 Views)

Hello ThSa,

thank you so much for your help. Now it is working!

I had used the property node before as you had told me! But at the beginning I used it in the wrong way. I had just chosen the attribute "value" and not "value signaling" as you had already told me the first time. I had overseen this attribute!!

I don't know what I would have done without you. I am so glad you could help me.

0 Kudos
Message 12 of 13
(843 Views)
Zxustc,
unfortenately it is not possible to change the simulation parameters of Simulink via LabVIEW.

If you have the RT workshop (Mathworks) installed, you have the opportunity to generate for DAQmx a separate driver VI with discrete timing.
With the compiled mdl file (output:dll) you can establish a simple driver VI. Start the SIT Connection Manager in LV and chang the Model DLL Path. Afterwardschange the "Execution Host" to Real-Time Target. In your case it is necessary to use as network adress "localhost" (same as for the Simulation Environment). Afterwards the Tab "Hardware I/O" becomes active and you may change the settings for DAQmx. At the end click on "Build Model Files.

For additional information about it, please have a look under the following location: LabVIEW Help -> Toolkits -> Simulation Interface Toolkit -> Simulation Interface Toolkit How-To


BR,
ThSa

0 Kudos
Message 13 of 13
(823 Views)