03-23-2006 07:10 PM
I have a critical issue with the Write Measurement File SubVI - although I captured and write the data for 60 sec, the measurement file only contains data totaling 30 sec. It seems that for every 10 sec of data, the next 10 sec is not recorded, i.e. the measurement only contains data for 0-10 sec, 20-30 sec and 40-50 sec but not that for 10-20 sec, 30-40 sec and 50-60 sec. I need to solve this urgently, please assist.
03-23-2006 09:51 PM
03-23-2006 10:42 PM
Hiii, Cooljet
It seems that you have setup a flag in your software, which writes the data for 10 secs, then stops for another 10 secs, then again start for 10 secs, which you shold remove, and best thing is to get the solution is to attach the vi, s Dev told you.
Thanks,
Nishant
03-24-2006 07:47 AM
03-24-2006 07:54 AM
03-24-2006 04:49 PM
cooljet,
You mention that you are only reading seconds 0-9, 20-29 etc, but not
10-19. How do you know this from the measurement file? Inside the
measurement file you do not have the exact time for every sample, rather a to
(initial time) and dt (delta t/period) for the data.
From the image you provided I only see two areas of concern in your code.
First, there is your logging control. If you toggle this value, you will
stop logging data.
Next, you have a stop button in your loop. You are using this to stop
your application. When you hit the stop button, depending on how you
configured your expressVI, there could still be data in your DAQ pc buffer that
has not been written to your file yet. The faster your sampling rate, the
more data you need to record to disk. Since writing to disk is slow, your
PC buffer builds up. I would check how many samples remain in your buffer
when you press your stop button (do this by using the Available Samples Per
Channel property found in a DAQmx Read property node under Status).
Regards,
Jesse
Applications Engineering
National Instruments
03-24-2006 10:26 PM - edited 03-24-2006 10:26 PM
Hiii, Cooljet
One thing is i am not sure that, why you are using the LVM format, inspite of there are so many methods to write the file, cos this file will take much of a time to write the data, instead you could use the Write spreadsheet to file, which takes minimum time, another thing is what you have done where you have attached the shiftregisters to the Latch action, so please describe your vi, which can give some idea about what you are doing in it.
Thanks,
Nishant
Message Edited by mini_vyas on 03-24-2006 10:27 PM
03-27-2006 06:28 PM - edited 03-27-2006 06:28 PM
Message Edited by cooljet on 03-27-2006 06:29 PM
03-27-2006 08:42 PM - edited 03-27-2006 08:42 PM
I think my mistake is I assume by toggling on the logging button for 60 sec the Write Measurement will also write 60 sec worth of data which clearly is not the case. I did consider putting the Write Measurement File subVI outside the while loop but this will not work as I need to continuously monitor the temperature even while not logging the data (so the while loop will not stop). Any advice will be greatly appreciated.
Thanks in advance.
Message Edited by cooljet on 03-27-2006 08:43 PM
03-28-2006 03:24 PM
Any advice will be appreciated.
Thank you.