|
Post by achillean on Feb 24, 2020 12:32:04 GMT -5
Hello,
I am trying to use gpib/scpi commands to set magnet field strength for the 735vsm. As a first pass I am trying to do this with the COUT command, but the way to specify the field strength makes no sense at all. Its description is as follows:
COUT Manually set field output.
Sent: COUT XXXXXXXX[term]
Returned: Nothing. Return requires COUT?.
Remarks: The X field is an eight character ASCII representation of a binary floating point number in
percent of full scale field output. Use COUT when CMODE = 0. The range and resolution are
-100.000 to +100.000%. Default 00000000 (0%).
NOTE: COUT ends an active ramp and forces field output to the COUT setting value. COUT?
is always active and will not stop a ramp.
I am totally baffled by what this means. Not enough information is provided to figure out how to tell it I want 10% field or 0.5% field strength.
So far I have discerned that the value set must be exactly 8 characters long and each character must be a hex value (0-F).
Some values I've tried: Hex Value, Float Value, FieldV Oe 00000000, 0, 0 87C80000, -3.00927e-34, -Max(offscale) 00400000, 5.87747e-39, +10.7 00800000,1.17549e-38, +22.43 00F00000, 2.20405e-38, +43.73 01000000, 2.35099e-38, +00.98 02F10000, 3.54118e-37, +194.05 00FF0000, 2.34181e-38, +45.97 01FF0000, 9.36722e-38, +93.63
It's incredibly confusing and honestly makes no sense to have done it whatever way they did it. Like if 00F00000 is 43.73Oe then why is 01000000 not one increment more than it, but is instead 0 again?! But then if that position didn't matter why does making it 01FF0000 suddenly double the value compared to 00FF0000.
|
|
|
Post by achillean on Feb 24, 2020 16:10:33 GMT -5
Some additional examples of how the hexcode to ramp value seem arbitrary. It is clear that the MSB in the 32bit binary representation corresponds to the positive or negative value. What's not clear is why the hex codes arbitrarily jump at 114 to 115 or any of the other numbers.
Ramp HexCode Binary Representation 0, 00000000 ['0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000'] -1, f98e7835 ['1111', '1001', '1000', '1110', '0111', '1000', '0011', '0101'] 1, 798e7835 ['0111', '1001', '1000', '1110', '0111', '1000', '0011', '0101'] 2, 7a8e7835 ['0111', '1010', '1000', '1110', '0111', '1000', '0011', '0101'] 3, 7ad5b450 ['0111', '1010', '1101', '0101', '1011', '0100', '0101', '0000'] 4, 7b8e7835 ['0111', '1011', '1000', '1110', '0111', '1000', '0011', '0101'] 5, 7bb21642 ['0111', '1011', '1011', '0010', '0001', '0110', '0100', '0010'] 10, 7cb21642 ['0111', '1100', '1011', '0010', '0001', '0110', '0100', '0010'] 11, 7cc3e549 ['0111', '1100', '1100', '0011', '1110', '0101', '0100', '1001'] 17, 7d975fb8 ['0111', '1101', '1001', '0111', '0101', '1111', '1011', '1000'] 18, 7da0473c ['0111', '1101', '1010', '0000', '0100', '0111', '0011', '1100'] 100, 7fde9bd3 ['0111', '1111', '1101', '1110', '1001', '1011', '1101', '0011'] 114, 7ffdc61f ['0111', '1111', '1111', '1101', '1100', '0110', '0001', '1111'] 115, 00800000 ['0000', '0000', '1000', '0000', '0000', '0000', '0000', '0000'] 116, 00811cf0 ['0000', '0000', '1000', '0001', '0001', '1100', '1111', '0000'] 117, 008239e0 ['0000', '0000', '1000', '0010', '0011', '1001', '1110', '0000'] 118, 008356d1 ['0000', '0000', '1000', '0011', '0101', '0110', '1101', '0001'] 200, 00de9bd3 ['0000', '0000', '1101', '1110', '1001', '1011', '1101', '0011'] 201, 00dfb8c3 ['0000', '0000', '1101', '1111', '1011', '1000', '1100', '0011'] -201, 80dfb8c3 ['1000', '0000', '1101', '1111', '1011', '1000', '1100', '0011'] -10, fcb21642 ['1111', '1100', '1011', '0010', '0001', '0110', '0100', '0010'] 600, 02a6f4de ['0000', '0010', '1010', '0110', '1111', '0100', '1101', '1110'] 1000, 038b2164 ['0000', '0011', '1000', '1011', '0010', '0001', '0110', '0100'] -1000, 838b2164 ['1000', '0011', '1000', '1011', '0010', '0001', '0110', '0100'] 5000, 05ade9bd ['0000', '0101', '1010', '1101', '1110', '1001', '1011', '1101'] 10000, 06ade9bd ['0000', '0110', '1010', '1101', '1110', '1001', '1011', '1101'] 20000, 07ade9bd ['0000', '0111', '1010', '1101', '1110', '1001', '1011', '1101'] 22500, 07c3a6f4 ['0000', '0111', '1100', '0011', '1010', '0110', '1111', '0100'] 22999, 07c7fdc6 ['0000', '0111', '1100', '0111', '1111', '1101', '1100', '0110'] 23000, 07c80000 ['0000', '0111', '1100', '1000', '0000', '0000', '0000', '0000'] -23000, 87c80000 ['1000', '0111', '1100', '1000', '0000', '0000', '0000', '0000'] -10000, 86ade9bd ['1000', '0110', '1010', '1101', '1110', '1001', '1011', '1101']
|
|