ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

command misundertanding

Hello All,
 
Im using JPIB API build in Java to GPIB communication and I have a curious problem which I can not find out why?
 
When I send some initialization commands like :
 
*CLS; *RST ;STAT:PRES<LF>
*SRE0;*ESE0;:CONF:LOC:STAT CURR<LF>
 
The instrument interprets like this:
 
*SRE1
*CLS; *RST ;STAT:PRES<LF>
*SRE1
*SRE0;*ESE0;:CONF:LOC:STAT CURR<LF>
 
It put the "*SRE1" before the commands,
 
Does anybody have some tip?
Thanks in advance,
marcio
 
 
 
 
 
0 Kudos
Message 1 of 2
(3,086 Views)
It might be a problem caused by the instrument's command parser.  If there is such a problem when you send multiple commands in a line (with concatenating by semicolons), try to send each command separately.  It may work.
 
By the way, 488.2 common commands require a white-space between the header and parameter. 
Therefore *SRE1 shall be replaced with *SRE 1  It is also true for *ESE.
 
 
0 Kudos
Message 2 of 2
(3,049 Views)