Products > Test Equipment

The Siglent SDG1000 and SDG800 thread

<< < (72/81) > >>

tautech:
New firmware for the SDG1000 series AWG's.

1.01.01.39R7
https://www.siglentamerica.com/download/8125/

Changelog
1. Fixed a bug that the generator may freeze when being
connected to a USB-GPIB adapter.

Fennec:

--- Quote from: tautech on February 04, 2019, 07:59:32 am ---Changelog
1. Fixed a bug that the generator may freeze when being
connected to a USB-GPIB adapter.

--- End quote ---

Lol, does anybody ever seen this GPIB option?

tautech:

--- Quote from: Fennec on February 05, 2019, 11:02:36 pm ---
--- Quote from: tautech on February 04, 2019, 07:59:32 am ---Changelog
1. Fixed a bug that the generator may freeze when being
connected to a USB-GPIB adapter.

--- End quote ---

Lol, does anybody ever seen this GPIB option?

--- End quote ---
:-//
It's listed as an accessory for these AWG models:
https://www.siglentamerica.com/accessory/usb-gpib-adapter/

Fennec:
Aw, I thought it is a PCB to plug in into the device, not an external USB >> GPIB.

Thank you.

dimtass:
For those who are interested in controlling the SDG1000 (I've only tested on my 1025) via USB from Linux (e.g. Ubuntu) which doesn't have official support for ni-visa, then they can use this method.
I've tested this on a Ubuntu 18.04.2

Edit: of course you could use any linux device to control the siglent, like a raspberry pi or any other Linux SBC that runs python. That way you can run automated tasks, without having to leave your workstation powered on.

Create a python virt-env

--- Code: ---sudo apt-get install python3-venv
python3 -m venv sdg1025
source ~/pyenv/sdg1025/bin/activate

--- End code ---

Then install python-usbtmc (https://github.com/python-ivi/python-usbtmc)

--- Code: ---cd ~/Downloads
git clone https://github.com/python-ivi/python-usbtmc
python setup.py install

--- End code ---

Then on your sdg1000 select the TMC USB option
Utility >> Interface >> USB Setup >> USBTMC

Now you need to create a udev rule so your user has access to the device

--- Code: ---sudo vi /etc/udev/rules.d/51-siglent-sdg1025.rules

--- End code ---

And add this rule

--- Code: ---SUBSYSTEM=="usb", ATTRS{idVendor}=="f4ed", ATTRS{idProduct}=="ee3a", MODE="0666"
--- End code ---

Before do this, run lsusb to verify the VID/PID. In my case for example is:

--- Code: ---Bus 001 Device 066: ID f4ed:ee3a Shenzhen Siglent Co., Ltd. SDG1010 Waveform Generator (TMC mode)
--- End code ---

Then reload and trigger udev rules, while the sdg is still connected

--- Code: ---sudo udevadm control --reload-rules && sudo udevadm trigger
--- End code ---

Now, to test that it works load python

--- Code: ---python
--- End code ---

And try this:

--- Code: --->>> import usbtmc
>>> usbtmc.list_resources()

--- End code ---

This should list your device, e.g.

--- Code: ---['USB::65432::12345::SDG10GA1234567::INSTR']
--- End code ---

Now you can create an instance with this string:

--- Code: --->>> sdg =  usbtmc.Instrument('USB::65432::12345::SDG10GA1234567::INSTR')

--- End code ---

To print the device info:

--- Code: --->>> print(sdg.ask("*IDN?"))
*IDN SDG,SDG1025,SDG10GA1234567,1.01.01.39R5,04-00-00-30-28

--- End code ---

Now you can use [this](https://mediacdn.eu/mage/media/wysiwyg/siglent/Downloads/Command/SDG_Programming_Guide.pdf) pdf to run any command you like.

For example to get channel configuration:

--- Code: --->>> sdg.ask('C1:BSWV?)
'C1:BSWV WVTP,SINE,FRQ,1000HZ,PERI,0.00100000006S,AMPHLEV,2V,LLEV,-2V,PHSE,0\n\x00-2V,PHSE,0'

--- End code ---

To set the channel configuration to a 10MHz 3.3V square waveform

--- Code: --->>> sdg.write('C1:BSWV WVTP,SQUARE,FRQ,10000000,AMP,3.3V')

--- End code ---

To turn on CH1

--- Code: ---sdg.write('C1:OUTP ON')

--- End code ---

Turn off channel

--- Code: ---sdg.write('C1:OUTP OFF')

--- End code ---

You can now write automations in python and control the generator. You can also use pyqt or tkinter to create a small GUI interface.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod