LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Initializing Control Inputs to default value.

This may be a stupid question, but I am new to labview. When the VI is started I want it to read the data from the PLC(via the OPC Server)initially to set up the controls default value. Then if the user wants to change it, they can type a new vlaue.

Currently every time you start labview in clobbers the data in the PLC with its default value. I thought of using a write on change tag, but then it doesnt show what the current set point is.

Thanks
Thad
0 Kudos
Message 1 of 2
(2,789 Views)
If you wanted to get the PLC values before makeing any changes to them, I would recommend using a Tag Read and update your front panel control with the use of a local variable. This would be an initialization routine.
Another possible answer to your question is that you will want to use the Options >> Make Current Values Default selection on your Front Panel. This way anytime your VI is reloaded it will start with these default values.
Thanks,
Bryce
0 Kudos
Message 2 of 2
(2,789 Views)