LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vishay SensorXplorer board communication issue

Firstly, I am a beginner and have been given a task that I probably am not equiped for, but I have to do.

 

I have the following devices connected to my laptop via USB:

           vishay sensor explorer board (Rev4) and their proximity sensor  VCNL4030X01.

 

It uses I2C communication and I decided to use VISA to communicate with it...

alex_b2_0-1694004580309.png

 

The first problem is that labview doesn't see the device at a com port, but Windows does.... Windows sees it as HID on Device Manager.  This is what happens when I disconnect...It was the only way to verify Windows sees it..

alex_b2_1-1694004797004.png

 

So how do I get Labview to see this device? Do I have to give it that long location number given in device manager?

 

Thanks for any guidance.

Alex

 

 

0 Kudos
Message 1 of 7
(549 Views)

Hello Admin...

 

After some browsing on the forum I see I posted this in the wrong group.  Please delete this thread or maybe tell me how I can do that from my side.

 

Sorry for the balls up.

Alex

0 Kudos
Message 2 of 7
(511 Views)

Hi Alex,

 


@alex_b2 wrote:

The first problem is that labview doesn't see the device at a com port, but Windows does....

Windows sees it as HID on Device Manager. 


When Windows claims the device as "HID" then it is NOT a COM port.

Why do yo think Windows "does see the device as COM port"?

 

Vishay says their board does NOT create a COM port

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 7
(500 Views)

Hi Gerd,

 

Thank you for the response.  Sorry, the confusion has arisen because of my sloppy English. I should have written "Windows does see it, but as a HID."

 

My problem is that NI MAX does not see the xplorer board at all when I plug it in via USB and so I don't know how to use the Visa_open function, because I cannot give it the resource name of the board.

 

So I thought the first step is to find out how to get NI MAX to see the board, which is a HID device...

 

Any ideas... 🙂 ?

Thanks

Alex

0 Kudos
Message 4 of 7
(496 Views)

Hi Alex,

 


@alex_b2 wrote:

My problem is that NI MAX does not see the xplorer board at all when I plug it in via USB and so I don't know how to use the Visa_open function, because I cannot give it the resource name of the board.


That board does not provide a COM port (or similar) so you cannot use VISA at all!

 


@alex_b2 wrote:

So I thought the first step is to find out how to get NI MAX to see the board, which is a HID device...


A HID device is something like a keyboard, mouse, joystick.

Do you see any of them in MAX???

 

MAX handles NI hardware and COM ports (or similar communication busses like GPIB/LXI/… devices).

MAX does NOT handle HID devices like keyboards!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(490 Views)

Hi Gerd,

 

What you say makes sense with regard to keyboard, joysticks, etc not being visible on NI MAX.....and I guess my misunderstanding arises from the fact I connected the board by USB,so I thought it was the bus and so supported by VISA.  

 

However, I believe that people use joysticks in Labview programmes, so how are they communicating with them, if they cannot us VISA functions?

 

Thanks.

Alex

0 Kudos
Message 6 of 7
(483 Views)

Hi Alex,

 


@alex_b2 wrote:

However, I believe that people use joysticks in Labview programmes, so how are they communicating with them, if they cannot us VISA functions?


There are joysticks that come with their own SDK to communicate with them.

And there is the Connectivity->InputDeviceControl functions palette…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(474 Views)