Serial Number of Vector Keyman seems not to read out correctly

Question:

Why does it not work to read out correctly the serial number or license info of the Vector Keyman dongle with the XL Driver Library?

Answer:

Reading out the serial number is possible with the function CANDemo.XL_GetKeymanInfo.

You should be aware though, that the first connected dongle starts with 0 (instead of 1). If you read out the number of connected Vector Keyman dongle with the function CANDemo.XL_GetKeymanBoxes, the result must be decremented by 1 to be used as correct parameter for CANDemo.XL_GetKeymanInfo.

Example:

Read out the number of connected Vector Keyman license dongle:

CANDemo.XL_GetKeymanBoxes(ref boxCount);

The value of boxCount is used to read out the serial number decremented by 1. You need to use boxCount-1 to read out the correct dongle number.

CANDemo.XL_GetKeymanInfo(boxCount-1, ref boxMask,ref boxSerial,ref licInfo);



Article ID: 1152
Last updated: 2020-05-25
Revision: 4
XL Driver Library -> Serial Number of Vector Keyman seems not to read out correctly
https://kb.vector.com/entry/1152/