0

VISA does not work

Hello,

I wrote a procedure for a HP6623A  Power Supply with MetCal 7.2. In this procedure I used the VISA command  and it works fine.

After an update to Metcal 8.3 the VISA command does not work.

Have anyone the same or similar problem?

There are any solutions?

 
 

 

9 comments

Date Votes
0
Avatar
Michael Johnston

Did you try going through it in Editor in debug mode to see where it's struggling at? Any particular reason you used VISA rather than IEEE/IEEE2/SCPI?

0
Avatar
Wolfgang Reiner

I try it in debug mode - the procedure runs without any error message but no command has an effect.
for example:
With VISA ID? [I$] there is no response.
With IEEE ID? [I$] there is HP6623A as response.
or
VISA  VSET 1,1 don't set the voltage

I use VISA as standard command for communication.

0
Avatar
Michael Johnston

Do you have the Agilent VISA installed? I know sometimes there's conflicts between the NI VISA and Agilent VISA. MET/CAL uses the NI VISA, but if it's not the default, that could cause problems.

0
Avatar
William Green

Is the VISA device showing up in NI MAX? Can you query it in NI MAX(*IDN?\n) and get a response?

0
Avatar
Wolfgang Reiner

First, thanks for your input.

The instrument is showing up in NI MAX and I can communicate with it.
As I wrote the procedure works fine with 7.2 in my environment. After update to 8.3 there is this problem. 
All other settings in my system are the same.

 

0
Avatar
William Green

I upgraded to 8.3 about 2 years ago. I haven't had any problems communicating via VISA except for on LeCroy Oscilloscopes. Can't quite figure out that problem. Attached is a piece of code from the Agilent 34461A DMM, if this helps. I use this procedure a lot.

Attachment not imported: visa_setup.txt
0
Avatar
Nickolas Short

Maybe it has something to do with your EOS (End of String) or EOL (End of Line) terminators?

This is from the VISA FSC help file:

[OTERM CR] - Send Carriage Return after message
[OTERM LF] - Send Line Feed after message

Try some of these and see if it works :)

0
Avatar
Wolfgang Reiner

Nick S. you are right ;-)

Add VISA [OTERM CRLF] as termination characters and the procedure runs.
But this is new in MetCal 8, with Version 7 I never used termination charaters for VISA.
I know this only for RS-232 communication.

Thanks all

0
Avatar
Nickolas Short

Glad I could help :)

EOL and EOS stuff can be confusing, mostly because I haven't come across a manual for a piece of equipment that was very clear on WHICH terminator to use ;)

Please sign in to leave a comment.