Jump to content

DAQNoob

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by DAQNoob

  1. Hi, I thought I could reuse PWM code from a USB-1608G module in the USB-CTR04 but get a ULError "Invalid counter device". Is this expected? I was under the impression that the USB-CTR04 had an internal timebase, like the USB-1608G does for PWM generation on TMR0. If it doesn't, is there example python code to show how to configure the USB-CTR04 for PWM generation on TMR0-3? Update: I was able to configure TMR0 on two USB-CTR04 modules as done on the USB-1608 but TMR1/TMR2 (same config) are not working. I think my issue is in understanding external/internal port/channel mapping. If I am reading the internal channel config correctly: for channel in ctr_info.chan_info: if channel.type == CounterChannelType.CTRPULSE: print(f'CTRPULSE Channel(s): {channel.channel_num}') CTRPULSE Channel(s): 0 CTRPULSE Channel(s): 1 CTRPULSE Channel(s): 2 CTRPULSE Channel(s): 3 map to TMR0-3
  2. JRys... Thank you, that worked for my 2-Wire RTD sensors... I had to add one more parameter to turn excitation current on. I am using InstaCal to verify that my python code configuration is working properly. I have a follow-up on my question: I tried to configure a 4-wire RTD, both with InstaCal and python but cannot read temperatures. I noticed that the InstaCal drop has 4-Wire as a "Connection Type", which matches the TempSensorConnectionType.CONN_4_WIRE config parameter. InstaCal then prompts for specific 4-Wire configuration (RTD, 4-Wire (2 Sensors), 4-Wire (1 Sensors) CH2, 4-Wire (1 Sensors) CH3). How would I accomplish this same config using Python?
  3. I'm trying to configure RTDs on a USB-TEMP-AI module. The user manual describes the 2wire-2sensor wiring configuration and mentions that internal connections (T#H & T#H/T#L) are made using InstaCal. I don't see anything in the mcculw documentation that supports this (I'm using the ul.ignore_instacal() mode). The old version of mcculw had parameters that seem to fit the bill but were explicitly removed with the latest GitHub release: ul.set_config(InfoType.BOARDINFO, board_num, channel, BoardInfo.TEMPSENSORTYPE, TempSensorType.RTD) ul.set_config(InfoType.BOARDINFO, board_num, channel, BoardInfo.TEMPCONNECTIONTYPE, TempSensorConnectionType.CONN_2_WIRE_2) Any suggestions or code fragments would be welcome!
  4. I'm struggling to locate the configuration and operating functions in the Python mcculw UL to setup and run PWM on the USB-1608G TMR output. Can anyone point me to example code?
  5. I just saw this thread and was wondering if the DT9829 can be managed with the mcculw Python library? I found out that my USB-TEMP-AI doesn't support PT1000.
×
×
  • Create New...