12-14-2022 02:42 PM
Hi,
I've probably made my simplest circuit ever:
I want to list the CAN/COM devices connected to my pc, but for now I get an error just listing anything, so I assume there is something higher level issue.
Here is an overview of what I have installed on my system, and two can bus dongles:
Anyone have any suggestions what can be wrong? The can dongles are working great in both Labview and Labwindows
Thanks
12-14-2022 04:03 PM
You need an expression string connected to the top left input. Try "?*" or "/?*" without the quotes.
12-15-2022 02:10 AM
Thanks for replying. I've tried with different combinations of inputs, same error.
Here is an official example from ni, where the only thing connected is the output array of interfaces found by the function example
12-15-2022 02:49 AM - edited 12-15-2022 02:51 AM
VISA doesn't interface to CAN devices, definitely not the NI ones (there are some out there that present themselves as serial interface but you then need to send them specific commands to do anything useful on the CAN side.
To access NI CAN interfaces you want to use NI-XNET.
As for enumerating COM ports (called ASRL in VISA for Asynchonous SeRiaL) it would seem your VISA installation is somehow messed up. Try to (re)install the NI-VISA drivers and make sure that the ASRL passport is indeed selected in the installation options.
12-19-2022 10:09 AM - edited 12-19-2022 10:11 AM
That is correct the Find VISA Resources with no input should return all VISA resources listed in NI-Max
Find VISA Resources tries to open a VISA session to all the resources it finds.
Error -1073807343 usually means some other (even LabVIEW) software has the resource (Com port) open or not closed it properly, so NI-VISA is unable to open a VISA session for access.