LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph Does Not Format Correctly Unless Property Node Called Twice

I have created a subVI to simplify the complexity of my main diagram, which will do the formatting of my graphs for me. I experience problems however when I run the vi with different values than the previous run of the main program. The property nodes do not function correctly until I run the main program a second time, and then the graphs produce the correct values. This problem is reproducable every time. In my graph formatting VI I have inserted a second property node call immediately after the original property node call, with the same exact values. This fixes my problem.

I have attached my VI, and I was wondering if anyone could help me to understand what I may be doing incorrectly.

T
hank You.
0 Kudos
Message 1 of 4
(2,755 Views)
Can't say for sure because your code is in V.1 format, but it sounds an awful lot like you might have a race condition that you're fighting.

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 4
(2,755 Views)
I would agree with Mike here. It sounds like you could have race conditions in your code. Also, make sure that you always monitor the error wires. You may have an error occuring and don't know about it. Wire all error ins and outs together (this also provides dataflow structure) and then check the last output with the General Error Handler.
J.R. Allen
0 Kudos
Message 3 of 4
(2,755 Views)
This is the program in which the VI is running. I've added a huge comment to pinpoint where the problem is.


I understand that you will not be able to run the VI as there are many things that are missing, but this should not be nessecary to find possible race conditions.
0 Kudos
Message 4 of 4
(2,755 Views)