LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart x scale update problem

LabVIEW  8.5.1

 

Sweep Chart Problem

 

The x scale values do not update until after the 2nd sweep.  The red line cursor gets to the end of the sweep and starts the next, but the scale numbers do not update until the next sweep starts.

 

It appears to be a problem with the chart, since it happens with any vi with a sweep chart.  I've used versions 6 through 7 for years and never seen this.  I've only recently moved to a new job with a new machine and version 8.5.1., so I'm not sure what to try.

 

I've included a simple example.

 

Thanks much,

JSC321

Message 1 of 6
(3,050 Views)

Yep, that's definately hosed... Have you contacted NI about it?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(3,031 Views)

You have a typical race condition!

 

There is no data dependency between the property node and the while loop, so in your case the loop starts executing first and the property node starts slightly later, immediately erasing the first point. Execution order is not defined.

 

All you need to do is add a data dependency, e.g. as with the error cluster in the image. This forces the property node to complete before the loop is allowed to start.

(Execution order is enforced even if the wire value is not even used inside the loop :))

 

Try it! 🙂

 

 

 

Message Edited by altenbach on 12-23-2008 11:08 PM
0 Kudos
Message 3 of 6
(3,028 Views)

Ah sorry, you are talking about the scale at the second sweep.

 

Yes, This looks like a bug.

 

Interestingly, if you abort the VI during the second sweep, the axis updates to the correct range as soon as abort is pressed. Very strange....

0 Kudos
Message 4 of 6
(3,024 Views)

altenbach wrote:

Yes, This looks like a bug.


Tested in 8.6 and it is fixed. 🙂

0 Kudos
Message 5 of 6
(3,019 Views)

Thanks very much for the responses.  This is a great board and really helps get work done.

 

I'm a bit shocked there haven't been any other cases of this mentioned.  I wonder if it's something about my install/machine, etc.

 

I'm certain we have a continual license, so I'll have to dig up the 8.6 version and give that a try.

 

Thanks again everyone!

 

Cheers,

JSC321

0 Kudos
Message 6 of 6
(2,997 Views)