LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Make Use of Build Unit String Dialog Box

Hi guys:
   I'm trying to build a VI that make use of the 'build unit string' dialog box (C:\Program Files\National Instruments\LabVIEW 8.2\resource\dialog\unitdlg.llb\unitdlg.vi) that gets shown in LabVIEW when right-clicking on a unit label or convert unit node (see attachment). It's a LV internal VI and I'm trying to figure out what are the inputs needed to the VI to make it function the same way as if you're using it in LV?



 

  A sample VI of how it is intended to be used is attached.

Thanks!



Message Edited by skwcheng on 03-04-2008 02:36 PM
0 Kudos
Message 1 of 3
(2,624 Views)
The easiest way to see what gets fed in is to do the following:
  1. Create a new VI.
  2. Plop down Expression Node on the block diagram.
  3. Right-click on the Expression Node and select "Build Unit String...". This opens the unitdlg VI.
  4. Press Control-Period on your keyboard. This will stop the unitdlg VI and keep all the control values.
  5. Move the cursor over to the unitdlg icon in the upper right and drag it to your VI.
  6. Move the cursor over to one of the input terminals of the unitdlg VI that you just plopped down, right-click and select "Create->Constant". Repeat for the other inputs.
0 Kudos
Message 2 of 3
(2,609 Views)
Attached is your VI modified with the string array for the units.
0 Kudos
Message 3 of 3
(2,603 Views)