Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variables in a SCPI string
#4
That works, I was just about to give up. This did what I was trying to achieve.

x = 12000
mode = f' :dds:freq {x}'
scope.write(mode)

Thank you so much.

Tom
Reply


Messages In This Thread
Variables in a SCPI string - by thomaswfirth - May-22-2023, 01:00 PM
RE: Variables in a SCPI string - by snippsat - May-22-2023, 01:21 PM
RE: Variables in a SCPI string - by nafi_ullah - May-22-2023, 04:50 PM
RE: Variables in a SCPI string - by thomaswfirth - May-22-2023, 05:04 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Referencing string names in df to outside variables illmattic 1 1,455 Nov-16-2021, 12:47 PM
Last Post: jefsummers
  Creating local variables from a string peckjonk 2 2,277 Feb-15-2020, 06:07 PM
Last Post: ndc85430
  How do I print "string involved" if one or more of my variables are strings? Shellburn 3 3,679 Oct-05-2017, 06:11 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020