Error -1074135024 Using the NI-SLSC Switch API With LabVIEW

Updated May 24, 2022

Reported In

Hardware

  • SLSC-12251
  • SLSC-12252

Driver

  • NI-SLSC

Programming Language

  • LabVIEW G

Issue Details

I get the following error when using the Relay Control.vi or Get Relay State.vi with my SLSC-12251 or SLSC-12252 module.

Error -1074135024 Message
Error -1074135024 occurred at IVI: (Hex 0xBFFA0010) Invalid Value for parameter or property.

Possible reason(s):
IVI: (Hex 0xBFFA0010) Invalid Value for parameter or property.

Solution

The SLSC-1225x cards have several relays inside. Some of these are multi-state relays and cannot be controlled directly using the Relay Control.vi
For example:
You want to connect Ch0 to the faulting bus BusA in an SLSC-12251.
  • Ch0_BusA is a valid relay name, but the individual relay control VIs are not supported.
  • Use the channel routing instead of specific relays by calling the Connect Channels.vi and Disconnect Channels.vi functions.
  • To configure the same route, specify the channels to connect (marked in red box of the picture below) as:
    • DUT_Ch0
    • BusA

SLSC Switch Connect using Channels Example

The code in this picture is for illustration of the VIs to use, but it would do the following:
  1. Initialize with Topology.vi: Initialise an SLSC Switch session.
  2. Can Connect?.vi: Check there is a valid path.
  3. Case Structure: Decide whether to run code (1 - Can Connect) or skip (0 - Cannot Connect)
    1. Connect.vi to connect the channels defined
    2. Disconnect.vi to disconnect the channels again. 
  4. Close.vi: Close the reference to the SLSC Switch session.

Additional Information

Be aware that calling the Initialize with Topology.vi from the SLSC Switch.lvlib will reset the connections in the SLSC-12251 and SLSC-12252 cards. Calling Disconnect.vi after initialising will cause an error -1074126840 as all the connections have been removed and there is nothing to disconnect.