03-04-2009 07:57 AM
Hello,
I want to trigger a CIChannels.CreateAngularEncoderChannel.
The trigger should start the measurement after an rising edge.
Which Type of trigger I have to use ?
Thanks
André
Solved! Go to Solution.
03-09-2009 03:16 AM
Hello André,
You need a "digital start" to be able to start the measurement after an rising edge. You will have as parameter the slope (rising/falling) and the source (PFI0 for instance)
To be sure of the syntax, I advice you to use the DAQmx Examples as patterns, that you can find under .../National Instruments\NI-DAQ\Examples\
To get the list of the available text-based examples installed on your PC with the DAQmx drivers, please click on this link.
Cheers,
Laurent P.
National Instruments
03-10-2009 09:13 AM
Thanks I got it !
There is an other problem: How can I set the transfermode of the counters to DMA mode ? Can i recognize the number of samples actually read (something like the GPCTR_Watch-function ? )
Greetings
André
03-11-2009 09:03 AM
Hello André,
You can always programmatically define whether you want to use DMA or Interrupts. Hier is a link where you can find complete information:
Configuring the Data Transfer Mechanism (Interrupts or DMA) in DAQmx and Traditional DAQ
In Labview, you can get all kind of information through property nodes, for instance: Total Samples Per Channel Acquired property node (Using NI-DAQmx Property Nodes for Analog Input Channels)
This should be possible and quite similair in C, however I can't find any documentation about it.
I hope this help.
Laurent P.
NI Switzerland