You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for i in range(1, 7):
cond = instr.query(f'CALC:MARK{i}:FUNC:FME:LIM:COND?')
delt = instr.query(f'CALC:MARK{i}:FUNC:FME:LIM:DELT?')
print(f'Mark {i} Limit Condition: {cond}, Delta: {delt}')
instr.close()
`
The following error message is :
RsInstrument. Internal. InstrumentErrors. StatusException:'TCPIP::192. 168. 48. 128::INSTR': Instrument error detected: -113,"Undefined header;CALC:MARK:FUNC:FME:STAT ON"
The text was updated successfully, but these errors were encountered:
Hi Essence9999, sorry for the delay. Is this issue still active? I see you are using the ESW8. My guess is - the instrument is in a mode where it does not know thie command CALC:MARK:FUNC:FME:STAT ON. I suggest you to check your sequence. Was it working before on another instrument or another SCPI-communcator?
Run the following code:
`
from RsInstrument import *
RsInstrument.assert_minimum_version('1.50.0')
instr = RsInstrument('TCPIP::192.168.48.128::INSTR', True, True)
instr.write('FREQ:STAR 150kHz')
instr.write('FREQ:STOP 1GHz')
instr.write('DISP:TRAC1 ON')
instr.write('DISP:TRAC2 ON')
instr.write('DET1 POS')
instr.write('DET2 AVER')
instr.write('CALC:MARK:FUNC:FME:STAT ON')
instr.write('BAND:TYPE CISP')
instr.write('BAND:RES 1MHz')
instr.write('CALC:MARK:FUNC:FME:DWEL 1ms')
instr.write('CALC:MARK:FUNC:FME:PEAK:AUTO ON')
instr.write('DISP:TRAC:X:SPAC LOG')
instr.write('CALC:MARK:FUNC:DEM ON')
instr.write('SWE:POIN 200000')
instr.write('CALC:UNIT:POW V')
for i in range(1, 7):
instr.write(f'CALC:MARK{i} ON')
for i in range(1, 4):
instr.write(f'CALC:MARK{i}:TRAC 1')
for i in range(4, 7):
instr.write(f'CALC:MARK{i}:TRAC 2')
for i in range(1, 7):
instr.write(f'CALC:MARK{i}:FUNC:FME:DET CAV')
instr.write('CALC:LIM1:NAME "EN55011A.LIN"')
instr.write('CALC:LIM1:TRAC1:CHEC ON')
instr.write('CALC:LIM:CLE')
instr.write('INIT:CONT OFF')
instr.write('INIT;*WAI')
for i in range(1, 7):
freq = instr.query(f'CALC:MARK{i}:X?')
level = instr.query(f'CALC:MARK{i}:FUNC:FME:RES?')
print(f'Mark {i} Frequency: {freq}, Level: {level}')
lim1_fail = instr.query('CALC:LIM1:FAIL?')
print(f'Limit 1 Fail: {lim1_fail}')
for i in range(1, 7):
cond = instr.query(f'CALC:MARK{i}:FUNC:FME:LIM:COND?')
delt = instr.query(f'CALC:MARK{i}:FUNC:FME:LIM:DELT?')
print(f'Mark {i} Limit Condition: {cond}, Delta: {delt}')
instr.close()
`
The following error message is :
RsInstrument. Internal. InstrumentErrors. StatusException:'TCPIP::192. 168. 48. 128::INSTR': Instrument error detected: -113,"Undefined header;CALC:MARK:FUNC:FME:STAT ON"
The text was updated successfully, but these errors were encountered: