rost0031

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. Ok, I just tried something and it seemed to kinda work. If I try your suggestion but with the sleep, it seems to work as long as the sleep is for longer than the pattern I want. The pattern comes out fully and stops at the end. I guess that works so I am happy with that. Is there a reference manual for the Python (or the underlying C) API? I would like to avoid bugging you with silly questions like this. Once again, thank you for your help.
  2. Ok, thank you. I got the buffer size to accommodate my entire signal. But I can't get the output stream to stop using your suggestion. When I try it with the sleep() option, it repeats as expected. I can tweak the sleep value to get it to cut but it's not exact. When I try it without the sleep with your suggestion, it outputs 3 pulses or so and stops. I'm including my code below. from ctypes import * from dwfconstants import * import sys import time if sys.platform.startswith("win"): dwf = cdll.dwf elif sys.platform.startswith("darwin"): dwf = cdll.LoadLibrary("/Library/Framework
  3. Can you expand on that? I'm not sure I understand. Is there any documentation on this stuff that I"m missing?
  4. I'm trying to output a custom digital waveform that is a frequency modulated bit stream. The basic scheme is as follows: 1. Preamble: frequency starts out at 10KHz for 400 cycles After 2. for a 1 bit, send 20 13KHz cycles, followed by 20 10KHz cycles 3. for a 0 bit, send 10 6KHz cycles, followed by 20 10KHz cycles 4. Postable: frequency runs at 10KHz for 400 Cycles. I can generate the signal with python but I seem to be running into bitstream length issue. The moment the data gets over 1024 "bits" (actual bits, not the frequency modulated ones), the signal is not ge