Poll

What is your interest in the Hantek DDS 3x25?

I own one
36 (27.1%)
I am considering getting one
40 (30.1%)
Curious about the hack
16 (12%)
Just passing through
41 (30.8%)

Total Members Voted: 111

Author Topic: Review: Hantek DDS 3X25. Anyone own one?  (Read 289863 times)

0 Members and 1 Guest are viewing this topic.

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11714
  • Country: my
  • reassessing directives...
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #500 on: June 14, 2013, 09:35:05 pm »
but I wonder if implementation e.g. SPI or I2C on digital I/O is possible that way. Is it fast enough to control the pins and transfer data both ways? It would be nice to control output LPF, attenuator etc. from one piece of software and using  only USB as interface.
i believe from looking the software and hardware design, whats come out of 12bits digital IO is the same as what is feed to the DAC inside. so calling the API and sending data points will do both feeding the analog signal and digital output at the same time. but i'm not 100% since i havent tested it. i believe designing a software to feed the device with SPI or I2C should be possible. on the surface, the gui will handle and translate the bits stream and protocol, but under it, the API procedure calls should be the same as documented. bear in mind the limit is 4K memory only.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline marabut

  • Contributor
  • Posts: 24
  • Country: 00
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #501 on: June 15, 2013, 10:58:29 am »
Mechatrommer,
I hope you're wrong  ;)
1025G's user manual (pages 23/24) states that digital i/o can work as:

1. Pattern Generator:
The vertical resolution of Hantek1025G is 12bits. If selected this mode, you can get the each bit of the value by testing the digital out pins. [...]
2. Programmable Output:
Select menu “Programmable output”, then the Programmable output mode works. Select menu “Digital IO”->”Output set”, the “output set” dialog show. By selecting one pin, that digital output pin will output high level. Otherwise, the pin will output low level.
3. Digital Input:
Select menu “Digital IO”->”Digital Input”, the following dialog show. If you input a high level to a digital input pin, the pin on the dialog would show H; otherwise, the pin on the dialog would show L.

From above statements (if true) is clear that one can control single bits of digital i/o without affecting output waveform (data being sent to DAC in the meantime). I doubt that size of internal memory has anything to do with it. Rather it's just simply reading and writing some FPGA registers (of course using Hantek's API). So my question is: are there any functions available in API (or DLL exported symbols) that can be used to such tasks? And how fast they are?
Enough to implement one of popular serial protocols?
 

Offline marmad

  • Super Contributor
  • ***
  • Posts: 2979
  • Country: aq
    • DaysAlive
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #502 on: June 15, 2013, 11:48:03 am »
i believe from looking the software and hardware design, whats come out of 12bits digital IO is the same as what is feed to the DAC inside. so calling the API and sending data points will do both feeding the analog signal and digital output at the same time. but i'm not 100% since i havent tested it. i believe designing a software to feed the device with SPI or I2C should be possible. on the surface, the gui will handle and translate the bits stream and protocol, but under it, the API procedure calls should be the same as documented. bear in mind the limit is 4K memory only.

This is wrong - at least for the DDS-3X25. You can use the Hantek software (or download my software from somewhere in this thread) and control all the digital IO pins independently of the DAC (or output the generator values - it's switchable).
« Last Edit: June 15, 2013, 11:53:14 am by marmad »
 

Offline marmad

  • Super Contributor
  • ***
  • Posts: 2979
  • Country: aq
    • DaysAlive
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #503 on: June 15, 2013, 11:52:38 am »
From above statements (if true) is clear that one can control single bits of digital i/o without affecting output waveform (data being sent to DAC in the meantime). I doubt that size of internal memory has anything to do with it. Rather it's just simply reading and writing some FPGA registers (of course using Hantek's API). So my question is: are there any functions available in API (or DLL exported symbols) that can be used to such tasks? And how fast they are?
Enough to implement one of popular serial protocols?

There is one DLL command for switching between programmable or generator output:
DDSSetDIOMode / Description: Switch the mode of DDS / 1: Programmable output 0: Generator output

And one DLL command for setting programmable output:
DDSSetDigitalOut /  Description: Set the programmable output ports, only affected in programmable output / unsigned short Out: the value of digital output, only low 12 bits effected

I can't remember testing the speed - but nothing is fast using USB and DLL commands on the Hantek.
« Last Edit: June 15, 2013, 11:54:10 am by marmad »
 

