이 내용은 고객님의 설정 언어로 확인할 수 없습니다

이 내용은 다른 사용 가능한 언어로 표시됩니다. 고객님께서 사용하시는 브라우저에 텍스트 번역에 도움이되는 기능이 포함되어 있을 수 있습니다.

Can I Simulate an NI Real-Time Target in LabVIEW?

Updated Feb 13, 2025

Reported In

Software

  • LabVIEW Real-Time Module

Issue Details

  • I am trying to test my Real-Time (RT) code in LabVIEW, but I don't want to or can't connect to my RT device.  Is it possible to simulate an RT target in LabVIEW and test the code?
  • Can I create an RT executable without hardware?
  • For LabVIEW FPGA targets, it is possible to simulate FPGA execution on the host computer.  Is there a similar feature for LabVIEW RT targets?

Solution

It is possible to simulate RT Targets in the LabVIEW Project, but there is no way to run/test code in the simulated hardware. To add simulated targets to your LabVIEW project, follow the steps below:

  1. To add a Real-Time target, right-click on the project name at the top of the Project Explorer window and select New»Targets and Devices...Add.png 
  2. Next, select New target or device. A list of devices you can create without the physical target will be displayed. Highlight the desired target type and click OK. The new target populates beneath the named project in the Project Explorer window. For instance, a cRIO-9033.new_target.png 

If your RT VI has no hardware dependencies (i.e. C Series Modules) or RT features, you can drag and drop the RT VI under My Computer in the LabVIEW Project to be able to run/test the code.

RTVI.png

Without hardware, you can also build an RT executable as usual. You can deploy it with or without LabVIEW as explained in the Deploying a LabVIEW Real-Time Startup Executable Without the LabVIEW Development Environment article.