LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Labview Array initialised with data from a C array

I'm looking to create a 1-D array with integer data. I've got the list of values to go into the array currently in a C file format (ie each number followed by comma then newline).

The data doesn't need to be wrapped up inside a DLL or anything fancy.

Whats the most straightforward way of creating the 1D Labview array initialised with values specified?
0 Kudos
Message 1 of 2
(2,369 Views)
I'm not sure what you mean by "C file format". It sounds like you have a plain text file. If you have something like:
 
5,
15,
23,
4,
999,
 
then use Read From Spreadsheet File and use a %d format. If you select transpose, the first row output will be a 1D array of your file.
0 Kudos
Message 2 of 2
(2,361 Views)