Hello everyone,
again I need to ask you guys for help as I can't figure out how to continiously read a digital input. I am altering a software which has been running fine for over a year. The software is written in C# using the applicable librarys. The card I am using is USB-6210.
What I am already doing (works perfectly well):
- Read two analog in channels
- Read quadrature encoder via ctr0
- Synchronize the acquisition of the analog tasts by using a clock task on the freqout pin
- Get all the data
What I am failing to do:
In addition to the analog ins, read another digital in. Here is the error message:
What i tried after the ContReadDigChan_ExtClk rebuild in my software didn't work:
- Rebuild my 4 tasks in MAX. The problem: you can't access the /freqout pin in a MAX task. It works perfectly in the device self-test but there is no option to use it in a DAQmx Task
- Using the example ContReadDigChan_ExtClk. Problem is this crashes with the same error as my application.
I also looked for the error here in the forums. All I could find is a post from 2006: http://forums.ni.com/t5/Digital-I-O/VB-2005-amp-ContReadDigChan-ExtClk-Example-Exception-Error/td-p/458376
But the user here was obviously using a wrong card. My card supports generation the clock (demonstrated by my working project) so this can't be the error.
I am somewhat disappointed that the given sample is bugged
Would really appreciate help on this!
Best
nano