LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Data acquisition with Labview

Hi,
Is it possible to have the .mat file, which is a Matlab file, while data acquisition of several canals with Labview?
Thank u.

 

0 Kudos
Message 1 of 4
(6,675 Views)
Hello,

I am not clear on what your question is.  Are you asking if you can load .mat files that contain several data channels in LabVIEW MathScript?  That depends on how the data is stored in the .mat file.  LabVIEW MathScript can only read data that it understands.  If your data is in a cell array or structure, we can not read it.

Perhaps you mean to read from a .mat file while performing data acquisition in LabVIEW?  If you have loaded the MathScript Window or another VI using the MathScript node to perform the reading from the .mat file, you can have another LabVIEW VI running in the background performing your acquisition.  However, the Windows OS is not a deterministic target, so it's possible that LabVIEW can't keep up and read all the data from your buffer in time.

If you mean can we store several channels of data acquired in LabVIEW to a .mat file, this is not currently possible with LabVIEW MathScript.  If you can clarify your question, perhaps I can be of more help.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 2 of 4
(6,657 Views)

Hi again,

What I would like to do is: make the data acquisition of several channels coming from electrods using labview. As Labview just makes the acquistion in real time, while I need to have the diffrent channels(data: time and voltage) and to keep them, that is why I would like to obtain a .mat file but I don't know how to generate it.

Hope I'm more clear:)

Thank you.

0 Kudos
Message 3 of 4
(6,640 Views)

Hi,

 

Since you are using LabVIEW for data acquisition, why do you keep data in .mat file? Why not save data into .tdms or .lvm file?

0 Kudos
Message 4 of 4
(6,627 Views)