LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to plot negative and positive time axis programmatically?

Hello All,

I have a program where in I would like to display both the positive and negative time-axis.. basically, i will generate a sample (peak value of a signal), consider that as zero time, and plot RELATIVE negative and 

positive time axis wrt the peak sample value... 

 

Can anyone please suggest me any ideas?

 

Now on LabVIEW 10.0 on Win7
0 Kudos
Message 1 of 3
(2,453 Views)

What is the format for the source of your data? Do you have absolute time values, relative time values, or a single timestamp for where the peak is? Do you have a waveform datatype? Arrays? Please provide details.

0 Kudos
Message 2 of 3
(2,448 Views)

smercurio_fc, the data file is an output from DAQmx, AI waveform data-type.. I basically have to select 1 of the 5 channels being sampled, find its peak, and that peak value is the new zero for the graph to be plotted... 

I am writing a relative time to the data-file and reading the same, 

 

below is a screen shot of the sample data file, 1st column is the time-stamp, sampling freq is 20KHz... Attached is the sample vi i have made till now... I have generated a peak vale from channel 3, and plotted channel 5 wrt to the sample-time of channel 3 peak... this is waht i intend to do actually... 

 

I am using read from measurement file to read the file format below. 

 

0 906.7069 2.05521 0.276795 0.776456 21.05
5.00E-05 906.9412 2.02554 0.277108 0.776144 21.21254
0.0001 906.824 2.5564 0.277108 0.776144 21.256
0.00015 906.7069 2.65665 0.277108 0.776456 21.685
0.0002 906.824 2.907245 0.276795 0.776456 21.66558
0.00025 906.824 3.140763 0.276795 0.776144 21.2358
0.0003 906.9412 3.374281 0.276795 0.776456 21.6545
0.00035 906.7069 3.607799 0.276795 0.776456 21.71843
0.0004 906.824 3.841317 0.276483 0.776456 21.79949
0.00045 906.824 4.074835 0.277108 0.776768 21.88055
0.0005 906.824 4.308353 0.277108 0.776456 21.9616
0.00055 906.824 4.541871 0.276795 0.776144 22.04266
0.0006 906.9412 4.775389 0.277108 0.776456 22.12372
0.00065 906.824 5.008907 0.276795 0.776456 22.20477
0.0007 906.9412 2.0545 0.277108 0.776768 22.28583
0.00075 906.824 2.36565 0.276795 0.776456 22.36689
0.0008 906.824 2.54584 0.277108 0.776456 22.44795
Now on LabVIEW 10.0 on Win7
0 Kudos
Message 3 of 3
(2,443 Views)