Hi tst,
Re your pount 1. I can verify that this section of code is reached as
the 'Slave label' element is written to correctly. I have also tried
adding other bits of code in the same block & they ran correctly.
Re point 2. I am begnning to think that this is where I am going to have to go.
Something else I should perhaps have added in my original post is that
all the References are behaving correctly in the property writes except
for the Booleans, not one of the Boolean writes achieves anything.
About the duplicate code. The chosen method puts a lot of code in the
initialisation section while keeping the main loop very simple. Once
initialised all the main loop has to do is copy the monitored Boolean
data to the LEDs value property. What you see is the result of having
moved all the complexity to the part that is only run once. All the
captions are hidden anyway, the write operation is just so that the the
rds name (a handy diagnostic for our site engineers) appears in the
help text.
Ton, not sure what you mean. In this app all the subVIs with Front
Panels (about 40 of them) are loaded on startup, but are
programmatically displaed or hidden as required. To this end the 'Show
Front Panel when called' & 'Show Front Panel when loaded'
checkboxes in each VIs properties are unticked. In the Build Dialogue /
VI Settings tab 'Fieldbus IO.vi' (the troublesome one) has 'Remove
Panel', 'Show Panel' & 'Run when opened' set to 'NO'. I don't know
quite what these do but they work for all our other VIs which run in
exactly the same fashion.
Thanks, Kimdino