03-17-2011 02:17 PM
Hi,
I am plotting some temperatures (multiple plots) on a waveform chart. I would like to save the actual value of a
plot (temperature:y scale and time: x scale), when pressing a button, to a spreadsheet file. So in the spreadsheet
I would have the temperature and the time value, at the point when I pressed the button.
I can get the temperature easily by the property node value, unbundle the cluster and save the respective value to a spreadsheet. But how to get
the time value at that temperature point.
I know the time value must be also there, because I am saving the whole dataset to a measuring file and then I can display
it in a graph.
Cheers Patrick
Solved! Go to Solution.
03-17-2011 02:39 PM
Considering a Chart is evenly spread on the X-axis so the X-distance between 2 points is the same every where.
What you could do is create a property node and determine the min. and max range of the X-axis. and you know the number of points of your array(history).
That way it's really easy do determine the times 😉
03-18-2011 07:58 AM
I like Bjorn's idea! That is probably a better way of handling this. Howver, if you want to keep things simple, have your DAQ task return a waveform... even if it is only return single temperature values. Normally waveforms are reserved for higher speed acquisitions, when the data task returns larges areas of values. But, in this instance they may be very useful, as the waveform datatype includes bit value and a time stamp.
Please see the attached screen captures and .vi.
Now you have programatic access to the temperature and time values, which can be easily saved to disk when you hit a save button on your front panel. Also, this idea is easy to scale for multichannel DAQ.
Hope this has been useful.
Best wishes,
03-19-2011 02:24 PM
Hi Bjorn,
Thanks for your answer.
Actually, in my case it is sufficient to use the property node:max range x axis.
My plot range is 100 sec, but I am logging the time every three minute so my max range is updating with the chart.
In case I want to plot some before the first 100 sec are over I use the size of the history array, divided by my sampling rate, e.g..
10 per sec.
Thanks again and Best Regards
Patrick
03-19-2011 02:26 PM
Hi Rich,
Thanks for your answer but I already had Bjorns idea implemented, so I did not tried out yours.
Cheers
Patrick
03-19-2011 02:27 PM
Anytime Patrick, glad I could help
05-31-2012 05:37 AM
Hi:
I have a waveform which has Y-axis as Amplitude and X-Axis as Time.
Now since we are using an ultrasound sensor for plotting the waveforms i need to see distance on X-Axis and Voltage Amplitude on Y-Axis.
Can anyone suggest how we can do this in LabVIEW 8.6.
Thanks
Dhananjay
05-31-2012 05:47 AM - edited 05-31-2012 05:48 AM
[edit: posted in error]
07-04-2012 03:29 AM
Is there a version for LabView 8.2?
07-04-2012 03:35 AM
Do you mean a version of RER's posted VI?
If so, then you can post a request for a downconvert to 8.2 in the Version Conversion board
-CC