Error -1967362038 When Using DSC SharedVariableIO Properties

Updated May 3, 2018

Reported In

Hardware

  • CompactRIO Controller
  • PXI Controller

Software

  • LabVIEW Datalogging and Supervisory Control Module
  • LabVIEW Real-Time Module

Issue Details

I am using a CompactRIO (cRIO) to take data from my input module using Scan Mode. I want to programmatically change the properties of the I/O variables, such as scaling, logging, and alarming, for my module's input channels. To do this, I am calling LabVIEW Datalogging and Supervisory Control (DSC) Module SharedVariableIO properties on my I/O variables from my host VI. When I run the VI, I get error -1967362038. How can I programmatically change these properties?

Solution

The DSC Module SharedVariableIO properties can only be set for normal Network Published Shared Variables, and not for Scan Engine I/O Variables. To set these properties for your I/O items, you will need to create intermediary variables that are bound to your I/O items.
  1. In your LabVIEW project, create a new shared variable library on the cRIO target.
  2. Create new shared variables that match the data type of the I/O items in your module that you are reading.
  3. Bind the new variables to the existing I/O Variables.
  4. Anywhere that you are reading the I/O Variables in your code, replace the I/O Variable node with the new shared variable. 
  5. Deploy the new shared variable library to the cRIO.
Now that you have intermediary variables that are tied to the physical I/O channel's data, you can call the SharedVariableIO properties to change the scaling, logging, and alarming of these variables.

Additional Information

Scan Engine I/O Variables that have network publishing enabled do not utilize the full Shared Variable Engine and do not have all of the same functionality as normal network-published shared variables. The DSC Module SharedVariableIO properties can only be used on network-published shared variables and trying to pass a reference to a Scan Engine I/O Variable will result in error -1967362038 when the VI is run.

WAS THIS ARTICLE HELPFUL?

Not Helpful