LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Command works in NI Max but not LabView

Solved!
Go to solution

@GRCK5000 wrote:

How did you get "visa test panel" on NIMAX? My NIMAX does not have it.


You have to specifically select the VISA Test Panel to be installed when you install NI-VISA.

 

BTW: The VISA Test Panel used to be installed by default with VISA and the VISA runtime. But NI in all their wisdom decided that we would rather save a few kilobytes in our installation package than have a valuable tool always at our fingertips. 

 

Please kudo my idea: Automatically include the VISA test panel in installers that include the VISA runtime

========================
=== Engineer Ambiguously ===
========================
Message 11 of 15
(587 Views)

@AETHER1 wrote:

It worked after setting the string to code display, thanks a lot!


The display style is irrelevant.. It is just a cosmetic property.

 

You could change the display style in my VI back to normal and it would still work exactly the same as long as you don't change the value, it just would look differently....

0 Kudos
Message 12 of 15
(585 Views)

@altenbach wrote:

@AETHER1 wrote:

It worked after setting the string to code display, thanks a lot!


The display style is irrelevant.. It is just a cosmetic property.

 

You could change the display style in my VI back to normal and it would still work exactly the same as long as you don't change the value, it just would look differently....


It sounds like changing the display style made his backslash code work.  What seemed to be left unsaid was what he did with the actual string to support this change.

 

One thing that I will say is confusing is that the VISA test panel accepts either an explicit backslash code or the keyboard equivalent.  i.e., \n or just the enter key.  The example they give - *IDN?\n - makes it seem like that's what you are supposed to do, so you copy that string and then it doesn't work.  it isn't immediately clear that the interactive window is set to "View mixed ASCII/hexadecimal" and the command window certainly doesn't mention it...

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 13 of 15
(572 Views)

@billko wrote:
It sounds like changing the display style made his backslash code work.  

No, I added the correct command, made it the default for the control, and changed to display style to \-codes for better visibility, then attached my version.

 

The recommended procedure would probably be to have a string input for only the text part of the command and add the trimmings on the diagram side using string functions to form the command. 😄

Message 14 of 15
(568 Views)

@RTSLVU wrote:

@GRCK5000 wrote:

How did you get "visa test panel" on NIMAX? My NIMAX does not have it.


You have to specifically select the VISA Test Panel to be installed when you install NI-VISA.

 

BTW: The VISA Test Panel used to be installed by default with VISA and the VISA runtime. But NI in all their wisdom decided that we would rather save a few kilobytes in our installation package than have a valuable tool always at our fingertips. 

 

Please kudo my idea: Automatically include the VISA test panel in installers that include the VISA runtime


Kudoed!  I have been trying to get my IT to add NI System Config with MAX, VISA, GPIB and SERIAL to every PC here since they locked down installers with no luck.  It's hard to believe that NI, who have the most ridiculously HUGE installers I've ever worked with are worried about installer size for this. 🙄

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 15 of 15
(535 Views)