4 Running a Simulation on a LabVIEW Real-Time Target Machine - MapleSim Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MapleSim Toolboxes : MapleSim Connector for LabVIEW and NI VeriStand Software : Getting Started Guide : MapleSimLabVIEWConnectorGSG/Chapter04

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

1. 

From the LabVIEW Getting Started window, click Real-Time Project.

2. 

Keep the project type as Continuous communication architecture, change the project name to RTSliderCrank, and click Next.

3. 

Keep all of the default architecture options values and click Next.

4. 

Click Browse... From the drop-down menu, browse to locate the real-time target platform. Click Next.

5. 

Click Finish to create and display the model.

6. 

From the Project Explorer, right-click the entry of the target platform and select Add >File....

7. 

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.

8. 

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.

9. 

Click the Time Parameters tab and select Synchronize loop to time source. Click OK.

10. 

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

1. 

From the start menu, select Measurement and Automation Explorer.

2. 

In the Measurement and Automation Explorer window, expand Remote Systems.

3. 

Right-click the entry for your target machine.

4. 

Select File Transfer.

5. 

Browse to the directory that contains the .dll file you created.

6. 

Select the .dll file.

7. 

Click To Remote to move the .dll file from your local machine to the target machine in the ni-rt/system directory.

8. 

Click Close and then click Run ( ) in the front panel of the VI. The following graph appears.

 

Contents     Previous     Next     Index


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam