Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I map an analogue acquired signal from LabVIEW to Simulink via the Simulation Interface toolkit?

Hi Folks

 

I am trying to pass an acquired signal from LabVIEW to a model in Simulink using the Simulation Interface Toolkit.

 

I can use a numeric control to pass a Double to my Simulink model no problem. However, when I try to map a continuously sampled analogue signal, it does not appear in the SIT Connection Manager, in the same way that the numeric control does.

 

I have tried using "Convert from Dynamic Data" to produce a series of Doubles, but this also will not appear in the SIT connection manager.

 

 

I attach screenshots of the LabVIEW and Simulink models.

 

 

Many thanks in advance

 

 

Stephen

 

 

LabVIEW 2010

Matlab R2008a

Download All
0 Kudos
Message 1 of 3
(3,763 Views)

Hi Stephen,

 

The reason that you do not see the DAQmx channels is that the method of running the model in simulink as you have described is used for creating the user interface.  I would have to have a look to see if we might be able to leverage that to work with DAQmx but normally we would compile the model using the Real-Time Workshop and can import this with DAQmx.  See the article at http://zone.ni.com/devzone/cda/tut/p/id/4611 for details on this.

 

Regards,

James Mc
========
CLA and cRIO Fanatic
My writings on LabVIEW Development are at devs.wiresmithtech.com
0 Kudos
Message 2 of 3
(3,751 Views)

Ah, I see.

 

MATLAB is encountering errors when building the DLL, I need to sort this out, and then re-try!

 

Many thanks for your reply - I will keep working on a solution.

 

 

Stephen

0 Kudos
Message 3 of 3
(3,735 Views)