Contents Previous Next Index
4 Running a Simulation on a LabVIEW Real-Time Target Machine
You can run a simulation on a LabVIEW real-time target machine by using any .dll file that you generated using the MapleSim Connector for LabVIEW and NI VeriStand Software. In this chapter, the steps for running a real-time simulation are demonstrated using the slider-crank .dll file that you generated in Example: Exporting a Model as a LabVIEW EMI Block in Chapter 2 of this guide. These steps can also be applied to any .dll file for which you want to run a real-time simulation.
4.1 Preparing the LabVIEW Real-Time Project
To prepare the LabVIEW Real-Time project
From the LabVIEW Getting Started window, click Real-Time Project.
Keep the project type as Continuous communication architecture, change the project name to RTSliderCrank, and click Next.
Keep all of the default architecture options values and click Next.
Click Browse... From the drop-down menu, browse to locate the real-time target platform. Click Next.
Click Finish to create and display the model.
From the Project Explorer, right-click the entry of the target platform and select Add >File....
Browse to the Release subfolder located in the default directory that you specified in the LabVIEW EMI Block Generation template and open the .dll file that you generated. Click OK.
Navigate to the block diagram of the VI. Double-click the Simulation Parameters window to the left of the simulation loop. The Configuration Simulation Parameters window appears.
Click the Time Parameters tab and select Synchronize loop to time source. Click OK.
Save the file.
4.2 Moving the .dll File to the Target Real-Time Machine
To move the .dll File to the target real-time machine
From the start menu, select Measurement and Automation Explorer.
In the Measurement and Automation Explorer window, expand Remote Systems.
Right-click the entry for your target machine.
Select File Transfer.
Browse to the directory that contains the .dll file you created.
Select the .dll file.
Click To Remote to move the .dll file from your local machine to the target machine in the ni-rt/system directory.
Click Close and then click Run (
) in the front panel of the VI. The following graph appears.
Download Help Document
What kind of issue would you like to report? (Optional)