01-13-2011 01:26 AM
Hi,
I have attached a sample vi in zip format and subvis.zip. In this vi, I have an output waveform which I obtained after any run. I have circled this output waveform in red in "waveform.jpg".
Now, what I want to do is;
I want to change the x-axis of waveform (red circled in the "waveform.jpg" to real time scale ( but only in seconds) like that given in the attachement (second figure).
I have tried lots of things, but do not achieve.
Please help me!
Solved! Go to Solution.
01-13-2011 02:57 AM
Hi
I think you need to pay attention to the type of graph. A chart has an offset and multiplier properties you need to take care : multiplier is the value between the points in time, offset is an offset for the zero. For an XY graph you need to wire the time (which I get usually from the time express vi, /homer mode on : Doh 🙂 ).
Look into the lv exemples, there are several.
n
01-13-2011 04:40 PM
Hi,
Could you confirm which type of graph you are attempting to do this with? Your VIs indicate that you are using waveforms but your title says XY graph.
Thank you,
Lynn
01-14-2011 12:54 AM
Hi,
I run the program and take 5000 data which forms a sinusoidal waveform. The output as can be seen from the figure gives the number of run on the x-axis. But, I want to convert the x-axis to time in seconds, like that I showed with the arrow indicated in the new attached file. thanks..
01-14-2011 02:38 PM
Hi mechen,
The best way to do this is as nitad54448 stated above. You must be tracking the time like you track the data and then plot the data vs. time. To plot data vs. time you will need to either use the inherent time signal coming along with the data (i.e. waveform data type or signal data type) in a Waveform Chart or you must track the time in an array and then plot data vs. time using an XY graph using a VI such as the Get Date/Time in Seconds VI.
Lynn
01-15-2011 03:59 AM
Mech,
In your graph propertied, go to 'Scales'. In your Time (x-Axis), under scaling factors, enter 0.001 in the multiplier section.
Regards,
Lucither.
01-15-2011 05:32 AM
hi
have you read my previous message ? if so, have you checked the multiply and offset properties (for chart) ?
N
01-15-2011 05:23 PM
Hi nitad and Lucither,
I have read your previous message. But, I will be not in the laboratory for three days. I will try your suggestions and send the feedback when I do this. Thanks for your replies.
Regards,
01-18-2011 07:11 AM
Hi Lucither,
Now, it is ok when I have used the multiplier 0,01 because I have used the scan rate 100. Thanks alot..
01-18-2011 07:12 AM
Hi nitad,
Now, it is ok when I have used the multiplier 0,01 because I have used the scan rate 100. Thanks alot..