03-16-2016 08:31 AM
When I write properties to a control on the FP of a facade VI, it has no effect; the property values aren't being written.
Is this a known bug? Or possibly a corrupt control or VI? Is there a workaround?
The atttached file is a copy of the facade VI's code, unlinked from the rest of the xcontrol.
Here is an image of the offending portion:
03-16-2016 10:07 AM
Your Y-scale is set to Autoscale.
Perhaps it is re-autoscaling between writing a value to YMax and reading it back.
03-16-2016 10:37 AM
Turning off Autoscale for Y doesn't help. Also, isn't autoscaling only supposed to happen when a new value is written to the control?
03-16-2016 10:47 AM
You're probably right. Just something I noticed that would seem to make sense.
It might be a complication (or even a bug) with Xcontrols. They are something I've never messed with.
03-16-2016 11:10 AM
I found the workaround, and it's very strange. If I write to properties, then do notthing else, the property values aren't updated. If I write to them, then read them back, the values read back are bogus, but doing the read, causes the previously written values to be applied. Thus in the code shown, the readback of the Y-scale max returns 0 but forces the update.
Note: If you have a property node that reads a property, but you don't have the output wired to anything, the read of the property will not happen.
03-16-2016 11:53 AM
Does that mean that the property did get written, but it didn't actually occur until after you tried to read it and got the wrong value?
03-17-2016 08:19 AM
That seems to be the case.