LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does a control go to zero when clicking outside of it?

it is pretty basic, and there are no variables or property nodes that would force the control.

Does this mean there are no local variables or property nodes at all or just none that you think would force the control? Right click on the control and select find. If there are any local variables you will have the option to find them all. Same for property nodes. If the only thing under find is terminal then you probably did uncover a bug in LabVIEW. But I doubt it.

 

 

=====================
LabVIEW 2012


0 Kudos
Message 11 of 22
(929 Views)

One control has no property nodes, the other does, however it is not set to force a zero.

0 Kudos
Message 12 of 22
(924 Views)

maybe the corresponding event in your event structure doesn't contain the control itself?  this could cause unexpected behavior.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 13 of 22
(907 Views)

I have attached the code (labview 2009.) Forgive the mess, as it is still under dev, but you should get the idea. The two controls of interest are "frequency" and "Kp force"

0 Kudos
Message 14 of 22
(902 Views)

I miswrote about one control have in a property node, it is actually a variable.

0 Kudos
Message 15 of 22
(897 Views)

Which control/variable is the culprit?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 16 of 22
(882 Views)

One is labeled as "Frequency" the other is "Kp Force"

0 Kudos
Message 17 of 22
(863 Views)

Both controls were giving problems.

0 Kudos
Message 18 of 22
(859 Views)

Try putting a small wait statment in the while loop that contains those control terminals.  I don't see anthing in that loop that might throttle the speed of that loop.  If it is running as fast as possible, it might be eating up all your CPU cycles.  Considering it is a large front panel with a lot of controls, and some seem to be overlapping (PID control tabs overlap the bigger tab control with the graph), your CPU might be spending all of its time running that loop and updating the front panel that it never has a chance to handle the mouse and keyboard events that trigger the updates of those controls.

0 Kudos
Message 19 of 22
(823 Views)

Loop timing may be a consideration. Total CPU utilization is less that 50% when running. There is a sort of psuedo-wait statement, as the UDP read functions will hold the loop until a new sample is available to read from the target (I need to re-verify this) so the loop runs at about 50 hz in reality.

 

 

0 Kudos
Message 20 of 22
(810 Views)