LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2021: Initalization.vi from driver libraries is not acting well its internal visa components

Hi! Thanks kindly for looking into it. There are couple of components for instance like power supplies, oscilloscopes etc that we are using labview to connect to them and perform functions ex: turning on and off etc. For each of these components there are labview associated drivers that already have .vi's that help in taking to these components Ex: Initialize.vi, Close.vi etc. 

In labview 2021 version, the driver associated vi called Initialization.vi is not playing well and generating an error as its output. The error does occur when it hits visa related objects inside the initalization.vi. For example, attached is an example of how it errors out for MagnaDC powersupply. Initially it was assumed that it was only magnadc driver related but the same error seems to be reciprocating for other component drivers as well and in the same instance when it hits the visa related object in the vi.

 
MagnaDC initialization.vi: 

BensonCo_0-1665420599858.png

Initialization.vi with Probes:

BensonCo_1-1665420654538.png

 

Error after being run:

BensonCo_2-1665420654545.png

Probe window after being run:

BensonCo_3-1665420654548.png

 

It does seem to connect to the component fine through the putty session though and we're able to send commands to it but that doesn't seem to be the case when adding labview in the equation. From the initial wireshark that was put forth it seems as if both the visa and component themselves are talking different protocols. 

Putty Session:

BensonCo_4-1665420894998.png

Question: 
Is there any way to remedy this initialization.vi's visa related generated error? If it helps, it is able to initialize fine with older version of device's drivers although not consistent all across. 

 

0 Kudos
Message 1 of 3
(646 Views)

Judging by the error message (that I had to look up because you didn't bother posting it)

 

"Insufficient location information or the device or resource is not present in the system"

 

Either the device is not on the IP address or the Initialize vi is looking for a serial port. 

 

I can't tell by your pictures it you have the initialize vi wired properly. Which is why you should always attach your vi not just insert pictures of your block diagram. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 3
(619 Views)
In the case of the magna driver error, your problem is most likely the visa string you're using. You gotta replace "inst0::INSTR" with "50505::SOCKET" (magna's default TCP port is 50505). At least this is how it is with the TS series, which I'm guessing is common across all of their power supplies. Best way to get the correct VISA string is to open a web browser and go to the instrument's IP address. On the information page it'll tell you what the instrument address string is.
0 Kudos
Message 3 of 3
(586 Views)