LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Find Resource always return with error -1073807343

Hi,

 

I've probably made my simplest circuit ever:

Kjerland_0-1671050298353.png

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.

Kjerland_1-1671050402240.png

 

Here is an overview of what I have installed on my system, and two can bus dongles:

Kjerland_2-1671050480418.png

 

Anyone have any suggestions what can be wrong? The can dongles are working great in both Labview and Labwindows

 

Thanks

0 Kudos
Message 1 of 5
(1,789 Views)

You need an expression string connected to the top left input.  Try "?*" or "/?*" without the quotes.

0 Kudos
Message 2 of 5
(1,765 Views)

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 

0 Kudos
Message 3 of 5
(1,738 Views)

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.

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

That is correct the Find VISA Resources with no input should return all VISA resources listed in NI-Max 

FINDVR.PNG

 

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.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 5
(1,672 Views)