sgn.write("FREQUENCY:MODE CW") time.sleep(0.1) sgn.write("OUTPUT 1") time.sleep(0.1)
Thanks for any help
If I'm not mistaken, that instrument only has 1 output channel,
so, what, exactly, are you trying to do?
Alex Forencich
--
You received this message because you are subscribed to the Google Groups "python-ivi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-ivi+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Oh, are you using an 855 and not an 845, then?
Looks like you need to add the channel number to the command, so
instead of output 1 to turn on the output, you would use output1 1
or output2 1.
Alex Forencich
Would
sgn.write("OUTPUT1 0")
sgn.write("OUTPUT2 0")
turn off the outputs for him? I haven’t written Python code in a long time and don’t use python-ivi (but am very interested in the this mailing list and the progresses made), so please forgive me if this is the incorrect command to turn off the outputs for him. Just thought I’d try to help (and hopefully, not mislead him).
Kenneth Swarthout
Yeah, that looks right, at least according to the manual. For
changing the frequency, it seems the correct command would be
something like
sgn.write("SOURCE1:FREQUENCY:CW 1e9")
sgn.write("SOURCE2:FREQUENCY:CW 1e9")
Alex Forencich
https://www.berkeleynucleonics.com/sites/default/files/BNC%20Model%20845%20PM%2011-30-17_0.pdf
Alex Forencich