12-23-2008 03:28 PM
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
12-24-2008 12:57 AM
Yep, that's definately hosed... Have you contacted NI about it?
Mike...
12-24-2008 01:06 AM - edited 12-24-2008 01:08 AM
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! 🙂
12-24-2008 01:19 AM
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....
12-24-2008 01:32 AM
12-24-2008 10:17 AM
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