Offline marabut

  • Contributor
  • Posts: 24
  • Country: 00
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #504 on: June 15, 2013, 02:15:08 pm »
marmad,
thank you for sharing the knowledge. I'm glad that my suspicions weren't distant from truth.  :)
Is there a function to read digital pins too?
My biggest concern is now speed of USB communication through Hantek's dll: implementation of any serial protocol that way means sending and receiving single bits using Hantek's provided commands. I've got an idea how communication works from asbokid's post earlier in this thread - but know nothing about achievable update frequency.
Have you done any "responsivity" tests?
 

Offline marmad

  • Super Contributor
  • ***
  • Posts: 2979
  • Country: aq
    • DaysAlive
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #505 on: June 15, 2013, 02:50:46 pm »
marmad,
thank you for sharing the knowledge. I'm glad that my suspicions weren't distant from truth.  :)
Is there a function to read digital pins too?
My biggest concern is now speed of USB communication through Hantek's dll: implementation of any serial protocol that way means sending and receiving single bits using Hantek's provided commands. I've got an idea how communication works from asbokid's post earlier in this thread - but know nothing about achievable update frequency.
Have you done any "responsivity" tests?

Yes, DDSGetDigitalIn, but on the DDS-3X25 (at least), the IO pins are separated: 6 input and 12 output.

I have done tests with the speed but I don't have any recorded numbers left anywhere. I just remember it was painfully slow (in computer terms), making it very difficult to do things 'quickly'.

For my own purposes, eventually I realized that it makes more sense to get a proper SCPI-controlled device - instead of plowing more hours into trying to 'force' the Hantek into doing things that either it can't do well - or were never properly documented for us mere 'customers'.

For example, how is the Hantek software doing smooth, glitch-free, zero crossover sweeping? With the documented DLL commands, this is impossible - causing either a glitch when a new waveform is downloaded to the AWG - or non-zero crossings when just changing frequency.
 

Offline marabut

  • Contributor
  • Posts: 24
  • Country: 00
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #506 on: June 15, 2013, 03:30:00 pm »
Quote
I just remember it was painfully slow (in computer terms), making it very difficult to do things 'quickly'.
Rather discouraging.  :(
Maybe I will be able to send single bytes, but nothing more. It should be enough to control attenuator and LPF but not enough to sniffing I2C or get amplitude measured through the same interface.
Well, we'll see - I'm buying 1025G on Monday.
Thank you all for your help.
 

Offline Winston

  • Regular Contributor
  • *
  • Posts: 121
  • Country: us
    • IC Die Photography
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #507 on: June 27, 2013, 03:38:33 pm »
I'm considering buying a 1025G.  In the "user manual" (and I use that term very loosely), there is one reference to a sweep dialog selection in the drop-down utility menu, but that box is never shown.  Is that a sweep frequency setting dialog and, if so, what are the sweep options available?
 

Offline marabut

  • Contributor
  • Posts: 24
  • Country: 00
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #508 on: June 27, 2013, 04:52:54 pm »
This option in Hantek's supplied software is rather limited. The dialog box itself looks like that i've attached. Only basic settings and you can use only sine waveform (sweep option is grayed out with all other waveforms).
 

Offline Winston

  • Regular Contributor
  • *
  • Posts: 121
  • Country: us
    • IC Die Photography
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #509 on: June 28, 2013, 03:25:24 pm »
This option in Hantek's supplied software is rather limited. The dialog box itself looks like that i've attached. Only basic settings and you can use only sine waveform (sweep option is grayed out with all other waveforms).
Thanks for that screen shot.  Scanning over this long thread, it looks as if the 1025G is inferior to their older 3x25 in many ways, including older, less capable Windows software, loss of some I/O capability, and the need to draw all power from USB which may be problematic on some laptops.  Would I be better off just buying a new in box 3x25?
« Last Edit: June 28, 2013, 03:27:39 pm by Winston »
 

Offline Sebi11

  • Newbie
  • Posts: 4
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #510 on: July 15, 2013, 03:16:45 pm »
Hi All,

I am quite newbie in the forum but quite old and non-successful with Hantek DDS 3X25.

To the point: I am trying to setup a low cost high frequency (below 5 MHz) lock-in amplifiers (let us call it phase sensitive detector). For this I use a  one channel (two channels differential) DAQ card (AD7626 ADC) as well as our famous 3X25. Both our coming in minimum price available. I am doing all in LabView because I can read in the DAQ card easily using LV. The whole setup will work by scanning frequency between 100 kHz and 5 MHz.

The problem I am facing is that because my DAQ card has only one channel I can only feed the output signal and not the SYNC of 3X25 simultaneously. The SYNC has to be created by software and it should be in phase with actual signal. Then the lock-in amplifier algorithm should hopefully work. So far, I was not successful because I cannot control the initial phase of 3X25. When I download the requested sinewave to 3X25 the initial phase is every time different.

Is this somehow solved in Mecha's program?

Mecha: Could you please help also the poor labview guys by making a labview API?

In any case, you all have done great job on this piece of :bullshit: and thank you for that       
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11714
  • Country: my
  • reassessing directives...
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #511 on: July 15, 2013, 10:20:31 pm »
When I download the requested sinewave to 3X25 the initial phase is every time different.
Is this somehow solved in Mecha's program?
i hope this is it ... http://www.soasystem.com/eng/goltek/synch.htm short answer yes, long answer, its more complicated esp if you need higher in-synch accuracy, nothing beats hardware solution if you can.

Mecha: Could you please help also the poor labview guys by making a labview API?
you need to teach me LabView from scratch first ;)
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline Sebi11

  • Newbie
  • Posts: 4
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #512 on: July 16, 2013, 01:35:03 am »
Thank you very much for the prompt reply. At least now I understand the problem although I cannot solve it yet.

