LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Please let me know how to get button command code

Hi friends,

I have a VI having few buttons on the front panel.

Actually when I click on the button an integer value is send to the instrument.

For example when I click "Initialize"  ; device control command code is 02 i.e "start transmitting" is sent to the device. It initialize the device.

Please let me know how to change the code i.e  02 to 03 ???????

Where is the code setting of the button ????

 

thanks

Subhash

0 Kudos
Message 1 of 3
(2,827 Views)

duplicate post

it wont help to post same question several times. not to mention it is not nice.

to the point: i understand you got this program/application from somebody, and you want to change the code. there are several ways, but depends on how your front panel look like:

1) if you have a menu bar, go to windows -> show block diagram. from then on you will probably need a tutorial to LV
2) if you dont have a menu bar, you are probably in run mode -> press Ctrl-M to get to edit mode, then back to 1).
3) if 1) is grayed out, or you are asked for a password, i would call back the guy who made the program
4) if this is an executable without LV environment, you need to get the source code as well as a corresponding license of LV. go back to 3).

in general, if you are working in edit mode, a double clik on any control or indicator will automatically open the block diagram and highlight the corresponding terminal.

 

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 2 of 3
(2,821 Views)
Sounds like what you have is enumerated or ring controls. I'll assume you've run through Gabi1's list and your front panel is showing and the VI is not running:

Right-click on the control and select "Edit Items..." from the pop-up menu. If it's indeed an enumerated control, you won't be able to change the numeric value since enumerated types are sequential only. You'll have to move the text strings up and down to get them in the numeric order you desire.

If it's a ring control, then you can simply change the numeric value if the "Sequential Values" checkbox is NOT checked, otherwise do the same as for an enumerated control.
0 Kudos
Message 3 of 3
(2,796 Views)