09-22-2023 01:48 PM
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.
09-22-2023 03:24 PM
Just delete and rewire from the tunnel within the loop.
Unfortunately, I cannot edit images to debug.
09-23-2023 02:18 PM
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.
10-02-2023 01:50 PM
Thank you for the suggestion. Attached is the VI.