Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to send the DCL command to gpib device from 7210

Hi,
    Thank you for your prompt reply. In the first post, the values of ISR2  was 0x1E and ISR1 was 0x00.
After getting your reply, I changed the program and this is the actual procedure I followed now and the results that i got.
 
ldi AUXMR,0x02  ;set pon
ldi ADMR,0x31  //normal primary addressing
ldi ADR,0x00  // loading ADR0 with primary address 0
ldi ADR,0xE0  //disabling ADR1
ldi IMR1,0x06// setting CO interrupt and clearing all others
ldi IMR2,0x08// setting DO bit and clearing all others
ldi AUXMR,0x9C ;source handshaking normal in AUXMRA
ldi AUXMR,0xA0 ; T1 delay >2micro sec AUXMRB
ldi CDOR,0x00; emptying the CDOR
ldi AUXMR,0x00; clear pon
 
 
ldi AUXMR,0x1E  //set IFC
ldi AUXMR,0x1F //REN (since i read that some commands respond only in remote state)
 
wait for CO bit to set  --- I got ISR2 register value at this point as 1E and CO bit got set
 
ldi CDOR,0x3F // Unlisten UNL
 
[But there is only one device on the bus]
 
wait for CO bit to set
 
ldi CDOR,0x25  // MLA 5
 
wait for CO bit to set   ...........................My code got struck up at this point waiting for CO bit to set and the DIO lines have 25 on them and  DAV* not asserted, NRFD* not asserted and NDAC* Asserted.
 
[Does this mean that the command MLA5 is not accepted by the device?? since the program got struck up at this point while waiting for CO to set??]
 
ldi CDOR,0x14 // DCL
 
...........................................
I dont understand why the CO bit is not setting for the third time which stopped me to proceed further????
............................
Also to my surprise, if I write the first command to CDOR as MLA5 instead of UNL , the program is strucking up at the first byte (MLA5) read itself..
 Does it mean that MLA  command is not accepted by the device??
 
 
If the device accepts the MLA and DCL and respond to it, my work will be completed.
 
So please help me to cross this hurdle..
 
2.  And also, how does the device indicate that it has accepted DCL command? How can we recognise that?
 
Thanking you
 
swathi
 
 
0 Kudos
Message 1 of 2
(3,374 Views)
0 Kudos
Message 2 of 2
(3,350 Views)