LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

X-Axis of a chart and writing waveform to disk

1.  I am capturing waveform data of pressure  and flow parameters inside a State Machine . The SM sits inside a 50ms timed loop and thus  there is a write to disk every 50ms ( using "WriteWaveforms To file.vi). Eventhough I am running the application with a P4 machine at 2GHz and 512Mb  RAM on WIN-XP Pro OS, I find that many times the "Finished late" output is triggered . I would llike to reduce the write to disk to say once every 1 sec or 2sec. Is there any ready to use buffer available  that I can  use or should I have to build one ? ( The maximum number of channels that I wll need to capture may extend to  8 at a time ) ( When the code runs no applications run paralelly to keep the CPU  occupied )

2. I want to be able to do another thing when I read the waveform data back for analysis: Modify the X-Axis to show the value in real time as when it was captured. I always seem to end with  some abstract  numbers or 05.30AM !!

Thanks

Raghunathan
Raghunathan
LabVIEW to Automate Hydraulic Test rigs.
0 Kudos
Message 1 of 2
(2,560 Views)
Hi Raghunathan,
 
You might be able to fix problem 1 by performing better file management.  The Write Waveform to File VI performs an Open, Write and Close every time it is executed.  You could perform the Open and Close outside of your State Machine Loop.  This could possibly allow you to write without finishing late.  For the second question it would be more beneficial if you could post a small section of your Read Waveform VI so that others would be able to better understand you algorithm.
 
Regards,
 
Steve B.
 
0 Kudos
Message 2 of 2
(2,522 Views)