10-18-2023 03:07 AM
HI,
i have an issue with the setting of a Boolean variable and I don’t find a way to debug it. In my sequence I set the MeasureStart viariable to true before a Sequence Call (see Boolean_Setting.PNG). in that sequence SqcAlarmMeasure I run a vi (Boolean_VI.PNG) who reads that variable value to start the operations when needed. The problem is that sometimes, even if the statement step is done the MeasureStart Boolean remains false and the vi never end the while loop (note that I can’t use a timer condition since I’m waiting for a signal to be measured). I can’t get why the value didn’t change since in the vi there is no command for setting the Boolean value and I have only that statement step for assigning the value.
Any advice for analysing my issue?
Thank you for the help!
Best Regards,
Zuc
10-18-2023 05:32 AM
sounds pretty much like a race condition....
you might wanna check, at which locations you have write operations to that variable