Jump to content

attila

Technical Forum Moderator
  • Posts

    6,655
  • Joined

  • Last visited

Posts posted by attila

  1. Hi @kazu

    It could be done like this:

    for(var t = 0; t < 10 && wait(0.5); t++){ // wait 500ms
        Scope.single()
        Protocol.I2C.Write(0x2A)
        Scope.wait()
        // Scope trigger on Ch0-SDA falling, T0
        var rg = Scope.Channel2.data // SCL
        var i0 = Scope.Channel2.IndexOfTime(0) // sample index at T0
        var i1 = 0
        // count SCL samples above 1.5V, dT SDA->SCL
        while(i1 < rg.length && rg[i1]>1.5) i1++ 
        var dt = (i1-i0)/Scope.Time.Rate.value 
        print(t, dt*1e6,"us")
    }

    image.thumb.png.1b02b357ffb2c96a456752a9a339d3b6.png

  2. Hi @logicmax

    if(!FDwfAnalogOutNodeEnableSet(hdwf, i, 0, 1)) return false;
    if(!FDwfAnalogOutIdleSet(hdwf, i, DwfAnalogOutIdleInitial)) return false;
    
    if(!FDwfAnalogOutTriggerSourceSet(hdwf, i, trigsrcExternal1)) return false;
    if(!FDwfAnalogOutTriggerSlopeSet(hdwf, i, DwfTriggerSlopeFall)) return false;
    if(!FDwfAnalogOutWaitSet(hdwf, i, 1e-6)) return false;
    if(!FDwfAnalogOutRunSet(hdwf, i, 2e-6)) return false;
    if(!FDwfAnalogOutRepeatSet(hdwf, i, 0)) return false;
    if(!FDwfAnalogOutRepeatTriggerSet(hdwf, i, 1)) return false;
    
    if(!FDwfAnalogOutNodeFunctionSet(hdwf,i, 0, funcPulse)) return false;
    if(!FDwfAnalogOutNodeFrequencySet(hdwf, i, 0, 500e3)) return false;
    if(!FDwfAnalogOutNodeAmplitudeSet(hdwf, i, 0, 1.0)) return false;
    if(!FDwfAnalogOutNodeOffsetSet(hdwf, i, 0, 0.0)) return false;
    if(!FDwfAnalogOutNodeSymmetrySet(hdwf, i, 0, 0.05)) return false;
    if(!FDwfAnalogOutNodePhaseSet(hdwf, i, 0, 0.0)) return false;

     

  3. Hi @batesenergy

    1. You could connect to the ADP over USB or Network.
    Currently the Network access is working in the same LAN. The connection is based on discovery which is probably not working over VPN.
    From the host computer it can be used in device mode with WF app or applications/scripts based on WF SDK.

    The next software version will add support for remote devices...

    image.png.89aa2eb8e1a073a53ff95aa60a142f30.png

     

    2. The ADP can also be used in embedded Linux boot mode.
    In this mode it can be used as well as device (like in step 1 over bridge-service) or any custom application can be run in the device.
    Applications/scripts based on WF SDK can access the ADP interfaces or other devices connected to the USB ports or over network.
    These apps/scripts can be developed-tested on computer then run/ported to embedded mode.

    image.png.b079bd4d934cd0c1c461314b970066db.png

     

    3. You could also install vncserver, a desktop and the amrhf build of WaveForms on the ADP-Linux.
    This way you can have remote access to ADP running WF app or other apps.

    image.thumb.png.b94622cec0094166dde9fb32b3eddaa9.png

    image.thumb.png.b0810da408a37f00f25eb6a4b2bb1e7f.png

     

  4. Hi @1988maciejt

    This is the first time I hear such problem.

    I don't know what could be wrong... eventually some Windows security options. 
    1. Try running WF as Administrator.
    2. Uninstall WF and make sure to delete the C:/Program Files (x86)/Digilent folder to remove any locked/remaining files-folders and reinstall.

    I've added for the next software version to show the url as placeholder text in case the page is no loaded.

  5. Hi @blaugios

    The record length with (AD2,ADS...) is unlimited at lower rates (up to about 1-2MHz) that fits through the USB streaming.
    See the WF SDK/ samples/ py/ AnalogIn_Record.py AnalogIn_Record.py AnalogIn_Record_Wave_Mono.py ....
    300M samples at 1MHz:  AnalogIn_Record1.py

    The Analog Discovery Pro 3000 series will seamlessly use the internal DDRam for buffering to allow up to 128Mi samples and up to 125MHz.

    image.png.4205f9e07d988452d4d556b7e0d0185d.png

×
×
  • Create New...