LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading data from datalog

Hello,

 

I have a binary file that has time series data of 7 channels for separate 1s time stamps (number of time stamps=170); time is in the form of (t0 and delta_t). I would like to sequentially generate the fft of only channels 5 and 6. Hence, I guessed that the data could be treated as a cluster (x axis= channel number, y axis=time, z axis=time stamp). As a start, in Image_1,  I used 'datalog' and then 'index array' to read the first time stamp(Stage=1). Repeating the 'index array' option, I read the channels 5 and 6 (Stage=2) and was able to generate the ffts. However, on using the 'for loop' to move through 170 time stamps, I see an error when I try to connect 'datalog' to the 'index array' in the loop (labelled as 'First error' in Image_2). Hence, I was wondering if there is a better method to solve this problem. Any help is appreciated. Thank you.

Download All
0 Kudos
Message 1 of 4
(685 Views)

Just delete and rewire from the tunnel within the loop.

 

Unfortunately, I cannot edit images to debug.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(669 Views)

Run your good Vi until "record(s) 2" contains data. Right click that indicator and change to constant. Delete the file IO. Save the VI under a new name and attach it here so we have something to play with.

0 Kudos
Message 3 of 4
(613 Views)

Thank you for the suggestion. Attached is the VI.

0 Kudos
Message 4 of 4
(542 Views)