SRQs at the beginning of a procedure.

Many moons ago, Krista told me how to automatically clear instrument SRQs during the start of a procedure by adding something to the metcal.ini file. I have since forgotten what that is.

Does anyone know what that might be?

Groups:

Comments

mjohnst1

Hi Nick, I just asked her and

Hi Nick,

I just asked her and it's power_on_SRQ0=Clear for standards and power_on_SRQ1=Clear for the DUT.

1488999028

Where in the ini file should

Where in the ini file should these values be included? Under [Run Time] or someplace else?

mjohnst1

All these types of settings

All these types of settings are in the "startup" section. Very few things are outside of that area.

1488999028

Fantastic! Thanks Michael,

Fantastic! Thanks Michael, that is some excellent knowledge to have. I will play around with that and see if that solves some of my SRQ issues. 

1422548136

Thanks for responding

Thanks for responding Michael. Unfortunately, it didn't fix my issue :(

1422548136

Here's a screenshot of one

Here's a screenshot of one such error. It is only happening with the 5522A that we have. It does not happen on our 5520A system.

AttachmentSize
srq.jpg 9.27 KB
1422548136

The error we're getting is

The error we're getting is right at the first line of the procedure (in this case [and most cases] it is the ASK- FSC). It happens on every procedure.

mjohnst1

Hi Nick,  Those aren't

Hi Nick, 

Those aren't actually SRQs being reported, those are residual errors in the queue. The "ERR?" command will read and clear an error. You can add a loop at the procedure start if you like to clear those out:

         IEEE         [@5522A]ERR?[I]         WHILE        MEM!=0         IEEE         [@5522A]ERR?[I]         ENDW

1376599284

Surley a simple reset would

Surley a simple reset would clean up those types of errors?

"5522A Reset"

mjohnst1

No, it's a safety concern,

No, it's a safety concern, that's why the errors remain after a reset.

1376599284

Intersting if I do this with

Intersting if I do this with nothing connected to the calibrator to force the same error as the picture I get a 0,"No Error" into MEM2

  1.001  5502E        +Current = 4.000 mA; CurrentTerminal = Aux

  1.002  IEEE2        [@5502E] ERR? [I$]

 

1395164410

Nick, The easiest way to

Nick,

The easiest way to clear these errors is to pass *CLS at the start of your program.

 

*CLS x IEEE-488 x RS-232 x Sequential x Overlapped x Coupled
(Clear Status command) Clears the ESR, ISCR0, ISCR1, the error queue, and the RQS
bit in the status byte. This command terminates pending operation complete commands
(*OPC or *OPC?).
Parameter: (None)
Example: *CLS
Clear the ESR, ISCR0, ISCR1, the error queue, and the RQS bit in the status byte.

 

Justin