03-31-2011 06:06 AM - edited 03-31-2011 06:09 AM
My data type is waveform (brown colour) and not cluster(pink), since from an agilent oscilloscope, I am using its device drivers to acquire the waveform.
I used 'get waveform components' to get Y, dt and t0 from the graph, but i am unable to add t0 and dt due to mismatch of datatypes( t0 is of timestamp). How to convert a timestamp into numeric? Can you please help me out with this?? thanx....
03-31-2011 06:55 AM
->I used 'get waveform components' to get Y, dt and t0 from the graph, but i am unable to add t0 and dt due to mismatch of datatypes( t0 is of timestamp). How to convert a timestamp into numeric?
This why I rarely use the waveform data type. The easiest solution if you don't need the absolute time information contained in the time stamp and can live with relative time, is to just set t0 to zero, which is what I typically do. If you need the time information you can convert everything into a single string array using Format Date/Time String and Number to Fractional String (see this thread write array to spreadsheet string ).
03-31-2011 09:56 AM
Thanx CTF...
Now it works really well.... 🙂
I set t0 to zero as u said...
I was working with another code where the waveform graph is a 2D array rather than a cluster..
In the x-axis column I am simply getting the serial number rather than the time coordinates next to the y values.
What to do about that?? Any suggestion will be really helpful.
Thank You very much.