LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I process (and return) data from CVI in Matlab?

I would like to give a txt-file to be processed in Matlab from CVI. After the processing I want Matlab to give a result to CVI. What is the simplest and most efficient way to do this?
0 Kudos
Message 1 of 2
(3,046 Views)
Sir,
Personally, I think the best way would be to use ActiveX, being that you could connect both CVI and Matlab to each other very easily. We have fairly extensive help available in the documentation we provide for CVI. One particualr document comes to mind, a .pdf file titled buildingactivexservers.pdf loacted in C:\Program Files\National Instruments\MeasurementStudio\CVI\bin
I think this should get you started in the correct direction.
Also, since this is a simple text file, it might be possible to simply save the text file to a location in your system with CVI, and then open the text file in Matlab, do the editing you wish, and save it back to a location. Then CVi could open the newly modified text file. You can find functions to open and close files
under the File I/O library and some in the Utility library.

Daniel McChane
Application Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,046 Views)