Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

XNET: Is there a functionality for read-out the number of created sessions?

Solved!
Go to solution

Hi

I want to limit the number of creatable sessions of one port. Is there a limiting functionality or can I read out the number of created sessions of the selected port.

 

Used board: NI PCI-8512 CAN/HS with two ports

 

Thank you in advance for your help.

0 Kudos
Message 1 of 2
(5,166 Views)
Solution
Accepted by topic author Adrian1234

Just curious, how are sessions being created when you don't want them to be?  Just create one session for each interface and each type that you want (frame, channel) and then never close them until the application exists.  There is little need to dynamically create and destroy sessions.  And even if you did want to do that you could keep track of them in a functional global or something then reuse already opened ones instead of creating new ones.

0 Kudos
Message 2 of 2
(5,159 Views)