Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Editing Multiple Parameters at Run Time (Simulation Interface Toolkit)

LabVIEW Simulation Interface Toolkit 4.0 Help
August 2007

NI Part Number:
371504C-01

»View Product Info

Use the Edit Multiple Parameters dialog box to edit multiple parameters at run time and apply changes all at once. You can save a set of parameter values to a file that you can load at a later time. Complete the following steps to edit multiple parameters at run time.

  1. Click the Edit Multiple Parameters front panel button of the host VI to launch the Edit Multiple Parameters dialog box. You can click this button only while the host VI is running.
  2. Click the Add Parameter button to launch the Edit Parameter Value dialog box. You use this dialog box to specify the new value of the parameter. You also can access this dialog box by double-clicking a row in the table.
  3. Select the parameter you want to edit from the Parameter pull-down list. You can change the value of any parameter associated with the model, even a parameter that does not have a front panel control. When you select a parameter, the data type of that parameter appears below the Parameter pull-down list.
  4. Enter the new value of the parameter in the Value text box.
  5. Click the OK button to save the updated value and return to the Edit Multiple Parameters dialog box. The New Parameter Values table on this dialog box updates to show the changes you made.
    Note  Any values that you change do not affect the simulation until you click either the Apply button or the OK button in the Edit Multiple Parameters dialog box.
  6. Click the Save button to save the updated parameter values to a text file.
  7. Click the OK button to apply the updated parameter value(s) to the simulation. If a parameter has a front panel control, that control updates to show the new value.

If you enter a parameter value outside the scale range of a knob or slider control, the LabVIEW Simulation Interface Toolkit automatically adjusts the scale range to accommodate the new value. You can disable this autoscaling by closing LabVIEW, entering LVSITNumScaleUnchanged=True on a separate line of the labview.ini file, and launching LabVIEW again. The labview.ini file is located in the labview\ directory. If you disable autoscaling, you still can adjust the scale range manually. However, if you then enter a parameter value outside the scale range, the control saves the value but shows only the maximum value of the scale range. For example, if the scale range of a knob is 0–10 and you enter a value of 20, the front panel shows the value of the control as 10, even though the actual value is 20.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit