Hi Geert,
those are not values of the property but the property ID. As there are mutiple different properties you can query from the driver (nctPropMsgName, nctPropMsgIsExtended, etc.), you need to tell the driver which property you are intereseted in. This is what the 'PropertyId' field in the nctGetProperty() function is for:
Status = nctGetProperty(TaskRef, "Channel0", PropertyId, sizeof(Value), *Value)
So, as you want to get the a particular property, in this case "Arbitration ID", you need to pass this information to the driver. This is done through the PropertyID field. The driver just knows that when you query ID # 100010, you want to get the "Arbitration ID". As this number (and all the other numbe
rs/IDs for the other properties) is pretty confusing to remember, the NI-CAN Channel API.bas file associates the numbers of the property IDs with an easier to understand text (constants). You called that file: Module1.txt. In this particular case:
nctPropMsgArbitrationId = 100010
This is just the identifier of that property, not the value!
So, both of the following function calls will do the exacte same thing:
Status = nctGetProperty(TaskRef, "Channel0", nctPropMsgArbitrationId , sizeof(Value), *Value)
Status = nctGetProperty(TaskRef, "Channel0", 100010, sizeof(Value), *Value)
In your case, 'Value' will be set to 0xCFF2217.
I hope this clarifies this a little bit,
-B2k