09-06-2023 07:56 AM
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...
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..
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
09-07-2023 12:48 AM
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
09-07-2023 05:05 AM
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…
09-07-2023 05:18 AM
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
09-07-2023 05:45 AM
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!
09-07-2023 06:04 AM
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
09-07-2023 06:16 AM
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…