Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Data saving

Hello,

 

I am doing continuous laser scan experiment (sweep mode) and reccording data (100000 samples for the wavelenght range) after each pause using pause triggering function. My experiment require to have more than 100 scans to have a good statistics for the signal. However,  For only 10 scans (which correspond to 10 trigger pause )The data accumullated using my vi program are all listed in one column !! which is not what I want.

What I would like to have is after every pause trigger  save each scan into a new column. Then average all the columns. Is there any idea on how to do that ?

Thank you.  

 

Momo

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

What NI devices are you using to acquire your data? Is your “vi program” running on windows or real-time OS. Having this information might play a factor in a best recommendation for you.....

Sounds like you just have a general LabVIEW question on how to create 2D array and write new data into new column. Since this is pure programing there are many ways to go about this, one way would be to build and array and then use transpose 2D array function. 

 

Transpose.png

 

If you have more general questions on programing in LabVIEW this would be the best place to post:
http://forums.ni.com/t5/LabVIEW/bd-p/170

 

0 Kudos
Message 2 of 4
(2,929 Views)

Hi Miro_T

Thank you for the reply. I am using DAQmx for data acquisition on Windows 10.

I know how to make a 2D array to store two different data let say (x,y). But how about having 1000D array or more ?  As I montioned before I am using pause trigger to collect signal. The trigger starts for every laser scan pulse ( if you have N laser scans you will have N pause trigger). I want for every pause trigger to collect the output data into a new column. At the end of the N scans I must  have an array with N columns (Y axis). For the moment all recorded data  are in one column. The idea behind having the data stored into different columns is to make an average over N scans. Hope I am more clear now. Any idea ?  

0 Kudos
Message 3 of 4
(2,915 Views)

Klebris,

 

Thank you for sharing info about your setup. Just a general note, any DAQ related questions are best suited for DAQ forums and general LabVIEW questions here.

 

I don’t see your code nor I work with DAQmx much but seems like what you are trying to achieve should be doable with little array manipulation/programing. You should post your code snippet in the DAQ forum….

0 Kudos
Message 4 of 4
(2,896 Views)