LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is it so difficult to make a simple chart?

A chart expects a scalar by default - not an array. You can manually enter a dt by right clicking and selecting 'Properties'. Go to the 'Scales' tab. The offset is the start value and the multiplier is the dt. this is all explained when you click on the help button.

0 Kudos
Message 11 of 26
(1,395 Views)

@smercurio_fc wrote:

 


@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.

 


I will try again, but I have looked at examples and looked at the examples and looked at the examples and I am unable to recreate them!

 

I have even copied and pasted directly from the examples but I end up with broken lines and arrows.

 

Fact I have been frustrated with charts and graphs for over a decade of labview programming.

 

I have never been able to get them to do anything useful!

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 12 of 26
(1,388 Views)

Set the chart Multiplier to 60, and have your program set the x scale offset to the current time in seconds at the beginning of your program.

 

Here's a quick VI I that shows how.

 

The x-axis will automatically scale after an hour, no need to reset the offset.

 

-Nick

Message 13 of 26
(1,369 Views)

@RTSLVU wrote:

 

Fact I have been frustrated with charts and graphs for over a decade of labview programming.

 


Have you considered a career as a manager?.  Smiley Very HappySmiley Very HappySmiley Wink  (kidding of course)

- tbob

Inventor of the WORM Global
Message 14 of 26
(1,358 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.


Right click the chart, properties, actually on the properties page it is called Multiplier.

0 Kudos
Message 15 of 26
(1,343 Views)

 


@NickQ wrote:

Set the chart Multiplier to 60, and have your program set the x scale offset to the current time in seconds at the beginning of your program.

 

Here's a quick VI I that shows how.

 

The x-axis will automatically scale after an hour, no need to reset the offset.

 

-Nick


 

Wow, that is certainly simpiler than wht I was trying to do...

 

This is whaat I spent my day banging my head against. I used the famework from a functional global...

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 16 of 26
(1,337 Views)

 


@RTSLVU wrote:

 


@NickQ wrote:

Set the chart Multiplier to 60, and have your program set the x scale offset to the current time in seconds at the beginning of your program.

 

Here's a quick VI I that shows how.

 

The x-axis will automatically scale after an hour, no need to reset the offset.

 

-Nick


 

Wow, that is certainly simpiler than wht I was trying to do...

 

This is whaat I spent my day banging my head against. I used the famework from a functional global...

 

 


 

Ooops I posted that befor I was done. This sorta worked but would either seem to lose the history, or when inserted in my main program the chart ouput would go into the future even with the Xscale.maximum set to the current time.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 17 of 26
(1,331 Views)

@tbob wrote:

@RTSLVU wrote:

 

Fact I have been frustrated with charts and graphs for over a decade of labview programming.

 


Have you considered a career as a manager?.  Smiley Very HappySmiley Very HappySmiley Wink  (kidding of course)


Yeah... Well this is what happens when the only formal training you've has was LV Basics 1 back when LV 5.1 was new.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 18 of 26
(1,297 Views)

@NickQ wrote:

Set the chart Multiplier to 60, and have your program set the x scale offset to the current time in seconds at the beginning of your program.

 

Here's a quick VI I that shows how.

 

The x-axis will automatically scale after an hour, no need to reset the offset.

 

-Nick


Setting the X scale multiplier to 60 gives me an hour and 40 minutes on the X axis?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 19 of 26
(1,285 Views)

@RTSLVU wrote:

@NickQ wrote:

Set the chart Multiplier to 60, and have your program set the x scale offset to the current time in seconds at the beginning of your program.

 

Here's a quick VI I that shows how.

 

The x-axis will automatically scale after an hour, no need to reset the offset.

 

-Nick


Setting the X scale multiplier to 60 gives me an hour and 40 minutes on the X axis?


Actualy setting it to 60 gives 90 minutes on the X axis.

 

What am I doing wrong now?

 

EDIT: NOW it's 1 hr 40 min again? Sometimes its 1 hr 30 min, sometimes its 1hr 40 min?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 20 of 26
(1,277 Views)