08-15-2018 04:38 AM
Hello,
In the UI I'm sending the new setpoint value through Network-Published Shared Variable and reading it in the RT, which works fine. Later I'm trying to connect this variable to the hardware driver and it looks like it get the new value, but driver doesn't set the new setpoint until I click the up/down arrow next to the variable on the Front Panel.
I was trying to use something different than local variable in the code to connect NPSV with driver, like property nodes; feedback node and reacting to value change, putting Event Case in the subVI and using control references etc., but none of them worked properly.
I would be very grateful for any clues how to fix this problem.
Kind regards,
Daniel
08-15-2018 05:23 AM - edited 08-15-2018 05:23 AM
hi and welcome.
since you are new, please skim through this post https://forums.ni.com/t5/Community-Documents/Unofficial-Forum-Rules-and-Guidelines/ta-p/3536495
regarding your problem.
having stuff outside the event structure is probably the culprit.
you have a timeout of 50ms, just put the read-"FreonSetPonint" and "FreonFlow" inside the Timeout case for example, also get rid of the "All RT Loop Stop" and use a "stop" event for the same purpose.
regards
08-15-2018 08:31 AM
Writing a value to a local variable does not cause a Value Change event to fire. Instead, write to a "Value Signaling" property node.