Problems writing to DAC0 after enabling timer


bull8042

Recommended Posts

Windows7 Ultimate, DaqFactory Base 5.85, build 1849:

I am writing a value both manually and from a PID to a channel, VarioValve set that is set "D to A" on channel 0. I am also controlling a heater by another PID via PWM.

The valve is connected to DAC0 and works as expected until I enable the LJ timers via the following code. At that time, the DAC0 and DAC1 outputs begin producing a signal that cannot be read by a multimeter, not a Fluke 87 anyway.

AddRequest(ID, LJ_ioPUT_CONFIG, LJ_chTIMER_COUNTER_PIN_OFFSET, 8, 0, 0)

AddRequest(ID, LJ_ioPUT_CONFIG, LJ_chTIMER_CLOCK_BASE, LJ_tc12MHZ_DIV, 0, 0)

AddRequest(ID, LJ_ioPUT_CONFIG, LJ_chTIMER_CLOCK_DIVISOR, 183, 0, 0)

AddRequest(ID, LJ_ioPUT_CONFIG, LJ_chNUMBER_TIMERS_ENABLED, 1, 0, 0)

AddRequest(ID, LJ_ioPUT_TIMER_MODE, 0, LJ_tmPWM16, 0, 0)

GoOne(ID)

ErrorHandler(ID)

The heater is connected to EIO0 and works as expected with this configuration. But I cannot figure out why running the timer config hoses the DAC0 and DAC1 outputs.

I am unable to attach the ctl file as it is 3.5Mb.

Thanks for your assistance,

Bull

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.