Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Turning Arrays On and Off

 

I have been using labview occasionally for more than about 2 years. I am not doing anything majorly intense with it at present. I currently write a few automated test programmes to test LVDT at my company. The test programme controls an Aerotech Linear stage for allowing change in sensor position, The rest of the programme will send serial commands to a relay switch box that connects the LVDT to multiply measurement devices such as DVMs, Wayne Kerr LCR meters, Power supply, Functions generators etc. 

 

The programme compromises of a front screen that has array that store information taken such as distance, Vin, Secondary coil voltages and few sum voltages calculations. At the moment all the arrays are not greyed out. I want the user to be able to choose what array are shown and which are not using a toggle switch located above each array. Seeming as the 1D array are used as indicators and not controls as they show the voltages read is there a way i can use the toggle switch to choose what measurements are shown. 

 

Thanks 

0 Kudos
Message 1 of 5
(4,679 Views)

If you connect the button to the visibility property via a event structure you can show or hide what you want

greetings from the Netherlands
0 Kudos
Message 2 of 5
(4,676 Views)

Here is one way:

select&format data FP.png

select&format data BD.png

some more programming, but hey just my coffee break 😉

 

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 3 of 5
(4,651 Views)

Thanks guys. Ive changed my programme slightly. On my front panel on the left hand side i have ENUM with 4 options (none, 4 wire, 5 wire and 6 wire) this corresponds to the LVDT im testing as i dont want to have separate programme for each type of LVDT.

 

This ENUM then feeds into a case structure, My reasoning behind this the user can select what type of LVDT it will then go to corresponding section and run the programme from there. 

 

I am going to be using arrays on my front page to collate the data gathered at each stroke position. One array will have distance, another voltage input and so on. These array will be in my case structure. Is there a way of only seeing certain arrays when the case structure is selected on that page. So for example if i select 4 wire then i will see the arrays (distance, input voltage and output voltage) but if i select 5 wire then the arrays that can be seen on the front page change to (distance, coil 1 voltage, coil 2 voltage, input voltage etc.)

 

Any help would be appreciated 

 

0 Kudos
Message 4 of 5
(4,622 Views)

As Albert said, you can use the Visible property of any control/indicator. Creating a property node is simply a matter of right clicking on the control/indicator and selecting Create>Property Node and browsiing to the property you want. You could also arrange the indicators on different pages of a tab control and set the current page by writing to a local variable of the tab control.

 

If you get stuck, attach the code you are having problems with.

0 Kudos
Message 5 of 5
(4,620 Views)