LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to write a 2D array of decimals to a text file?

We are using Actiview, a program used to analyze EEG outputs. Another project group working in our lab is also analyzing EEG signals however they are using MatLab. We would like to write our EEG data (which is a 2D array in which the different rows are different channels of the EEG cap and the columns are data points) to a text file so that they could analyze the data. We have already ruled out using Excel because we cannot store enough data (our sampling raet is about 2000/sec and the other group needs at least 10 seconds of data -- Excel has a maximum of 256 columns). Is there any way to write a 2D array of numerical data to a text file? It seems that only strings, and not arrays of strings can be written to a text file.  

 

Any insight would be greatly appreciated.

0 Kudos
Message 1 of 6
(2,968 Views)

TJHSSTneurolab wrote:

We are using Actiview, a program used to analyze EEG outputs. Another project group working in our lab is also analyzing EEG signals however they are using MatLab. We would like to write our EEG data (which is a 2D array in which the different rows are different channels of the EEG cap and the columns are data points) to a text file so that they could analyze the data. We have already ruled out using Excel because we cannot store enough data (our sampling raet is about 2000/sec and the other group needs at least 10 seconds of data -- Excel has a maximum of 256 columns). Is there any way to write a 2D array of numerical data to a text file? It seems that only strings, and not arrays of strings can be written to a text file.  

 

Any insight would be greatly appreciated.


Actiview = ? 

 

If you are using LV then just transpose your array before you write it to file.

 

I am not sure why Excell even enters the picture but....

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 6
(2,967 Views)

Hi TJ,

 

well, using "array to spreadsheet string" and a file write would do the job - in LV8+ it's only one function "write to spreadsheet file" Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 6
(2,964 Views)
Just in case your confused...what these guys are saying is that the "Write to Spreadsheet File" is actually a "write 2D array to text file" - exactly what you need.
0 Kudos
Message 4 of 6
(2,940 Views)

Actiview

 

Looks sort of like a LabVIEW toolkit.

0 Kudos
Message 5 of 6
(2,936 Views)

Sorry for not clarifying and for asking a obvious question,

 

We have just started using Labview this year and there's a bit of a learning curve. Actiview is a program that uses Labview to analyze the outputs of an electroencephalograph (EEG) which measures voltages on the scalp. Theses voltages may then be used to determine paterns of brain activity. We are using a pared down version of Actiview designed for delvelopers to allow for easier manipulation of data.

 

Thanks for your guidance -- it's all really helpful

 

Sincerely, 

 

TJ neuroscience lab students 

0 Kudos
Message 6 of 6
(2,857 Views)