Hello,
I am using cDAQ-9188 chassis with a NI 9862 CAN module.
I am trying to use a set of VIs that are interfacing with this CAN hardware into a managed Interop DLL (built by LabView) to export the functionality to managed applications (there is no managed libraries for NI-XNET yet, as far as I know).
I could create the DLL easily following Labview instructions. It's a bit more difficult to use it.
The very first issue comes with access to the CAN interface.
In LabView, the can interface looks on the LV UI like a combo box, and allows to select with CAN board we are using (CAN1, CAN2, etc...).
In the managed interop DLL, I create a function
void CANOpen(LVBaseRefnum interface, bool, out LVBaseRefnumsessionRead, out LVBaseRefnum sessionWrite);
So, I need to create a Renum that designates the CAN interface I plan to use. HOW DO I DO THAT? a Refnum is basically just a 32-bits cookie, how can I get to the actual interface?
Appreciate your help, NI!!
Sam Dahan