Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69047

How do I set the x increment for a chart with cluster input?

$
0
0

I am acquiring thermocouple signals, using a timed loop that gets the temperatures of several thermocouples every 0.5 second (typically).  I want these signals to appear on a chart.

 

I can get them all on the same chart by wiring either (a)  a cluster of values or (b) a cluster of waveforms, each waveform containing a 1D array of a single value.

 

How can I tell the chart that the x-increment between readings is 0.5 second?   The x-axis values always seem to be array index numbers, not times.   Can I choose between x scales in seconds, minutes or hours?

 

I have two simple examples, using random numbers to simulate 4 channels:

(a) chart format test.vi has a loop passing a cluster of values to the chart,

 

(b) chart format test 2.vi makes each value into a waveform; these are then turned into a cluster containing 4 waveforms.

 

 

In each case I am trying to set Xscale.RngStart and Xscale.Increment but they seem to have no effect - if I run these VIs for 5 seconds (100 readings from each "thermocouple"), I want the x-axis to go from 0 to 5 seconds, not 0 to 100.

 

 

Thanks

Roger

 


Viewing all articles
Browse latest Browse all 69047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>