• 0

How should I interpret the returned value for FDwfDigitalInAcquisitionModeInfo(hdwf)?


Icarus
Share

    Question

    Posted (edited)

    In the example code DigitalDiscovery_RecordToFile16.py, the acquisition mode is set to Record with dwf.FDwfDigitalInAcquisitionModeSet(hdwf, acqmodeRecord) [ line 84 in my attached version].

    However, function "dwf.FDwfDigitalInAcquisitionModeInfo(hdwf) ", returns c_int(3), which I thought from the SDK manual meant onlyacqmodeSingle and acqmodeScanShift were valid (see attached SDK exerpt)

    Am I miss understanding something in the Manual?

    My device info here:

    =======================================================

    device ........... : 4
    version .......... : 2
    open ............. : True
    user_name ........ : 'DDiscovery'
    device_name ...... : 'Digital Discovery'
    serial ........... : '210321B320D4'

    Analog-in information (obsolete API)
    ------------------------------------

    number of channels ...... : 0
    buffer size ............. : 0
    bits .................... : 14
    frequency ............... : 100000000.0

    Configuration: 0
    ---------------------- --------
    TooltipText [0]
    OtherInfoText .
    AnalogInChannelCount 0
    AnalogOutChannelCount 0
    AnalogIOChannelCount 1
    DigitalInChannelCount 24
    DigitalOutChannelCount 16
    DigitalIOChannelCount 16
    AnalogInBufferSize 0
    AnalogOutBufferSize 0
    DigitalInBufferSize 67108864
    DigitalOutBufferSize 32768

    Screen Shot 2022-05-24 at 5.39.04 PM.png

    digital_record.py

    Editedby Icarus
    clarity
    Link to comment
    Share on other sites

    2 answers to this question

    Recommended Posts

    • 0

    Hi@Icarus

    The FDwfDigitalInAcquisitionModeInfo is not yet utilized, it only returns (1<The next sw version will return valid info based on device capabilities, FDwfAnalogIn/DigitalInAcquisitionModeInfo

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    Share