Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

AFG 3022B Unable to transfer file to Edit Memory from PC through pyvisa

Post Reply
redarrow14
Posts: 2
Joined: January 18th, 2019, 12:30 am
Country: United Kingdom

AFG 3022B Unable to transfer file to Edit Memory from PC through pyvisa

Post by redarrow14 » January 18th, 2019, 2:22 am

Hello,

I am attempting to write a TFW file to the ememory which will then be outputted to channel one on my AFG3022B. From my understanding of the programmers manual this should work. Any help is greatly appreciated.

Bonus question, in the programmers manual, what does mass memory refer to?
Bonus question 2, is the AFG only capable of reading TFW files from its edit memory? A way to upload csv files would be handy.


import visa
rm = visa.ResourceManager()
afg = rm.get_instrument('USB0::0x0699::0x0347::C031494::INSTR')
afg.write('*RST')
afg.write('mmemory:load:trace ememory,r"C:/Users/redarrow/Waveform3.tfw" ')
afg.write('data:copy user1, ememory')
afg.write('source1:function user1')


Thanks!

redarrow14
Posts: 2
Joined: January 18th, 2019, 12:30 am
Country: United Kingdom

Re: AFG 3022B Unable to transfer file to Edit Memory from PC through pyvisa

Post by redarrow14 » January 18th, 2019, 2:55 am

I now realise that mass memory refers to the USB memory, explaining why the above code does not work.

Is there a way to upload a tfw file directly from the PC to the AFG3022B without using a USB?

David N
Tektronix Applications
Tektronix Applications
Posts: 558
Joined: July 31st, 2008, 8:26 am

Re: AFG 3022B Unable to transfer file to Edit Memory from PC through pyvisa

Post by David N » January 18th, 2019, 9:38 am

Take a look at a the programming example for Python 3 at: viewtopic.php?t=139206.

Post Reply

Return to “AFG1000/2000/3000 series”

Who is online

Users browsing this forum: No registered users and 3 guests