LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stream to export waveform vi

Hello, I am a novie LabVIEW programmer so please be patient Smiley Happy

 

I have a basic continuous data acquisition program. I want to use the export waveform to spreadsheet VI but I need data to be streamed to disk during acqusition. This VI has it's open file IO handling so I can't just put it in a while loop and wire my waveform array to it. How can I modify it so I can stream to disk? Or is there an alternative way of achieving this?

 

Kind Regards

 

Adam

 

 

 

 

0 Kudos
Message 1 of 4
(2,217 Views)

Hey Adam,

 

So in general when you want to write data to disk as it's acquired you follow this template of opening the file, writing to it continuously, then closing it.

 

template.png

 

If you look inside the export waveform to spreadsheet function you'll see that they're opening, writing, then closing. So, if that function does exactly what you need then you can just use its base code and move the open and close functions outside of your while loop. If it doesn't work exactly like you want then you can customize things more by starting from the base model above.

 

--Ryan S.

0 Kudos
Message 2 of 4
(2,198 Views)

I am having issues modifying the export to waveform to spreadsheet VI. I try to move the file I/O open and close operations outside of my while loop but LabVIEW reports the subVI as broken.

 

Could someone kindly show me how they would go about modifying the export wave VI to do as I want? Or if there is a better alternative way of achieving this. I simply want a column of data for each channel in the task (Y values) and a single column for the unit of time at which that data point was taken (X) for each channel, which is pretty much what the export to waveform function does.

 

Kind Regards

0 Kudos
Message 3 of 4
(2,171 Views)

Hi Xtasy,

 

Could you please post a screenshot of what you're describing?  I don't quite understand the issue you're describing in regards to the export to waveform VI.

Bobby Breyer
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,150 Views)