I am a new user to LV. I am using a high sampling rate NI Scope VI to write to a binary file. I modified it to write a 2 channel data. The gain, offset, and xincrement are prewritten to the actual data. I am facing problems in reading 2 channel data. When I give the data type as @D double to read VI. I read nothing. But when I give a 1D double, I was able to read 1 Ch data. Though I need to read complete data.
Try closing the file when you are done writing to it. Then open it back up to read.
Use the Set File Position to set the file pointer back to the beginning of the file before doing your reads.
Thanks for the reply.
I tried Set file pointer. And I am ending up with the Error 116.
Even I deleted writing gain, offset and x increment and only writing the waveform data.
Please see the fig. and the Vi
So this time you turned off the Prepend Array Size on your write. I think you want to turn that back to TRUE and then read 2D arrays until you reach the end of the file (I think its error code 4). You can then append however you need to in order to have your channels properly put together. I'm thinking it might be better to use a TDMS file so that you can make sure your channels' data are going to the right place and you get it properly when you read a channel.
Yes I was able to solve it by forcing prepend to true. But with TDMS file I am running into memory errors with bigger fetch sizes in Ni Scope