Search the Community

Showing results for tags 'analog discovery 2 python programming'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • Add-on Boards
    • Scopes & Instruments and the WaveForms software
    • LabVIEW
    • FRC
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 2 results

  1. Hi, I'd like to update my digital pins of the Analog Discovery 2 in quite a "fastest" time (1ms for example). The problem is, with a python script, the time let by the kernel is approximately 15 ms. That's why I ask it there, is there a way to programm it with a sort of a script that would be faster than 15 ms to adapt the output (in a non-regular way, a pulse wouldn't work)? Thanks for the time spent for help, Marc
  2. Hello, I have a python script to output a signal while recording from both input channels at the same time. I want to incorporate using a second analog discovery for two additional channels of data acquisition. From the device_enumerate.py, I see that both devices can be recognized in the same script, but how do I actually specify which device to record the data from? For example, here are some current (relevant) code snippets where I acquire data from both channels of one device. How would I specify the second device channels. ... "Opening first device..." dwf.FDwfDeviceOpen(c_int(-1), byref(hdwf)) if hdwf.value == hdwfNone.value: print "failed to open device" quit() ... #set up acquisition dwf.FDwfAnalogInFrequencySet(hdwf, c_double(20000000.0)) dwf.FDwfAnalogInBufferSizeSet(hdwf, c_int(4096)) dwf.FDwfAnalogInChannelEnableSet(hdwf, c_int(0), c_bool(True)) dwf.FDwfAnalogInChannelRangeSet(hdwf, c_int(0), c_double(10)) dwf.FDwfAnalogInChannelEnableSet(hdwf, c_int(1), c_bool(True)) dwf.FDwfAnalogInChannelRangeSet(hdwf, c_int(1), c_double(10)) ... dwf.FDwfAnalogOutConfigure(hdwf, channel1, c_bool(True)) # starts the waveform while True: dwf.FDwfAnalogInStatus(hdwf, c_int(1), byref(sts)) if sts.value == DwfStateDone.value : break time.sleep(0.001) time.sleep(0.1) while (j < pulses + 1): try: print j dwf.FDwfAnalogOutConfigure(hdwf, channel1, c_bool(True)) # starts the waveform #begin acquisition while True: dwf.FDwfAnalogInStatus(hdwf, c_int(1), byref(sts)) if sts.value == DwfStateDone.value : break time.sleep(0.001) time.sleep(0.1) print "Acquisition finished" dwf.FDwfAnalogInStatusData(hdwf, 0, rgdSamples1, 4096) # get channel 1 data dwf.FDwfAnalogInStatusData(hdwf, 1, rgdSamples2, 4096) # get channel 2 data Any help or example code would be greatly appreciated! Cheers! Harry