Solution
If your executable is using VISA commands, you should install the
NI-VISA Run-Time Engine on the target (nondevelopment) machine. You should use the same version (or higher) of the NI-VISA Run-Time Engine as the version of NI-VISA on the development machine. You will also need
NI-Serial if your target is a serial device.
When entering the
VISA resource name input for the VISA Open function or the VISA Serial Config function, your target machine may not support using alias names such as COM1, COM2, LPT1, etc. Instead use the VISA resource name for these ports (COM1 is ASRL1::INSTR, etc.). For example:
- Place a VISA Open function on your block diagram and use the wiring tool to right-click on the VISA Resource Name input.
- Select Create » Control from the right-click menu.
- Go to the front panel and right-click on the newly created control.
- Select Allow Undefined Names from the right-click menu (if it isn't already selected).
- Enter the VISA Resource Name for your port. The name should look something like "ASRL1::INSTR". Note: This name can be found in the Measurement & Automation Explorer (MAX) under Devices and Interfaces » Ports (Serial & Parallel). For example, click on COM1 and you will see its VISA Resource Name in the right-hand portion of the MAX window.
- Run your code to see if the error is resolved.
If your target machine is a real time operating system, right click on the item in your project and select
Connect. This will allow the VISA resources detected on the device to display in the
VISA Resource Name. If no names display, or the error message persists after following these steps, try upgrading to the newest versions of NI-VISA and NI-Serial, or re-installing the version of these two packages that you currently have.
For more information about how to include National Instrument product installers, refer to
Additional Installers in LabVIEW Application Builder. For more information on the building distributable applications, refer to the
LabVIEW Help: Developing and Distributing an Application.