From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA ressource name property node shows error -1073807346

Hi.

 

I'm using a usb2can adapter and its drivers.

For the connection the driver takes in a string with the name of the connected port, typically COM3 in my case.

 

To ensure compatibility between machines (won't be operated on the machine I'm using top develop) I'm trying to use the VISA Ressource Name input after renaming my device in NImax as USB2CAN. I was told that you could connect it directly to a string input, but then my driver reads in "USB2CAN" and not COM3.

 

So I came up with this, which seems a bit complex for a simple operation in the send:

test.png

Now that works absolutely fine... in this empty VI. Above you can see two tests, both are fine and give the same result, one is just "automatized".

But for some reason it won't work in another VI, even if those two are on the same machine.

The problems comes from the property node, Labview tells me there is an error with argument 1 and I don't get it.

 

However, after trying renaming differently my device in NI MAX, I can see these and I don't know why.

VinnyLaTaupe_0-1600860922894.png

Only COM1 and USB2SCAN are connected, so I don't get it.

 

I'm clearly lacking knowledge in VISA Ressources, and any help would be welcome 🙂

 

Best,

Vinny.

0 Kudos
Message 1 of 1
(691 Views)