Closed j-c-cook closed 2 years ago
This is not an issue or bug in LabJackPython. In the future, please direct any support inquiries to us (LabJack) via one of the contact methods described on our website such as email (support@labjack.com) or live chat: https://labjack.com/contact
The timer clock base you are using is not valid, you must pass a clock base index instead of the clock speed. See our timer/counter documentation. The clock base options are described in Table 2.9-2. You would use index 5 for 12MHz with divisor: https://labjack.com/support/datasheets/u3/hardware-description/timers-counters
Also note that you are doing a timer configuration command and timer update command twice, I would recommend removing your d.writeRegister calls.
Also note that 0 is not a valid timer value, only 1-256 are. [Edit: 0 is valid, but it just means 256 divisor]. To disable the feature you should disable the timer. You could use configIO: d.configIO(NumberOfTimersEnabled=0)
I am using the LabJack U3-LV to generate a square frequency wave. I am having trouble. I have consulted the frequency list and learned what I could from the pwm-looping example.
I cannot get the frequency to output anything but 60.9 Hz. The combination of base clock, clock divisor and timer value should be outputting 1500 Hz based on the frequency list. Does anyone know how I can fix this?