Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Pci6602 Triggers DAQmx C# .NET

Solved!
Go to solution

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é

 

0 Kudos
Message 1 of 4
(4,366 Views)
Solution
Accepted by topic author koins

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

0 Kudos
Message 2 of 4
(4,342 Views)

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é

0 Kudos
Message 3 of 4
(4,331 Views)

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

 

 

 

 

 

0 Kudos
Message 4 of 4
(4,313 Views)