Hi all,
I am hoping somebody can help me out.
I am writing a project in LabView to perform measurements on a motion platform. I am using a compact RIO 9012 for these measurements.
I am using two (2) (main/) seperate VIs. One (1) to sample Analogue data (FPGA) and generate the UDP signal to the motion server (RT) and one (1) to save all data, needed for the calculations afterwards, to a USB flash drive on the cRIO itself. I am using (single) shared variables to communicate the values between both VIs.
My question is about this second VI.
Each time a new run starts, I want to write the data to a new file. I am losing the first couple of seconds, but that is all right, because it is only pre-measurement data. The problem is that I am loosing datapoints in between. It's simply not being written continuously.
I was hoping somebody could tell me if there is a way to program a buffer where I can put the measurement data in and write from. This way I could compensate for some delays.
I have made a seperate VI (attached) which has my logging scheme (shared variables are replaced with local variables) and some random data (except for time...).
I use a seperate (third) VI to convert the binary datafiles to text files, so I can load them into e.g. Matlab. This is run on a normal computer (not on the cRIO).
Hopefully someone can help me out, because the only buffers I have found so far aren't for cRIO or use network published variables (everything is run on the cRIO).
With Kind Regards,
Joep