03-31-2022 08:24 AM
I have a program which is supposed to detect external events and update an array every time the value of one of the controls changes (in order to make a list of what happens in real time). The controls themselves seem to work, but when I try to control them using an external source (or in the case of the file uploaded, a boolean control seperate from the event structure), it doesn't work.
Does anybody know how to fix this?
03-31-2022 08:38 AM
Value Change Events usually trigger on user interaction. To programmaticly fire a Value Change write the control property Value(Signaling). NOTE: This Property is NOT allowed on Booleans with latching mechanical actions.
03-31-2022 08:42 AM
Sorry, Im not sure what you mean bywrite the control property value(signaling)
03-31-2022 08:57 AM
HEY? Anybody with a PC handy?
Post a snip of a property node write Value(Sig) please.
03-31-2022 09:00 AM
is this what you mean? how do make it say value(signal)?
03-31-2022 09:06 AM
03-31-2022 09:32 AM - edited 03-31-2022 09:35 AM
@jbryant2 wrote:
is this what you mean? how do make it say value(signal)?
Right click it and chose change all to write.. Right click it again and chose link to panel and select the Front panel object
Or rightclick the terminal and chose Create Property node
Follow the selection guide(s) the other guys are getting kudos from me for.
03-31-2022 02:09 PM
Can you save your Vi in LabVIEW 2020 (file..save for previous..) and attach it once more. I cannot see your code. Thanks!
If you are reading an external input at regular intervals (what rate?), you are spinning the loop anyway, so just implement a change detector (e.g. boolean crossing ptbypt) to log your changes. Using an event structure and signaling properties seems silly. (i.e. tail wagging the dog). These should be indicators anyway if they are controlled by code.
03-31-2022 02:16 PM - edited 03-31-2022 02:18 PM
Have a look here for some ideas...
(just remove the parts you don't need, e.g. the logging at some interval even if the boolean did not change. Simply replace the switch with an LED indicator and read the value from your instrument instead)
03-31-2022 02:18 PM - edited 03-31-2022 02:20 PM
@ CA It sounds a bit like the OP is hanging some test framework for the event log
Or I may be mistaken....it's happened. Of course, I can't see any code on my phone.