LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Output Arbitrary Signal in Labview, Generated in MATLAB

Hi

 

I'm trying to generate a signal from LabVIEW that has been created in MATLAB.

 

I've tried using the 'Simulate Arbitrary Signal Express' block in LabVIEW, however it only allows me to load .lvm files

 

Is there any way I can load from a .txt file? Or any way to generate an .lvm file from MATLAB?

 

Thanks!

 

0 Kudos
Message 1 of 4
(2,845 Views)

Hi ghp,

 

use "ReadDelimitedSpreadsheet" ("Read from Spreadsheet File" in older LV versions) to read txt/csv files…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,839 Views)

Hi

 

In doing so I was able to import correctly a .txt file containing the signal from MATLAB, and can view it as an array in LabVIEW.

 

However, I am unable to successfully export it as a .lvm file

 

The initial .txt file contains two columns with numbers, which is loaded correctly into LabVIEW, however when attempting to export it as .lvm using 'write to measurement file', it does not export correctly

 

Any advice?

 

See the attached screenshots for the code I am using

Download All
0 Kudos
Message 3 of 4
(2,817 Views)

Hi ghp,

 

using this sample code I create a LVM file with two data columns:

check.png

 

it does not export correctly

In which way it is "not correctly"?

Please attach your code and your test data (txt file and your LVM file)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,813 Views)