01-07-2014 03:12 PM
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
01-07-2014 03:15 PM
01-08-2014 01:37 AM - edited 01-08-2014 01:42 AM
Here is one way:
some more programming, but hey just my coffee break 😉
01-08-2014 09:27 AM
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
01-08-2014 09:36 AM
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.