LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is it so difficult to make a simple chart?

I just want a chart, graph, or whatever that displays 6 temperature readings that shows the time in the X axis updated at one minute intervals and displays only the last hour of readings.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 1 of 26
(3,568 Views)

And what, exactly, is your difficulty, or would you like us to guess? Have you looked at the examples that ship with LabVIEW? Such as the one called "Real Time Chart"?

0 Kudos
Message 2 of 26
(3,549 Views)

I have looked at the examples and while they are cute and often draw fancy spirographs they really do not explain how they work.

 

The part I can not get to work is the time in the X-Axis and having only the last 60 minutes/readings (readings takes once every minute) displayed.

 

 I can not find an example named "Real Time Chart"

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 26
(3,544 Views)

If you use a Waveform Chart you can set the chart history length to 60, which will display the last 60 values gathered. If you take 1 a minute, that's an hours worth of data.

0 Kudos
Message 4 of 26
(3,536 Views)

@NickQ wrote:

If you use a Waveform Chart you can set the chart history length to 60, which will display the last 60 values gathered. If you take 1 a minute, that's an hours worth of data.


Yeah, but how do I get the time to display in the X-axis?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 26
(3,532 Views)

Chart with a history length of 60 and a dT of 60.

 

Set the X axis to display time.

 

EDIT:  Sidetracked int he middle of the reply.

 

Right click the chart, pick X scale, formatting ....

0 Kudos
Message 6 of 26
(3,531 Views)

 


@RTSLVU wrote:

I have looked at the examples and while they are cute and often draw fancy spirographs they really do not explain how they work.

 

The part I can not get to work is the time in the X-Axis and having only the last 60 minutes/readings (readings takes once every minute) displayed.

 

 I can not find an example named "Real Time Chart"


You have to click on one the keywords in order to actually display the examples. This is what it looks like after double-clicking on the "charts" keyword:

 

 

 

If you look at the example, you will see that it sets it to 10 seconds for the X-axis. You can set this to whatever you want, and update the offset based on your timing.

0 Kudos
Message 7 of 26
(3,522 Views)

 


@RTSLVU wrote:

I have looked at the examples and while they are cute and often draw fancy spirographs they really do not explain how they work.

 

The part I can not get to work is the time in the X-Axis and having only the last 60 minutes/readings (readings takes once every minute) displayed.

 

 I can not find an example named "Real Time Chart"


Just click on 'charts' to find the example.

 

0 Kudos
Message 8 of 26
(3,515 Views)

@Ravens Fan wrote:

Chart with a history length of 60 and a dT of 60.

 

Set the X axis to display time.

 

EDIT:  Sidetracked int he middle of the reply.

 

Right click the chart, pick X scale, formatting ....


I don't know how to put dT in a chart? When I drop a chart it expects an numeric array input.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 9 of 26
(3,512 Views)

 


@RTSLVU wrote:

I don't know how to put dT in a chart? When I drop a chart it expects an numeric array input.

Charts and graphs adapt to the datatype that you wire to them. PLEASE look at the examples and the LabVIEW Help.

 

0 Kudos
Message 10 of 26
(3,507 Views)