Products > Test Equipment
Sig 1104X-E what am i doing wrong
(1/1)
bobberCHOP:
Hello all newbie here. befrore <-----J/k Before I ask my question be forewarned my spelling grammar and memory suck, sooooo;)
I am new to code, Python, and the 1104 is my 1st scope, so be easy on me PLZ!! :phew:
Anywho, I managed to increase my BW to 200, but I have had no luck with any other options. I even tried removing scopeid from script with no success. What am I doing wrong here??? I have tried both SCPI and manually, been at this for days now, and goin bonkers |O :-//. Any idears??? I can post a snap of the script if that would help?? Thank you in advance !!
tautech:
--- Quote from: bobberCHOP on January 04, 2023, 08:52:54 pm ---Hello all newbie here. befrore <-----J/k Before I ask my question be forewarned my spelling grammar and memory suck, sooooo;)
I am new to code, Python, and the 1104 is my 1st scope, so be easy on me PLZ!! :phew:
Anywho, I managed to increase my BW to 200, but I have had no luck with any other options. I even tried removing scopeid from script with no success. What am I doing wrong here??? I have tried both SCPI and manually, been at this for days now, and goin bonkers |O :-//. Any idears??? I can post a snap of the script if that would help?? Thank you in advance !!
--- End quote ---
Welcome to the forum.
Try the SN#.
bobberCHOP:
--- Quote from: tautech on January 04, 2023, 08:58:58 pm ---
--- Quote from: bobberCHOP on January 04, 2023, 08:52:54 pm ---Hello all newbie here. befrore <-----J/k Before I ask my question be forewarned my spelling grammar and memory suck, sooooo;)
I am new to code, Python, and the 1104 is my 1st scope, so be easy on me PLZ!! :phew:
Anywho, I managed to increase my BW to 200, but I have had no luck with any other options. I even tried removing scopeid from script with no success. What am I doing wrong here??? I have tried both SCPI and manually, been at this for days now, and goin bonkers |O :-//. Any idears??? I can post a snap of the script if that would help?? Thank you in advance !!
--- End quote ---
Welcome to the forum.
Try the SN#.
--- End quote ---
Thank you for the welcome!!!! :)
I did that with no success. It did make the return list shorter.
------------------------------------------------------------------------------------
import hashlib
SCOPEID = '00246c44xxxx'
SN = 'SDSMMGKCxxxxxx'
Model = 'SDS1000X-E'
bwopt = ('25M', '40M', '50M', '60M', '70M', '100M', '150M', '200M',
'250M', '300M', '350M', '500M', '750M', '1000M', 'MAX')
otheropt = ('AWG', 'WIFI', 'MSO', 'FLX',
'CFD', 'I2S', '1553', 'FG', '16LA')
hashkey = '5zao9lyua01pp7hjzm3orcq90mds63z6zi5kv7vmv3ih981vlwn06txnjdtas3u2wa8msx61i12ueh14t7kqwsfskg032nhyuy1d9vv2wm925rd18kih9xhkyilobbgy'
def gen(x):
h = hashlib.md5((
hashkey +
(Model+'\n').ljust(32, '\x00') +
opt.ljust(5, '\x00') +
2*(((SCOPEID if opt in bwopt else SN) + '\n').ljust(32, '\x00')) +
'\x00'*16).encode('ascii')
).digest()
key = ''
for b in h:
if (b <= 0x2F or b > 0x39) and (b <= 0x60 or b > 0x7A):
m = b % 0x24
b = m + (0x57 if m > 9 else 0x30)
if b == 0x30:
b = 0x32
if b == 0x31:
b = 0x33
if b == 0x6c:
b = 0x6d
if b == 0x6f:
b = 0x70
key += chr(b)
return key.upper()
for opt in bwopt:
print('{:5} {}'.format(opt, gen(SCOPEID)))
for opt in otheropt:
print('{:5} {}'.format(opt, gen(SN)))
AWG 53W5P642xxxxxxx
WIFI C7EJA4S5xxxxxxxx
MSO YR86Z8Z3xxxxxxxx
FLX 7KACRPMUxxxxxxxx
CFD GEJGN33Dxxxxxxxx
I2S F97MM4CFxxxxxxxx
1553 3M4M8J3Axxxxxxxx
FG PCJ9MI4Dxxxxxxxx
16LA T3MBKQNWxxxxxxxx
bobberCHOP:
I ran it again and this time it worked. Maybe I miss spelled something along the way??? :-//
It works!!!
Navigation
[0] Message Index
Go to full version