08-25-2023 10:18 AM
I am trying to use a Measurement Computing device on a cRIO.
They have C++ code for Linux on github https://github.com/mccdaq/uldaq
my plan was to compile the Measurement Computing code to a shared object (Which I think I have done) and call the required functions using the call library node. This is something I haven't got a lot of experience with, and my c++ knowledge is verging on non-existent.
I have made a quick VI based upon my best guess as to how to do it. it seems to run with no errors, but also returns no outputs. I would imagine that this is wrong because I don't actually have a device connected so I would have expected the ulCreateDaqDevice function to return an error code
My questions are:
- Has anyone used this to integrate into a LV application running on Linux/cRIO? If so, can you offer some advice
- Any input on where I am going wrong on the attached VI
An alternative is that I could write a separate application using the Python wrappers which they also have to stream data to my LV application. This would be my second choice though
08-25-2023 10:25 AM - edited 08-25-2023 10:25 AM
I should have had more faith in myself.
I reread the documentation for ulCreateDaqDevice and realised the output is a handle not a error.
Taking it a step further and calling ulConnectDaqDevice is now giving me an error code 2 which I think corresponds to incorrect handle.
To me that is showing that what I am doing is working at least.
I would still appreciate any input on the above two questions though as I have a long way to go and I would like to have some level of confidence that this is going to work before I buy hardware.
It is frustrating that the iCal software they provide which can simulate a device doesn't work on Linux, and doesn't appear to be simulating a network device.