LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I convert a Waveform to a String-Format?

Hello,
I write with "SQL-Execute.vi" datas to an Access-file. The "SQL-Execute.vi" needs a statement in String Format. And that is my problem. My source-datas (that I want to save to Access) are Waveforms. How can I convert the Waveform datas to a String Format?
Thanks for help!
0 Kudos
Message 1 of 2
(2,419 Views)
Wire the waveform to the Get waveform componants function...from that you get t0, delta t and the sample values. Now you can generate whatever string you want based on that information...

You could e.g. wire the Y array to a for-loop in which you calculate the time of each sample by taking t0 and adding delta t multiplied with the array index, then you could convert the Y value and the time to strings using the seconds to time string and number to fractional string functions...etc etc...
0 Kudos
Message 2 of 2
(2,419 Views)