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

SIT Connection Manager Dialog Box (Simulation Interface Toolkit)

LabVIEW Simulation Interface Toolkit 4.0 Help
August 2007

NI Part Number:
371504C-01

»View Product Info

Select Tools»SIT Connection Manager to display this dialog box.

Use this dialog box to create mappings between a host VI and a model or between certain Real-Time (RT) Series hardware and a model DLL. You use these mappings to generate the block diagram code of a host VI or to generate a driver VI.

This dialog box includes the following components:

  • Model and Host—Use this page to access options related to the model and the execution host.
    • Current Model—Displays the location of the model file that the simulation uses. Click the Change button next to this file path indicator to specify a different model.
    • Execution Host—Use this section to specify the location of the SIT Server.
      • Simulation Environment—Specifies that the SIT Server is running on a non-RT target.
      • Simulation IP Address—Specifies the IP address of the computer on which the SIT Server is running. The default value is localhost, which specifies that the SIT Server is running on the host computer.
      • Real-Time Target—Specifies that the SIT Server is running on an RT target. When you select this option, the LabVIEW Simulation Interface Toolkit prompts you for the location of the model DLL. After you select the model DLL, enter the IP address of the RT target in the Target IP Address text box.
      • Driver VI on Localhost—Specifies that the driver VI is on on the host computer.
      • Target IP Address—Specifies the IP address of the RT target on which the simulation is running.
      • Change—Specifies the IP address of the RT target.
      • Port—Specifies the port on which the SIT Server is running.
    • Model DLL—Displays the location of the model DLL that runs on the RT target. Click the Change button next to this file path indicator to specify a different model DLL.
  • Mappings—Use this page to configure mappings between host VI controls/indicators and model parameters/signals.
    • Current Mappings—Displays a table of the current mappings between LabVIEW controls/indicators and model parameters/signals.
    • Load Mappings from File—Loads a table of mappings from a saved text file.
    • Save Mappings to File—Saves the Current Mappings table to a text file.
    • Remove Mapping—Removes the mapping from the selected control or indicator.
    • Change Mapping—Prompts you for a new mapping for the selected control or indicator.
  • Data Logging—Use this page to configure data logging options for the simulation. This tab is enabled when you specify a DLL in the Model DLL file path on the Model and Host page.
    Note  If you are configuring a simulation on an RT target, you must turn off data logging in the Simulink® application software before converting the model into a model DLL.
    • Enable Datalogging—Specifies if you want to log simulation data.
    • Data Log Filename—Specifies the name of the log file. This log file resides on the execution host.
      • If you select Real-Time Target on the Model and Host page, the log file resides in the C:\ni-rt\system\ directory.
      • If you select Simulation Environment on the Model and Host page, the log file resides in the directory from which you loaded the model.
      • If you select Driver VI on Localhost on the Model and Host page, the log file resides in the directory from which you loaded the model DLL.
      In any situation, you can enter a custom path and filename, such as C:\logs\logfile.txt, in this text box.
    • Timestamp Filename—Adds a timestamp to the name of the log file you specify in the Data Log Filename text box.
    • Logging Format—Use this section to specify the format of the log file.
      Note  If you open a model that includes logging in the SDAT format, LabVIEW automatically converts the configuration to the TDMS format and alters the file extension.
      • TDMS—Specifies that the log file is a .tdms file. Refer to the NI Developer Zone for more information about the .tdms file format.
      • TXT—Specifies that the log file is a tab-delimited text file.
    • Halt on Logging Data Loss—Specifies that data logging stops upon data loss.
    • Samples to Log—Use this section to specify the number of samples to log.
      • All Samples—Specifies that you want to log all values the simulation returns for the signals you specify in the Signals to Log section. If you select this option, the Simulation Interface Toolkit writes to the log file while the simulation runs.
      • Last N Samples—Specifies that the Simulation Interface Toolkit logs only the last N values of the signals you specify in the Signals to Log section. You must enter a value in the N text box. If you select this option, the Simulation Interface Toolkit writes to the log file after the simulation stops.
        • N—Specifies the number of values you want to log prior to the end of the simulation. The default value is 1000. If you select different decimation values for each signal, LabVIEW logs the data from the specified number of non-empty time steps. For example, if you specify a value of 50, the Simulation Interface Toolkit logs only the last 50 values of the signals you specify in the Signals to Log section.
    • Signals to Log—Use this section to specify the model signals to log.
      • All Connected Signals—Specifies that the Simulation Interface Toolkit logs all model signals for which you have created mappings.
      • Custom List—Specifies that the Simulation Interface Toolkit logs only the signals in the Logged Signals list. Click the Customize button to specify the signals you want to log. This button is available only if you select the Custom List option.
    • Customize—Launches the Specify Signal(s) for Logging dialog box. Use this dialog box to select the signals that you want to log. To log multiple signals, press the <Ctrl> key and click each signal.
    • Logged Signals—Displays the list of model signals that the Simulation Interface Toolkit logs. You can modify the signal list without clicking the Customize button. You also can specify how much you want to decimate the signal data in the log file. Right click the group and select Decimation to specify the decimation value. For example, if you select a value of 10, the LabVIEW Simulation Interface Toolkit logs every 10th data point instead of every data point. The default value is 1, which specifies no signal decimation.
    • Import—Loads previously saved data logging configuration data.
      Note  You can import a logging configuration file you saved with the SIT Write Log Settings to Configuration File VI.
    • Export—Saves data logging configuration data.
      Note  You can use the saved configuration file with the SIT Initialize Model VI as an input to the Path to Config File control.
  • File Playback—Use this page to configure file playback options for the simulation. This tab is enabled after you specify a DLL in the Model DLL file path on the Model and Host page.
    • Enable File Playback—Specifies if you want to play back logged simulation data.
    • Playback Filename—Specifies the name of the log file to play back.
    • Halt on Buffer Underflow—Specifies to stop playback if data is not available at the correct time. If you select this option and data is not available at the correct time, LabVIEW uses the last available data point for each channel until new data is available.
    • Begin Playback at Model Start—Specifies to begin playing back the specified data automatically when the model starts. If you do not select this option, you must begin data playback manually. Place a checkmark in the Override Model Input Values with Replayed Data checkbox on the Real-Time Information page of the Simulation Details dialog box to begin data playback manually.
    • File Channel Mappings—Displays the contents of the file specified in the Playback Filename text box.
    • Edit Mappings—Displays the Specify Model Input Mappings dialog box.
    • Import—Loads previously-saved file playback configuration data.
    • Export—Saves file playback configuration data.
  • Hardware I/O—Use this page to configure mappings between RT Series hardware and a model DLL. This page is available only when you specify an RT target and model DLL on the Model and Host page.
    • Configurable Hardware—Use this section to select the type of RT Series hardware that you want to configure.
      • NI CAN—Specifies that you want to configure mappings for one or more National Instruments CAN interfaces.
      • NI DAQ—Specifies that you want to configure mappings for one or more National Instruments DAQ devices.
      • NI FPGA—Specifies that you want to configure mappings for one or more National Instruments FPGA devices. Placing a checkmark in the NI FPGA checkbox dims the NI DAQ checkbox.
    • Configure Hardware—Launches the Configure CAN Interfaces, Configure DAQ Device, or Configure FPGA Devices wizard depending on the hardware you select in the Configurable Hardware section.
    • Build Model Files—Generates the driver VI that runs on the RT target. Click this button after you configure mappings between RT Series hardware and a model DLL.
    • Hardware Mappings—Displays any hardware mappings you configure in the Configure CAN Interfaces, Configure DAQ Device, and/or Configure FPGA Devices wizard.
Note  The SIT Connection Manager dialog box does not use the Simulation Interface VIs to generate block diagram code because these VIs are not designed to be dynamically configurable.

Resources


 

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