06-14-2023 05:16 PM
I have a path control which I initialize to the value of an environment variable. It also has a value-change event associated with it. I do not want the event to trigger when I initialize the path. It should occur only when the user goes into file selection and selects something.
At present, it goes into what seems like an infinite loop.
Is there a way to fix this?
Thank you.
Girish
06-14-2023 05:26 PM
@girish53 wrote:
I have a path control which I initialize to the value of an environment variable. It also has a value-change event associated with it. I do not want the event to trigger when I initialize the path. It should occur only when the user goes into file selection and selects something.
At present, it goes into what seems like an infinite loop.
Is there a way to fix this?
What do you mean with "which I initialize to the value of an environment variable"? If you use a local variable, or a normal "Value" property, the Value change event should never get triggered. Only a user action from the front panel resulting in a different value, or use of the special "Value (Signaling)" property would generate an event.
Maybe you should show your VI, and no I don't mean an image of it, but the actual VI itself.
06-14-2023 06:04 PM
A value change event does not trigger for programmatic changes (local variable, value property node, (except signaling).)
Most LabVIEW programs have an infinite loop (until stop is pressed!). Can you describe what you mean? Do you get constant file dialogs?
If your code gets trapped in an unwanted infinite loop, you have an obvious bug and there are millions of possibilities why this can happen. How much LabVIEW experience do you have? We need to see the code!