Posted Mon, 07 Nov 2022 08:17:47 GMT by J, Long
I want to use MATLAB code to read waveform from DSA71604 via Ethernet(TCP/IP), as well as to tell what waveform to send for AWG 7122C. There seems no resources relevant due to the outmoded products mentioned above. Could you please give some instruction resources? Thanks. I have seen a support of VISA in my OSC and AWG, but there is no any tutorial resoures on the whole Internet. Is there any DEMO for reference?&nbsp; <script id="allow-copy_script">(function agent() { let unlock = false document.addEventListener('allow_copy', (event) => { unlock = event.detail.unlock }) const copyEvents = [ 'copy', 'cut', 'contextmenu', 'selectstart', 'mousedown', 'mouseup', 'mousemove', 'keydown', 'keypress', 'keyup', ] const rejectOtherHandlers = (e) => { if (unlock) { e.stopPropagation() if (e.stopImmediatePropagation) e.stopImmediatePropagation() } } copyEvents.forEach((evt) => { document.documentElement.addEventListener(evt, rejectOtherHandlers, { capture: true, }) }) })()</script>
Posted Mon, 07 Nov 2022 08:20:02 GMT by J, Long

and I tried to contact the Technical support, it stopped me to create a ticket due to a strange problem Object reference not set to an instance of an object

Posted Mon, 07 Nov 2022 23:03:50 GMT by Teles, Afonso
Hi,

The following link has a few examples of code for remote control for the DSA/DPO70000:
https://forum.tek.com/viewtopic.php?f=580&t=133570

Additionally, the programmer's manual will allow you to take those examples and modified them to your specific needs:
https://www.tek.com/en/oscilloscope/dpo70000-mso70000-manual/dpo70000sx-mso-dpo70000dx-mso-dpo70000c-dpo7000c-mso5000-b-1
Posted Tue, 22 Nov 2022 07:30:00 GMT by J, Long
Hi, I tried the forum's solution but nothing work.
In MATLAB, when my Tek OSC ip is 192.168.2.2
only the code line

visatcpip = visadev("TCPIP1::192.168.2.2::inst0::INSTR")

worked. And displayed:

visatcpip = 

  TCPIP - properties:

         ResourceName: "TCPIP1::192.168.2.2::inst0::INSTR"
                Alias: ""
               Vendor: "TEKTRONIX"
                Model: "DSA71604B"
              LANName: "inst0"
    InstrumentAddress: "192.168.2.2"
    NumBytesAvailable: 0

  Show all properties, functions


but I do not know what is next to do. While most tutorials read like this

visa('tek', 'TCPIP::192.168.2.2::INSTR')

but this code did NOT WORK!!!

So I really want to figure out how to send the commands!!!!!! Thanks!!
Screenshot is attached!
 
Posted Tue, 22 Nov 2022 13:23:14 GMT by J, Long
OK, I have done this by serveral commands:
writeline(visatcpip, "GPIB COMMANDS")
writeread(visatcpip, "GPIB COMMANDS")

Thanks
Hope useful!

You must be signed in to post in this forum.