05-22-2007 07:11 PM
05-25-2007 01:33 PM
05-30-2007 07:06 AM
int32 DAQmxCreateCIAngEncoderChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], int32 decodingType, bool32 ZidxEnable, float64 ZidxVal, int32 ZidxPhase, int32 units, uInt32 pulsesPerRev, float64 initialAngle, const char customScaleName[]);
Current Ticks is your input for the float64 initialAngle parameter?05-30-2007 01:06 PM
05-30-2007 01:07 PM
06-01-2007 07:45 AM
06-05-2007 07:01 PM
06-06-2007 03:49 PM
06-14-2007 11:31 PM
06-15-2007 12:30 PM
Hello Sandra,
I would be happy to provide more information.
wag = Wild ass guess (sorry, it was vague).
I was setting the task.CIChannels(0).datatransfermechanism =
(CIDataTransferMechanism.Dma or CIDataTransferMechanism.Interupts) depending on
if I had more than one counter input channel enabled at that time. I set this
before running the task. When I tested this with 2 counters active, the application
& and visual studio(vs) would lock up forcing me to use ctl + alt + delete
to kill off my app and vs in order to get windows functioning again. My
wag(guess) is that windows was unable to handle the additional overhead of
handling the interrupts, which kept coming on backlogging and overloading the
system and making it look like everything was frozen. I tried this multiple
times with the same result, while dropping the sampling rate down.
My current work around is to use a windows timer to signal when to get a sample
and set my counters to hardware single point timing. I then get a sample when
the tick on the timer fires. This works, but I am really unable to go faster
than 1 sample every 5 seconds or so.
Yes, I have the counter value resetting appropriately now.
Thanks for your assistance,
CM