Any idea on how to create a software SYNC signal given the output signal?

Mecha: Could you please help also the poor labview guys by making a labview API?
you need to teach me LabView from scratch first ;)

I guess if Labview can communicate with the crappy DLL provided by Hantek there should be a way to communicate with your program as well (do not ask me how) without teaching you Labview since I am not that proficient.

Any Labview expert, please?
« Last Edit: July 16, 2013, 08:23:44 am by Sebi11 »
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11714
  • Country: my
  • reassessing directives...
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #513 on: July 16, 2013, 12:13:51 pm »
I guess if Labview can communicate with the crappy DLL provided by Hantek there should be a way to communicate with your program as well
conceptually from what i learnt at least, the dll is the highest level we (goltek, pc softwares, labview) can access into, the rest of lower level (usb protocol) is encapsulated, closed source not documented by the manufacturer. and goltek is the "top tier" software for the end user, i didnt provide anything to connect to something on top. in other word, "principaly" your labview cannot connect to the goltek. i'm sure there is documentation in labview on how to call Windows DLL. try to concentrate on that search in help file. because you wil be bulding something at the same hyrarchy pyramid level and procedures as the goltek did, there is no way you can be on top of the goltek (legitimately).
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline zibadun

  • Regular Contributor
  • *
  • Posts: 112
  • Country: us
Review: Hantek DDS 3X25. Anyone own one?
« Reply #514 on: July 20, 2013, 01:39:00 am »
goltek is the "top tier" software for the end user, i didnt provide anything to connect to something on top. in other word, "principaly" your labview cannot connect to the goltek.
...
, there is no way you can be on top of the goltek (legitimately).

And that's a shame because it forces people to understand and re-implement the same algorithms you put into goltek to produce a stable signal.  And not everyone is as experienced with programming as you are.  It's quite common for what you call 'top tier' programs to have an interface other than GUI - command line flags, scripting, DDE, telnet, etc. it was your choice as a programmer to implement only the GUI part.
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11714
  • Country: my
  • reassessing directives...
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #515 on: July 20, 2013, 12:48:50 pm »
command line flags, scripting, DDE, telnet, etc.
and it will make my life miserable due to the complexity, and for what? what i dont really get is why the hell people want to control the device from far away using telnet ethernet etc? this is a T&M device not a household remote control toy or security device, it is meant to be right next to the designer while R&D. the only way to program goltek is by using Tektronix ArbExpress or Excel CSV, you design the signal in there and feed it to the program and device, thats it. actually the 2nd thing is, my imagination limits my achievement, this device is only to produce a signal, i cant imagine how to make it programmable, even if it is, i dont think its worth it due to (1) you still can make it manually on the bench or the above mentioned CSV file (2) the 3x25 and its (documented) SDK is so inefficient at this. thats just my humble opinion.

edit: sorry if i misunderstood "top tier". maybe the right word is "top most".
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline zibadun

  • Regular Contributor
  • *
  • Posts: 112
  • Country: us
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #516 on: July 20, 2013, 02:23:19 pm »
controlling from far away is not an issue. The problem is that integration with other pieces of software and automation of tasks is not possible.   For example I might want to send ten different test signals at a 2.5 second interval.   Can't do this with Gui.
 

