Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Why Do My Controls Change During Run-Time of my Model in Simulation Interface Toolkit?

Primary Software: LabVIEW Toolkits>>Simulation Interface Toolkit
Primary Software Version: 3.0.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I have a few knobs and a waveform chart that are mapped to my model that was developed using The MathWorks, Inc. Simulink® software environment. My knobs have a data range that I specify. However, when I run my simulation, the knobs data range changes? Why does this happen and how do I fix this?

Solution: The controls in your host VI correspond to mappings from the Simulink model and are dependant on the block properties in Simulink. For example, if we map the frequency and the amplitude inputs of a basic Sine Wave block from Simulink to knobs in my VI without simulating, we would get a simple VI and model as shown:

Host VI


Model


If we run the simulation, notice that the frequency knob changes range:


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.

Simulink® is a registered trademark of The MathWorks, Inc.

Related Links: Product Manuals: Simulation Interface Toolkit


Attachments:


pic1.JPGpic2.JPG - pic2.JPG
pic4.JPG - pic4.JPG
pic5.JPG - pic5.JPG



Report Date: 03/30/2007
Last Updated: 06/26/2007
Document ID: 47T9G40L

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit