LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read USB sensor in RT PC target.

Solved!
Go to solution

Hello,

 

I have a incilinometer sensor with USB port. After I have installed its driver in windows, LabVIEW recognizes it with COM port and I can communicate with it through LaVIEW VISA.

Now, I want to use this sensor on an RT PC target, but I have encountered a problem. After connecting the sensor to the USB port of the RT PC target, the MAX software in host shows the sensor as a USB RAW device. How can I read the sensor data? Is there any way to change the USB RAW to COM port as in windows?

The inclinometer sensor model is RION DMI420.

 

Thanks a lot

0 Kudos
Message 1 of 6
(3,556 Views)

There are a number of unclear details. What RT controller are you talking about? If it is not one of the newer Linux RT based ones you are going to get troubles unless you use one of the high end ones which can run Windows embedded.

 

Even with Linux RT it is not automatically going to work. For one the device needs to use a chip that is supported by one of the USB drivers in the Linux RT system. Have you checked out this, and this, and this, and this?

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 6
(3,522 Views)

Thanks a lot Rolfk.

 

I am using a desktop PC as LabVIEW real time target. I think the incilinometer sensor has a serial to USB converter embedded in it. I want to read sensor data in desktop PC target like in windows using VISA. Unfortunately the MAX software in host PC shows the sensor as a USB RAW device. What should I do to change that to a COM port?

0 Kudos
Message 3 of 6
(3,504 Views)
Solution
Accepted by msad66

When you say PC desktop as RT target I assume you talk about the Pharlap ETS software? In that case there is almost no chance to get any USB device working without operating on USB Raw level.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 6
(3,500 Views)

So there is no way to read this sensor on PharLab as a COM port via VISA.

 

Thanks.

0 Kudos
Message 5 of 6
(3,464 Views)

Well, it is theoretically not impossible. As long as you know the low level protocol you could implement that on USB RAW level (unless it requires Isochronous datatransfers but that is not common for most devices). However I doubt that it is worth the effort. This would be going to be a pretty complicated and time consuming exercise and require you to dive into low level USB device driver  communication.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 6 of 6
(3,451 Views)