LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get radio buttons work in a global variable ?

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 ?

 

0 Kudos
Message 1 of 9
(3,935 Views)

It works for me in LabVIEW 2009 and 8.2.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 9
(3,916 Views)

 


@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.

0 Kudos
Message 3 of 9
(3,913 Views)

 


@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

0 Kudos
Message 4 of 9
(3,887 Views)

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.

0 Kudos
Message 5 of 9
(3,861 Views)

@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.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 9
(3,855 Views)

hi

does the WORM work in LV 8.6 ? If so, could you post your vi in 8.6 ? thanks

0 Kudos
Message 7 of 9
(3,815 Views)

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.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 8 of 9
(3,790 Views)

@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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 9
(3,785 Views)