12-13-2012 02:39 AM
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.
12-13-2012 03:22 AM - edited 12-13-2012 03:24 AM
In the Waveform Graph properties, go to Display Format and use "relative time".
12-13-2012 03:24 AM
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?)
12-13-2012 04:00 AM
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?
12-13-2012 08:05 AM
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).
12-13-2012 09:51 PM
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....
12-14-2012 01:28 AM
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?
12-14-2012 06:11 AM
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
12-14-2012 06:27 PM - edited 12-14-2012 06:39 PM
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.
12-14-2012 10:11 PM - edited 12-14-2012 10:12 PM
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.