Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RsInstrument. Internal. InstrumentErrors. StatusException:'TCPIP::192. 168. 48. 128::INSTR': Instrument error detected: -113,"Undefined header;CALC:MARK:FUNC:FME:STAT ON" #23

Open
Essence9999 opened this issue Sep 20, 2024 · 1 comment
Assignees

Comments

@Essence9999
Copy link

Essence9999 commented Sep 20, 2024

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"
263c1cb213a05f377f64bac6e5a5148
1bb94523a04bb19bf4fa85244beb1c3

@Miloslav-RS
Copy link
Collaborator

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?

@Miloslav-RS Miloslav-RS self-assigned this Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants