08-16-2005 09:39 AM
08-17-2005 04:56 PM
08-19-2005 04:42 PM
Let me add some details to the problem.... My observation is that the Write LVM Express VI on its first call writes the header which includes the date/time stamp. If waveforms are present at that first call, it will write them along with their date/time stamp. If the waveform date/time stamp is equal to the LVM header date/time stamp, the first "X" value will be 0. The X values are the offset by:
(the waveform date/time stamp + sample*dt)- LVM header date/time stamp
On the second thru n call of the Write LVM VI, the waveforms are written with the X value following the equation above. The process of writing the LVM file works great if the VI is currently stopped, run VI, VI writes data, and then Stop VI. The next running of this sequence will correctly write the new file.
My issue is that I can not execute the Start/Stop VI sequence. My Write LVM VI is in a loop with the Write LVM VI loop selected by a case structure. What I need is to be able to emulate a first call to the Write LVM VI which will assign the new filename and write the header properly (i.e. assigning a new date/time stamp based on the first call). I've tried combinations of the new_filename and reset inputs to the VI, but these do not reset the date/time stamp in the header. Any ideas to make the Write LVM work in this manner? I would prefer to modify the existing Express VI or put some shell around it to perform this function.
Thanks,
Mike.
08-22-2005 01:40 PM
08-22-2005 04:50 PM
Unfortunately, this doesn't help my problem. This doesn't change the values in the X Value column as described in my previous note. The solution has to be in the way the Write LVM is executed in order to control the first call of this reentrant routine.
Does anybody have any ideas?
Mike