LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is the first value missing in the Chart when I use Property Nodes to clear my Charts programatically ?

Hello everybody,

 

I am using Property Nodes to clear my Charts right at the beginning of the program. The Property Nodes (History) are outside a While-loop.

When I connect a Chart with the counter-variable "i" inside a While-loop, the first point I see in the Chart is (0,1) instead of (0,0). It looks like the Chart misses the first point !

If the Chart is outside the While-loop the Chart displays all points.

Can anyone please explain this behaviour ? How can I solve this problem ?

 

Thanks,

Cesar

0 Kudos
Message 1 of 4
(2,682 Views)
Did you try connecting the error out from the property node to the while loop?  If not, the property node and the while loop will run concurrently, and the first iteration of the loop might be executed before the property node.
Message 2 of 4
(2,677 Views)
Make sure you have the error output from the property node connected to the loop border. Even if the error os not used in the loop, this will ensure that the property node clears the chart before the loop starts running.

What is probably happening is the loop start running at the same time the chart is being cleared, so the first point is also being cleared.



Ed

Message Edited by Ed Dickens on 04-11-2006 09:50 AM



Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 3 of 4
(2,675 Views)

Hello Elsa, hello Ed,

I did not realise that the While-loop and the Property Node were operating in parallel.

Thanks for the example, Ed.

Bye.

 

 

0 Kudos
Message 4 of 4
(2,656 Views)