May-22-2023, 01:00 PM
Hi, I'm new to Python programming and have been unable to find help with a question.
Can a variable be used within a SCPI command? I would like to set a variable like x = 10000 and then put that variable within the command. I am using Visual Studio Code.
Example:
:DDS:MODE:FREQ <freq>
Set Frequency to 10000
scope.write(":DDS:FREQ 10000")
Can a variable be inserted instead of the actual number?
x = 10000
scope.write(":DDS:FREQ x")
Any help would be appreciated.
Can a variable be used within a SCPI command? I would like to set a variable like x = 10000 and then put that variable within the command. I am using Visual Studio Code.
Example:
:DDS:MODE:FREQ <freq>
Set Frequency to 10000
scope.write(":DDS:FREQ 10000")
Can a variable be inserted instead of the actual number?
x = 10000
scope.write(":DDS:FREQ x")
Any help would be appreciated.