Offline marmad

  • Super Contributor
  • ***
  • Posts: 2979
  • Country: aq
    • DaysAlive
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #517 on: July 20, 2013, 03:44:41 pm »
controlling from far away is not an issue. The problem is that integration with other pieces of software and automation of tasks is not possible.   For example I might want to send ten different test signals at a 2.5 second interval.   Can't do this with Gui.

But Mecha wrote the software for his own purposes - and gave it away for free. Why should he put extra unpaid time of his own into something he doesn't need? I see a lot of people on this forum asking for stuff they want - but I see very very few people actually putting work into and posting software.
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11714
  • Country: my
  • reassessing directives...
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #518 on: July 20, 2013, 04:17:35 pm »
but I see very very few people actually putting work into and posting software.
and very few are willing to learn how to make Windows DLL call from anywhere like VBExpress VCExpress or something. which is pretty much basically what i did to goltek (apart from aligning all the skins in the GUI). some of the concepts and ideas developed in-house (or with your help) are already documented with my sweat in my site (thanks to GoDaddy for providing free space with domain subscription) such as unsynch issue here ... http://www.soasystem.com/eng/goltek/synch.htm and some other links about flatness, phase profiling etc here (see below) http://www.soasystem.com/eng/goltek/index.htm bad english but i'll be happy to guide if anyone interested in PM. asking one to extend or make a program to enable scripting, will require him to make a help file (or possibly a customer help forum) to teach people ;)
Best regards.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline zibadun

  • Regular Contributor
  • *
  • Posts: 112
  • Country: us
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #519 on: July 20, 2013, 04:18:13 pm »
controlling from far away is not an issue. The problem is that integration with other pieces of software and automation of tasks is not possible.   For example I might want to send ten different test signals at a 2.5 second interval.   Can't do this with Gui.

But Mecha wrote the software for his own purposes - and gave it away for free. Why should he put extra unpaid time of his own into something he doesn't need? I see a lot of people on this forum asking for stuff they want - but I see very very few people actually putting work into and posting software.

