LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Simulink data in labview

Hello everyone !

I have made an algorithm in labview and the simulink model data needs to be manipulated in this algorithm. The output of this algorithm is to be fed back in simulink model. I am able to map labview front panel controls with simulink model but i cannot use its data in block diagram window. How do i do it ?

0 Kudos
Message 1 of 3
(1,472 Views)

Here you have three options:

1. Create a DLL from your model and use the Model Interface Toolkit (http://sine.ni.com/nips/cds/view/p/lang/en/nid/211815) to load the model into LabVIEW;

2. Convert your model into a LabVIEW Control Design and Simulation (http://www.ni.com/white-paper/11281/en/) SubSystem and use the Control and Simulation Loop to run the model;

3. Use some sort of communication between LabVIEW and Simulink (like OPC server) to communicate between simulations. This last option, although possible, it requires some sort of synchronization between products to avoid the loop to run too fast.

 

Hopefully this helps,

Barp - Control, Simulation, RTT and HIL - National Instruments
Message 2 of 3
(1,437 Views)

Greetings sir,

I have tried these two options.

I tried making DLL of my model but it is not creating DLL.

I also tried simulation model converter but, SimPowerSystem blocks like transformers/resistors etc are converted into blocks having no input or output port.

If i try to convert my model, then each component of my model is converted into a VI, a single model is not created. 

 

0 Kudos
Message 3 of 3
(1,377 Views)