11-20-2005 06:23 AM
11-20-2005 09:28 AM

Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.11-20-2005 09:42 AM

Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.11-20-2005 09:42 AM
Thanks for responding so quickly.
My simple mind says that if I write to the dial (0 or what ever) and then I twidle the control this would change the output and be written back into the 'load' of the dial. This is clearly not what happens.
In my application I have set ups for 24 channels that I keep in an array. I then select a channel, load the value into a dial control, there by allowing the control to be changed and written back into the array.
I obviously am not understanding the fundamentals of labview. I do not understand why I cannot load, adjust and write back. using a Dial control.
Any clarification would be very welcome.
Kind regards
Derek
11-20-2005 10:15 AM
Thank you!
The mist is beginning to disappear.
I did not realise that by putting a timer within the loop then the program exited, loaded default values again before enterring the loop again!
Sorry labview for all my nasty thoughts.
Thanks again.
Derek
11-20-2005 10:35 AM

Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.11-20-2005 10:39 AM - edited 11-20-2005 10:39 AM
@Fossetics wrote:
My simple mind says that if I write to the dial (0 or what ever) and then I twidle the control this would change the output and be written back into the 'load' of the dial. This is clearly not what happens.
...
Any clarification would be very welcome.
First of all, circular code is bad. You seem to have the (wrong) impression that there is some need to write to a property node. This is incorrect. Front panel objects have their own copy of the data and retain it until you change it. It's value can be read at any later time. In this particular case you can delete the shift register and property node and everything will work just fine.
@Fossetics wrote:
In my application I have set ups for 24 channels that I keep in an array. I then select a channel, load the value into a dial control, there by allowing the control to be changed and written back into the array.I obviously am not understanding the fundamentals of labview. I do not understand why I cannot load, adjust and write back. using a Dial control.
Of course you can. 😄 Maybe I have time to make a quick example over breakfast....
EDIT: Ahh, busy thread! I see that in the meantime, Ed already made a nice example. I think you're all set! 😄
Message Edited by altenbach on 11-20-2005 08:43 AM
11-20-2005 10:59 AM - edited 11-20-2005 10:59 AM
Message Edited by Ed Dickens on 11-20-2005 11:02 AM

Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.11-20-2005 11:15 AM
Thank you both for working so hard on my behalf.
However, on your VI you set values of the array, but if you say, set a value to channel 0, then go to a different channel, I would like, on return to channel 0, the dial to show the previously set value of channel 0.
Is this normally done by polling (circular code?) or by events, or is it normal to have separate controls for each channel?
Sorry to get you working so hard, but it is much appreciated.
Kind regards
Derek
11-20-2005 11:36 AM
@Fossetics wrote:
Is this normally done by polling (circular code?) or by events, or is it normal to have separate controls for each channel?