Error -1073807330 When Using a NI 987x Module and NI-VISA in Scan Mode

Updated Dec 7, 2023

Reported In

Hardware

  • NI-9870
  • NI-9871
  • CompactRIO Chassis

Software

  • LabVIEW Full
  • LabVIEW Professional
  • LabVIEW Real-Time Module

Driver

  • NI-VISA

Issue Details

I want to use my NI 9870 or NI 9871 Serial Interface Module in Scan Mode and with NI-VISA on my CompactRIO. However, I am getting the following error when trying to configure the attributes for the communication: 

Error -1073807330 occurred at Property Node (arg1) in RT Main.vi

Possible Reasons(s):

Visa: (Hex 0xBFFF001E) The specified state of the attribute is not valid, or is not supported as defined by the resource.

Why am I getting this error, and how can I fix it? 

Solution

This is happening because the baud rate set for the VISA resource is not supported by the module in Scan Engine. The maximum baud rate that can be achieved when using the NI 9870/9871 modules in Scan Mode is 115200 bits/second. Using a baud rate higher than this will result in the error above. If a higher baud rate is needed then you will have to access the module directly from the FPGA. See Using 987x Serial Modules with CompactRIO for more guidance.