LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PhidgetSpatial Precision 3/3/3 High Resolution to Myrio

Im trying to connect a PhidgetSpatial Precision 3/3/3 High Resolution to the myrio, through the usb port.

Phidget provides libraries but i cant workout how to get them onto the myrio.

 

Any help would be appreciated

 

Thanks

 

 

 

 

0 Kudos
Message 1 of 4
(4,128 Views)

How did they provide the libraries? As a bunch of VIs, or a *.dll/*.so library file? Do you know if the device is supported by the myRIO (or other NI linux RT targets)? If the manufacturer supports the myRIO, you might want to ask them if they have any examples/guidance for getting it to work.

 

The USB support on the myRIO is fairly limited to USB cameras, memory sticks and it's possible to run other devices through the linux repository (e.g. usb to serial converters). Unless the manufacturer says it is supported, I doubt it's going to work.


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 2 of 4
(4,117 Views)

They provide VI's, but they have embeded call library functions. 

http://www.phidgets.com/products.php?category=5&product_id=1044_0

 

They support linux but maybe not linux RT.

 

0 Kudos
Message 3 of 4
(4,106 Views)

Yeah, I would imagine that the LabVIEW code they provide calls a .dll file, which won't run on a Linux RT target (or they are designed to run on x86 machines). You would need a *.so file as this is the library format for linux RT (and it would need to be compiled for that target/architecture).

 

The process to try and get it working might be pretty painful - but it may be possible to compile it for Linux RT. There's some basic information here: http://www.phidgets.com/docs/OS_-_Linux

 

If you can compile the library successfully on the myRIO, you should be able to use it with their existing LabVIEW VIs.

 

Looking at it, you would need to install libusb-1.0-0-dev - there's a few guides about installing other linux packages (using the Angstrom repository) - here are a few links I found:

Basic Linux RT Commands / Tips:

https://decibel.ni.com/content/docs/DOC-37109

Guide to installing packages:

https://decibel.ni.com/content/docs/DOC-36980

Compiling C Code for Linux RT:

http://www.ni.com/tutorial/14690/en/

An example of compiling a library for linux RT:

https://decibel.ni.com/content/docs/DOC-36921

 

The option, is that if they provide information about the low-level API, you might be able to use VISA RAW and implement the USB communications yourself. There's a guide to that here:

http://forums.ni.com/t5/LabVIEW/Nugget-1-of-n-GEtting-started-with-USB-communication-via-VISA/m-p/74...

 

Finally - there is a pretty active community on Linux RT here - you might find more help there (and feel free to point them at this thread): https://decibel.ni.com/content/groups/ni-linux-real-time?view=discussions&start=0

 

Hope that helps!


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 4 of 4
(4,076 Views)