LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why viWrite works and VISA Write does not (insufficient location information)?

Solved!
Go to solution

I have issues with a VISA device which works from NI-MAX test panel but it doesn't with Labview VISA write.

 

I did checked NI I/O Trace to see the difference and the buffer for "*IDN?\n" is the same, the difference is that NI-MAX Visa test panel uses viWrite while the Labview visa write uses "Visa write". In theory it should not be any difference between the two but it seems it does.

 

Here it is the trace, the upper one when I try from NI-MAX, the two errors are when trying from Labview. I did tried with shortened VISA reference and also direct TCPIP link (both returns the same error). The VISA Open works however (added a probe after visa open and the result is at the end of the screenshot so it seems it finds it ok, the issue appears with first VISA write which is a IDN query.

 

Itech 3223 issue.png

I am aware of this two issues:
https://forums.ni.com/t5/LabVIEW/IDN-works-in-VISA-test-panel-but-VI-does-not/td-p/3575540/page/2

https://forums.ni.com/t5/LabVIEW/VISA-Hex-0xBFFF0011-Insufficient-location-information-or-the/td-p/6...

however I do not have any additional driver, nor package I can install (except different versions of NI-VISA).

 

My labview version is 2019sp2 and NI-VISA is 21.5 (installed with NI-DAQmx).

0 Kudos
Message 1 of 12
(2,453 Views)

What is the instrument you are trying to communicate with?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 12
(2,422 Views)

@BarnaCsenteri wrote:

I have issues with a VISA device which works from NI-MAX test panel but it doesn't with Labview VISA write.

 

I did checked NI I/O Trace to see the difference and the buffer for "*IDN?\n" is the same, the difference is that NI-MAX Visa test panel uses viWrite while the Labview visa write uses "Visa write". In theory it should not be any difference between the two but it seems it does.

 

Here it is the trace, the upper one when I try from NI-MAX, the two errors are when trying from Labview. I did tried with shortened VISA reference and also direct TCPIP link (both returns the same error). The VISA Open works however (added a probe after visa open and the result is at the end of the screenshot so it seems it finds it ok, the issue appears with first VISA write which is a IDN query.

 

Itech 3223 issue.png

I am aware of this two issues:
https://forums.ni.com/t5/LabVIEW/IDN-works-in-VISA-test-panel-but-VI-does-not/td-p/3575540/page/2

https://forums.ni.com/t5/LabVIEW/VISA-Hex-0xBFFF0011-Insufficient-location-information-or-the/td-p/6...

however I do not have any additional driver, nor package I can install (except different versions of NI-VISA).

 

My labview version is 2019sp2 and NI-VISA is 21.5 (installed with NI-DAQmx).


You have not released the resources the the VISA test panel is reserving.  No other application can get a session handle while the resources are reserved so you get an error that essentially means; "VISA cannot open a session to that resource from this application." 

Close the VISA interactive test panel and try again.


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 12
(2,394 Views)

@JÞB wrote:
You have not released the resources the the VISA test panel is reserving.  No other application can get a session handle while the resources are reserved so you get an error that essentially means; "VISA cannot open a session to that resource from this application." 

Close the VISA interactive test panel and try again.


It is closed. I did also retried with restarted system (without even opening that panel). Does not works.

0 Kudos
Message 4 of 12
(2,358 Views)

@RTSLVU wrote:

What is the instrument you are trying to communicate with?


I tried with a few ITECH PSU's (2xM3223 and 1xM3812), neither works. Neither of them has special drivers, it's simple over the ethernet VISA. The only thing they provide is a VISA based factory API which 1st thing after open does a *IDN? (for identification).

 

I tried with a local simple "COM1" and that works.

 

Tried the same instruments from a different PC, same network, same labview, visa a bit older - it does not works either (however since the second system is a development PC there were 20-30 devices already started with this one without issues).

 

So I am not sure if this is something instruments related or some VISA issue - it it would not work from NI-MAX test panel I would say instrument issue but with that working I just don't know 😞

 

Tried raw socket too - it connects but no answer to *IDN?\n (both VXI-11 and raw socket are mentioned in the instrument manual).

 

I will contact the instrument maker too just to be sure there is not a bug on their side.

0 Kudos
Message 5 of 12
(2,353 Views)

You haven't shown any code yet, so it is hard to say what you are doing in your LabVIEW setup. 

I know that the ITECH vi's that I have found has a ton of errors and bad LabVIEW implementations. 

0 Kudos
Message 6 of 12
(2,343 Views)

@BarnaCsenteri wrote:

Tried raw socket too - it connects but no answer to *IDN?\n (both VXI-11 and raw socket are mentioned in the instrument manual).


Are you using a normal display mode or '\ Codes' display mode for your command string?  If using normal, your command is not correct.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 12
(2,335 Views)

@dkfire wrote:

You haven't shown any code yet, so it is hard to say what you are doing in your LabVIEW setup. 

I know that the ITECH vi's that I have found has a ton of errors and bad LabVIEW implementations. 


That's exactly the reason I did made a simple test code (attached) which produces the same error.

I did tried with, without termination character etc. but the buffer in IO trace looks the same for VISA test panel and this dummy code:

BarnaCsenteri_0-1663072475213.png

 

0 Kudos
Message 8 of 12
(2,333 Views)

@crossrulz wrote:

@BarnaCsenteri wrote:

Tried raw socket too - it connects but no answer to *IDN?\n (both VXI-11 and raw socket are mentioned in the instrument manual).


Are you using a normal display mode or '\ Codes' display mode for your command string?  If using normal, your command is not correct.


C codes. Anyway the buffer seems to be the same for the VISA and viWrite content in IO trace (so it should be ok in theory).

0 Kudos
Message 9 of 12
(2,331 Views)

@BarnaCsenteri wrote:

@crossrulz wrote:

@BarnaCsenteri wrote:

Tried raw socket too - it connects but no answer to *IDN?\n (both VXI-11 and raw socket are mentioned in the instrument manual).


Are you using a normal display mode or '\ Codes' display mode for your command string?  If using normal, your command is not correct.


C codes. Anyway the buffer seems to be the same for the VISA and viWrite content in IO trace (so it should be ok in theory).


Your example VI is using \ Codes.  But a word of advice.  If you are using a display mode other than normal, turn on the display style (right-click, Visible Items->Display Mode).

 

Back to your actual issue, you might be having issues with a firewall.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 12
(2,312 Views)