Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

XNET C Wrapper Get and Set Sub-Properties

Hello,

 

I'm trying to use a wrapper for the C API of XNET.  I have XNET 2025 Q4 installed and can get just about everything else working.  I'm trying to make a CAN schedule so I'd like to be able to use the sub properties like nxPropSessionSub_CANStartTimeOff and nxPropSessionSub_CANTxTime.  I've tried to setup an output session and pass its handle according to this.  With every attempt I get error NI-XNET: (Hex 0xBFF6308D) The property ID you specified is not valid (or not valid for the current session mode or form factor). Check to make sure the installed XNET driver supports the specified property ID.  No matter what output session I try or what list of frames I give the created session, I can't get this to work.  Regular properties and DB Properties work flawlessly.  Any advice would be greatly appreciated.   Thanks.

 

-Eli

0 Kudos
Message 1 of 2
(79 Views)

The error was thrown when trying to read the sub property.  Looking at NIXNET.h these sub properties are write only, so that's why the error was being thrown.  Writing works fine. 

 

-Eli

0 Kudos
Message 2 of 2
(23 Views)