06-01-2011 06:07 AM
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
06-02-2011 10:51 AM
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,
06-03-2011 08:25 AM
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