06-24-2010 10:52 AM
Hi there,
i am trying to place some radio buttons in a global variable.
On my block diagram when i try to connect the radio buttons (through the global) to a case statement the case selector wont accept the radio button as input.
When just placing the radio buttons directly onto my block diagram (not on the global) it connects fine to the case structure and automatically places the cases inside.
Any idea what i am missing here ?
06-24-2010 12:09 PM
06-24-2010 12:11 PM
@dimensionX wrote:
Any idea what i am missing here ?
Did you set the global to read? The default when placing a global is to write.
Any particular reason why you're using a global variable? That road leads to the dark side.
06-25-2010 02:23 AM - edited 06-25-2010 02:24 AM
@smercurio_fc wrote:
@dimensionX wrote:
Any idea what i am missing here ?
Did you set the global to read? The default when placing a global is to write.
Any particular reason why you're using a global variable? That road leads to the dark side.
Setting it to read did it ! Wasnt aware that you have to set the global to read/write. Thanks !
I have read a bit about globals and its disadvantages but it just seems to be the best (convenient) solution for me.
What i am doing is getting readings from a sensor network. My VI should act as a "driver" that other can implement into their LabVIEW projects. It will simply update readings in a global that users can read into their VI. There is no bidirectional communication through the global. (The radio button simply defines a parameter of the sensor which will only be read once for initialisation).
Thanks for your help
06-25-2010 05:57 PM
My rule of thumb for globals is to only write to them once in a given session. From then on just read read read. It's never failed me.
06-25-2010 07:20 PM
@Redstrat wrote:
My rule of thumb for globals is to only write to them once in a given session. From then on just read read read. It's never failed me.
Then try my new WORM Global (Write Once Read Many). Click the link at the bottom of my signature.
06-27-2010 08:59 PM
hi
does the WORM work in LV 8.6 ? If so, could you post your vi in 8.6 ? thanks
06-28-2010 11:41 AM
Sorry I don't have 8.6. You can submit the vi to the Downconvert VI Requests thread and ask someone to downconvert to 8.6.
06-28-2010 11:50 AM
@Redstrat wrote:
My rule of thumb for globals is to only write to them once in a given session. From then on just read read read. It's never failed me.
It has me, causing one Timed Loop of many to finish late. It was one experiment I decided to try and probably lost a day of person-hours chaising it down.
Use at your own risk.
Ben