LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I convert the values on the X-axis scale of my CVI graph from one unit to another (eg. from sample numbers to time)?

I have a graph in my CVI application which displays captured samples, with the X-axis being simply the sample number (e.g. 0 to 1000000). I need to convert this to a time representation, e.g. 0 to 1ms, but keeping the waveform on the graph the same. How can I do this?
0 Kudos
Message 1 of 2
(2,941 Views)
If you use the PlotWaveform function, there is a Initial X, and a X Increment that can be used to do this for a regular interval waveform. For example if you have 1000 points in an array that represents 1 second of time, then your X Increment would be 0.001, and your Initial X could be set to 0 or the starting time of the acquisition.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,941 Views)