08-05-2010 05:43 PM - edited 08-05-2010 05:44 PM
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.
08-05-2010 05:47 PM
@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!
08-05-2010 05:56 PM
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
08-05-2010 06:35 PM
@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?. (kidding of course)
08-05-2010 10:04 PM
@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.
08-05-2010 11:02 PM
@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...
08-05-2010 11:20 PM
@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.
08-06-2010 09:42 AM
@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?.
(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.
08-06-2010 10:08 AM
@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?
08-06-2010 10:28 AM - edited 08-06-2010 10:32 AM
@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?