Hello,
I want to transfer a waveform into arbitray memory of the tektronix signal generator using VISA commands.
I tried to use viWrite(vi, (ViBuf) "DATA:DATA EMEMory,#42000<DAB><DAB>...<DAB>", 24, &retCnt) but I don't know exactly how to define the binary block data.
My code:
status = viWrite(vi, (ViBuf) "DATA:DATA EMEMory,#180000011111010000000001111101000000000111110100000000011111010000", 86, &retCnt);
status = viWrite(vi, (ViBuf) "DATA:COPY USER1,EMEMory", 24, &retCnt);
status = viWrite(vi, (ViBuf) "FUNCTION USER1", 15, &retCnt);
status = viWrite(vi, (ViBuf) "OUTPut1:IMPedance MAXimum INFinity", 35, &retCnt);
status = viWrite(vi, (ViBuf) "SOURce1:VOLTage:LEVel:IMMediate:HIGH 3.375V", 40, &retCnt);
status = viWrite(vi, (ViBuf) "SOURce1:VOLTage:LEVel:IMMediate:LOW 0V", 40, &retCnt);
status = viWrite(vi, (ViBuf) "SOURce1:FREQuency:FIXed 0.172413793103448Hz", 44, &retCnt);
status = viWrite(vi, (ViBuf) "SOURce1:BURSt:STATe ON", 23, &retCnt);
status = viWrite(vi, (ViBuf) "SOURce1:BURSt:MODE TRIGgered", 29, &retCnt);
status = viWrite(vi, (ViBuf) "TRIGger:SEQuence:SOURce EXTernal", 33, &retCnt);
status = viWrite(vi, (ViBuf) "TRIGger:SEQuence:SLOPe POSitive", 32, &retCnt);
status = viWrite(vi, (ViBuf) "OUTPut1:STATe ON", 17, &retCnt);[/color]
I receive positive answer to all commands but the curve is not loaded.
Does anyone have any idea?
Thanks
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.
AFG3022C transfer waveform using VISA
Re: AFG3022C transfer waveform using VISA
There is a Python example for creating and sending a waveform to the AFG3000 that may help with your program coding. Refer to http://www1.tek.com/forum/viewtopic.php?t=4933 which in another post in the forum.
Who is online
Users browsing this forum: No registered users and 2 guests