I'm not asking for stuff, just responded why something other than GUI/human interface may be useful in software like Goltek.   
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11714
  • Country: my
  • reassessing directives...
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #520 on: July 20, 2013, 04:30:30 pm »
For example I might want to send ten different test signals at a 2.5 second interval.   Can't do this with Gui.
if you cant develop yourself, goltek can save 12 different waves in memory keys (shortcut e+number) and then recall or send signal later (shortcut c+number). you can make a simple timer that beeps every 2.5secs and then you press "c+number" when you hear it. yes its manual and clumsy but thats the best goltek can do ;) and if you know goltek (or the hardware?) is not very good at transitting from one signal to another signal (glitches) which can corrupt your measurement (or maybe not, depending on what you want to do). short help manual here http://www.soasystem.com/eng/goltek/control.htm hope it helps.
« Last Edit: July 20, 2013, 04:32:31 pm by Mechatrommer »
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11714
  • Country: my
  • reassessing directives...
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #521 on: July 21, 2013, 09:35:09 pm »
but I wonder if implementation e.g. SPI or I2C on digital I/O is possible that way...
...whats come out of 12bits digital IO is the same as what is feed to the DAC inside. so calling the API and sending data points will do both feeding the analog signal and digital output at the same time. but i'm not 100% since i havent tested it
Mechatrommer,
I hope you're wrong  ;) ...
This is wrong - at least for the DDS-3X25. You can use the Hantek software (or download my software from somewhere in this thread) and control all the digital IO pins independently of the DAC (or output the generator values - it's switchable)... (next post)
There is one DLL command for switching between programmable or generator output:
DDSSetDIOMode / Description: Switch the mode of DDS / 1: Programmable output 0: Generator output

i just happened to dig back some of my doc. the striked statement above is corrected, i actually made a test and have proof on 3x25 long time ago on generator output + io output (well, Output port 8bit HSB O4-O11) at the same time. i havent set any DDSSetDIOMode in goltek nor i have studied it, he's probably right on "Programmable output" mode, but by default, which i suspect is the "Generator output" mode (as picture shown below), both signal output and digital output are producing analog and correspondent digital signal respectively...




complete report here http://www.soasystem.com/eng/amla/

what this means, i still believe, designing an analog waveshape in some fashion or specialized SW, save CSV and load to goltek and device will produce some sensible digital output at the same time. FWIW.
« Last Edit: July 21, 2013, 09:44:38 pm by Mechatrommer »
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline Sebi11

  • Newbie
  • Posts: 4
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #522 on: July 30, 2013, 02:19:44 pm »
Sorry for coming back again but my problem related to synch is not solved.

I do the following: set frequency to 10 KHz and give this frequency in 10 repetitions. I read the waveform in my DAQ card. However, in each repetition I get different phase shift (or different time shift if you prefer). Why is that?

Is there any possibility to reset Hantek each time before sending the new frequency?
« Last Edit: July 31, 2013, 10:50:41 am by Sebi11 »
 

Offline tymm

  • Contributor
  • Posts: 20
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #523 on: September 12, 2013, 02:52:01 am »
I just got one of these for a good price on ebay & found a little bit of time to start playing with it... though since I'm not a Windows person, it's a little harder :/  sadly probably not going to get much time in the next several weeks to do anything decent with this, so figured I'd share the little bit i've been able to get to (apologies for the really crappy code; just dumping this in case someone wants to play with it)

So far I'm able to set the digital outputs... (testing from OSX).  Don't think it'll be too hard to get the other functionality done.

Example setting O3, O5 high:

$ python
Python 2.7.1 (r271:86882M, Nov 30 2010, 10:35:34)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

>>> from Hantek_3X25 import *
>>> d = DDS()
>>>
>>> c = Config()
>>> c.CounterMode = True
>>> c.ProgrammableOutput = True
>>> c.DigitalPins = 0x22
>>> d.configure(c)


Requires pyusb.
based on example in pyusb tutorial at http://pyusb.sourceforge.net/docs/1.0/tutorial.html
using SigRok documentation @ http://sigrok.org/wiki/Hantek_DDS-3X25 as basis for USB comms.



Hantek_3X25.py:
Code: [Select]
#!/usr/bin/env python

import usb.core
import usb.util

import struct


Falling = 0
Rising = 1

class Config(object):
    ResetExtTrigger = False
    ExtTrigger = False
    ExtTriggerEdge = Falling
    ContinuousOutput = False
    ResetCounter = False
    CounterMode = False
    ProgrammableOutput = False
    DigitalPins = 0x0000
    ClockDivider = 1


class DDS(object):
    def __init__(self, idVendor=0x0483, idProduct=0x5721):
        # find our device
        dev = usb.core.find(idVendor=idVendor, idProduct=idProduct)

        # was it found?
        if dev is None:
            raise ValueError('Device not found')

        # set the active configuration. With no arguments, the first
        # configuration will be the active one
        dev.set_configuration()

        # get an endpoint instance
        cfg = dev.get_active_configuration()
        interface_number = cfg[(0,0)].bInterfaceNumber
        alternate_setting = usb.control.get_interface(dev, interface_number)
        intf = usb.util.find_descriptor(              \
            cfg, bInterfaceNumber = interface_number, \
            bAlternateSetting = alternate_setting     \
        )

        self.out_ep = usb.util.find_descriptor(
            intf,
            # match the first OUT endpoint
            custom_match = \
            lambda e: \
                usb.util.endpoint_direction(e.bEndpointAddress) == \
                usb.util.ENDPOINT_OUT
        )
        assert self.out_ep is not None

        self.in_ep = usb.util.find_descriptor(
            intf,
            # match the first IN endpoint
            custom_match = \
            lambda e: \
                usb.util.endpoint_direction(e.bEndpointAddress) == \
                usb.util.ENDPOINT_IN
        )
        assert self.in_ep is not None

    def configure(self, config):
        b0 = 0x00
        b1 = 0x00
        b2 = config.DigitalPins & 0xff
        b3 = (config.DigitalPins >> 8) & 0x0f
        b4 = config.ClockDivider
        b5 = 0

        if config.ResetExtTrigger:
            b0 |= 0x20
        if config.ExtTrigger:
            b0 |= 0x10
        if config.ExtTriggerEdge:
            b0 |= 0x08
        if config.ContinuousOutput:
            b0 |= 0x04
        if config.ResetCounter:
            b0 |= 0x02
        if config.CounterMode:
            b0 |= 0x01

        if config.ProgrammableOutput:
            b1 = 0x01

        cval = struct.pack('>BBBBBBB', 0xa0, b0, b1, b2, b3, b4, b5)

        self.out_ep.write(cval)

 

Offline vfperri

  • Newbie
  • Posts: 1
Re: Review: Hantek DDS 3X25. Anyone own one?
« Reply #524 on: October 01, 2013, 05:54:25 pm »
Hi "tymm" I'm also trying to use this generator whith Python and I'm very interested in knowing how far have you get with the python code for command the device.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf