07-14-2005 03:07 AM
07-28-2005 04:49 AM
Hello!
Really sorry that I don't understand your question fully but have you tried to generate code with the DAQ Assistant? There you can see the basic architecture of the programming flow and the basic function calls you need. The extra features you then need such as routing among other things can then be added to this generated code.
Also make sure that the routing paths are possible with the board you are using.
Attached is a small example that I generated with the DAQ Assistant:
#include "stdafx.h"
#include "DAQmxTask1.h"
CDAQmxTask1::CDAQmxTask1 ()
: CNiDAQmxTask(_T("CDAQmxTask1"))
{
this->Configure();
}
void CDAQmxTask1::Configure ()
{
this->CIChannels.CreateTwoEdgeSeparationChannel(_T("Dev2/ctr0"), _T("TwoEdgeSeparation"), 1E-06, 1, DAQmxCITwoEdgeSeparationFirstEdgeRising, DAQmxCITwoEdgeSeparationSecondEdgeFalling, DAQmxCITwoEdgeSeparationUnitsSeconds);
this->Timing.ConfigureImplicit(DAQmxSampleQuantityModeContinuousSamples, 100);
}
Routing of signals can be achieved with the CNiDAQmxExportSignals::ExportHardwareSignal() function for an example.
Hope this information at least get you started.
Regards,
Jimmie A.
Applications Engineer, National Instruments