Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

interface toolkit

Hi i have a problem with compactdaq, i have a simulink model and i want it to interact with labview using the compactdaq to real controlling a process.I send you an example of the matlab model to be more specific: in this model i want to match the out1 parameter with the analog out of the compact to give voltage to an actuator and the ln1 parameter with the analog input of compact to acquire data. In labview i should change parameters like Constant or the Gain in Subsystem and display data. I would like to know if it's possible do something like this and how.Thanks a lot
0 Kudos
Message 1 of 5
(3,459 Views)
 

Dear Freddino,   

Rigth now I'm not able to look at your model but I would like to give you a general answer.   

I think that, depending on the complexity of your simulink model and the cost you can afford you can choose either of this two ways:   

1)Re-implement you control system using only LabView, it should be possibile.
2)Use the Simulation Interface Toolkit thus making Simulink and LabView working together.   

The second choice allows you the possibility to connect the simulink model directly to the cDAQ hardware through LabView and DAQmx drivers.

Best Regards

 

 

 

FiloP
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
Richard P. Feynman
0 Kudos
Message 2 of 5
(3,441 Views)
Thank for the answer, i think too that the best way to do this is to implement all with labview, because is more simple to interact with compacdaq(Matlab haven't an interface for compactdaq) and because with labview i can traspose all the models i do in matlab.The only problem is my professor that want i try this Matlab-Labview interaction, i think i'll speak to him 😃
0 Kudos
Message 3 of 5
(3,441 Views)

I see,

If this is the case probably the fastest solution is revamping the work in Labview.
But, If I were you I would not give up completely the possibility of learning something new.
If you are studying in a university probably you already have the Simulation Interface Toolkit.
Using the manual and the examples learning how to use the SIT should not take too long.

You already know Matlab and I really hope you already know LabView.
Learning how to use the SIT will give you much more than the simple sum of the two separated.

Best Regards

 

FiloP
It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
Richard P. Feynman
0 Kudos
Message 4 of 5
(3,437 Views)

Yes, to further clarify a little, SIT (Simulation Interface Toolkit) will allow you to interact directly with the existing model you have (provided you have the Visual Studio software required to compile your model to a .DLL).  

 

If you want to bring your model directly into the LabVIEW environment and eliminate the other software altogether, you can do that with the LabVIEW Simulation Module.  You will likely not need to rewrite your entire model in “regular LabVIEW” as the Simulation Module has a tool which helps to import your model file into LabVIEW.  Also the Simulation Module allows for a more simulation appropriate environment than LabVIEW on its own.  You have options to many features that are not allowed in regular LabVIEW specifically for simulations.  Please check it out from our products section of ni.com.

 

As mentioned, these are tools that you may be licensed for thorough your university.  Both toolkits work just fine with your interface to DAQ.  Please let us know if you have any additional questions, or if you would like information on contacting your local NI representative.

Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 5 of 5
(3,391 Views)