angelmcdoggie
2008-05-21 04:10:08 UTC
Dear All,
I have several questions about the change detection event callback based from the VC++ shipping example, ReadDigChan_ChangeDetection_Events.
1. What is the rate of the configure change detection timing? It's not defined in the argument.
m_task->Timing. ConfigureChangeDetection(
risingEdgeLines,
fallingEdgeLines,
DAQmxSampleQuantityModeContinuousSamples, sampleSize);
2. Is the callback single-threaded or multi-threaded?
3. Is there anyway to differentiate which signal pin/s generated the change detection? Is there an API for this operation or is it simply depends on the user how to figure this out?
Is there any data passed in the userData to achieve this?
void CReadDigChan_ChangeDetection_EventsDlg::OnDigitalChangeDetection( void* userData)
{
int value;
CNiComInitialize com( CNiComInitialize::Apartment);
if ( m_taskRunning) {
try {
//read sample
m_reader->ReadSingleSampleMultiLine( m_data);
..........
Thanks a bunch, A =)
Message Edited by angelmcdoggie on 05-21-2008 12:05 PM
I have several questions about the change detection event callback based from the VC++ shipping example, ReadDigChan_ChangeDetection_Events.
1. What is the rate of the configure change detection timing? It's not defined in the argument.
m_task->Timing. ConfigureChangeDetection(
risingEdgeLines,
fallingEdgeLines,
DAQmxSampleQuantityModeContinuousSamples, sampleSize);
2. Is the callback single-threaded or multi-threaded?
3. Is there anyway to differentiate which signal pin/s generated the change detection? Is there an API for this operation or is it simply depends on the user how to figure this out?
Is there any data passed in the userData to achieve this?
void CReadDigChan_ChangeDetection_EventsDlg::OnDigitalChangeDetection( void* userData)
{
int value;
CNiComInitialize com( CNiComInitialize::Apartment);
if ( m_taskRunning) {
try {
//read sample
m_reader->ReadSingleSampleMultiLine( m_data);
..........
Thanks a bunch, A =)
Message Edited by angelmcdoggie on 05-21-2008 12:05 PM