LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

X axis spacing

Hello,
 
I am using a waveform chart in which I am showing the real time data with full scale of 5 minutes, but in major X axis I am getting spacing of 50 seconds , which I want to show as spacing of 1 minute, but I am not able to do it programatically.
 
Could anybody please advice me which property I can use or is there some other method to decide the spacing between major axis.
 
Regards
James
0 Kudos
Message 1 of 8
(4,060 Views)

What kid of data are you sending to the waveform graph? If it is e.g. waveform data, the x-scaling is known and you don't need to do anything unless it is wrong for some reason.

If you are just graphing a plain array, there is no x-information and you need to set the scaling between the x-values and the array indices. This is done via the offset and multiplier property. Offset determines the x-value for the first element and multiplier defines the x-increment between adjacent array elements.

The properties for x-max and x-min just define what part of the data is plotted in the visible region of the graph.

0 Kudos
Message 2 of 8
(4,052 Views)
Hello Altenbech
 
I am acquiring 7 temperature and seven voltage values, using a state machine architecture and then I am using build waveform and plotting them all in a waveform chart.
 
I am getting the real time in axis , and before entering into aquisition loop I am writing 0 and 300 to the property nodes for X scale minimum and maximum to get a 5min range, which is working fine I do get 5 min range every time but I am not able to get the spacing between the major  X axis of 1 minute , which comes out to be of 50 sec. always, I also tried the X increment property also and gave it a value of 60 , but it didnt worked.
 
Regards
James
0 Kudos
Message 3 of 8
(4,037 Views)


@James P martin wrote:
...but I am not able to get the spacing between the major  X axis of 1 minute , which comes out to be of 50 sec. always, I also tried the X increment property also and gave it a value of 60 , but it didnt worked.

OK, you completely lost me there. Can you attach an image or some code? If you say "major x-axis", what do you mean? Is ther also a minor axis????

Are you possible talking about the axis markers? Here you would turn off uniform marker spacing and set the markers to anywhere you want using a property node "Xscale.markervals[]". See image for a simple example.

Message Edited by altenbach on 04-28-2007 10:06 AM

0 Kudos
Message 4 of 8
(4,032 Views)

Hello....Thanks for your response

I am attaching the VI , I am using DAQ PCI 6221 , just simulate the card from MAX and run the VI, you will see the spacing I am getting between X axis.

 

Thanks

james

0 Kudos
Message 5 of 8
(4,012 Views)
hello........Just a reminder!!!!!
0 Kudos
Message 6 of 8
(3,993 Views)
Sorry, I cannot run your VI, because I don't have any hardware.
 
Still, I think you are doing very confusing things with your data and code.
 
For each iteration, you create new waveforms, each with a new t0 (!?), each containing only a single point. Now you make an array of all these "single point waveforms" and feed the result to a waveform chart.
 
Then you have a state machine that produces zero for most outputs, but still you update the chart at each iteration of the main loop. You should flatten the case structure out and run all data generating code in parallel (or sequential if needed) and graph only after you have all the data. For example, why are you charting e.g. in the first iteration where no output is produced? You are just pumping hot air.
 
None of this seems right! What do you actually want to chart??
 
 
0 Kudos
Message 7 of 8
(3,983 Views)

Hello Altenbach

Actually I am acquiring several analog inputs and alongwith that I have to check several DIs and update Digital outputs, and analog outputs. So I have different states for these and I am  continuously scanning to these states.

                 In my chart I want to show a continuous display of the analog inputs which I am acquiring, and the same runs for many hours.

Replace the Analog inputs with the random no. generators and please run the VI, and please suggest some advice so that I can do in a better way.

 

Thanks & Regards

James

0 Kudos
Message 8 of 8
(3,967 Views)