LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem in displaying x axis data in waveform graph

 

i am new to labview. I have an issue with wavform graph.Let me explain my problem here.

 

I simply connected sine waveform from signal generator to DAQ card. When i read signal through graph, the x axis showing system time. But i need the time from o sec to 1,2,3,4,... sec like that. How can i change x axis time?

 

If possible pls solve it with simple vi programme.

 

 

0 Kudos
Message 1 of 12
(7,618 Views)

In the Waveform Graph properties, go to Display Format and use "relative time".

0 Kudos
Message 2 of 12
(7,603 Views)

You can format the axis at relative time format.

Where is the time information coming from? What is the time spacing between points?

What is your datatype (array, waveform, dynamic, etc)?

 

Can you show us some code? Please attach your VI.

 

(A lot of things you are saying are very confusing. A graph is used to display data, not to read data. Is the "signal generator" an external hardware box or part of the program. Are you using the DAQ card to generate a signal or to read a signal?)

0 Kudos
Message 3 of 12
(7,601 Views)

 

i used NI usb 6009 daq. The below prg shows the current problem .

 

I created sine waveform from ( 1 Hz ) from signal generator. (external).

 

While reading through graph it showing system time in axis. But i want 0,1,2,3,4,... like that.

 

Now u help me?

0 Kudos
Message 4 of 12
(7,596 Views)

You have a graph and a chart.

 

The chart is configured to show absolute time formatting for the X-axis.

The graph is set to ignore the timestamp. Are you really saying that the graph shows system time?

 

(right-click the axis to change the formatting)

 

You are reading 1k samples at 1kHz, meaning you get 1000 points per second. Do you want "1" on the x-axis to be one second or one ms? (set the scale property to to change the multiplier).

0 Kudos
Message 5 of 12
(7,579 Views)

yes i want to read 1000 samples per second. ( Actually i would like to read the output from LVDT which work only 3 sec only in automobile suspension analysis).

 

I also want to  represent 1 as  1ms.

 

The main problem in my work is, i want displacement with respect to time graph for 5 sec. I got displacement exactly. but the time is not proper.

THe time in x axis of graph shows some other value instead of 1,2,3....

0 Kudos
Message 6 of 12
(7,566 Views)

pskpskpsk wrote:

THe time in x axis of graph shows some other value instead of 1,2,3....


Can you be more specific? What is some other value? We are talking about the graph, not the chart, right?

 

Can you show us a screenshot picture on how your graph looks like?

0 Kudos
Message 7 of 12
(7,555 Views)

i need both graph and chart.

 

graph to show plot after taking reading.

 

chart to show the reading continousely.

 

My problem is on both graph and chart,

 

Graph showing x axis only from 0 to 1.    ( But i want o to 10 atleast)

 

Chart showing some other value as shown in screen shot-1 ( But i want it start from 0,1,2,3... like that)

 

(I found something by myself. When i change samples to read as 10 k and rate as 1k in usb 6009 daq, i am getting graph from 1 to 10.

But chart is as like previous one - refer screen shot- 2; But chart is not updating properly in realtime. Is there any other method, to show graph between 0 to 10 without changing samples and rate.)

 

In simple, my chart should show x axis starts from o . This is what i exactly want.

 

( This problem will come only when i connect labview with usb 6009 DAQ. If i use simulate signal option everything goes fine.

 

I hope you will help me this time. Bcz i am trying this for last one week. But i cant find any solution till now

 

 

 

 

 

 

Download All
0 Kudos
Message 8 of 12
(7,543 Views)

Change the Display Format for the chart X-axis to "decimal". Take a look at the attached VI (from a community post). It demonstrates that. It also lets you change the chart history programmatically to zoom in or out on your data.

0 Kudos
Message 9 of 12
(7,514 Views)

It is still not clear what you are doing wrong, especially after looking at your code.

 

Can you run your VI again unil all graphs contain data, select the graphs ... edit...make selected values the default, save the VI under a new name, and attach it here.

0 Kudos
Message 10 of 12
(7,506 Views)