Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog Acquisition with Timing and direction???

I have an Analog acquisition with a Timing (channel encoder). Can I configure the task for acquisition in one direction using two channel encoder ??

 

0 Kudos
Message 1 of 8
(4,500 Views)

Hello Marcello!

 

I am not pretty sure I understood what you want to do exactly. Can you be a bit more clear?

 

You can create a Counter Input task where you can set what kind of measurement you would like to have. 


Also, if you create an Counter Input Task in MAX you can see in which PFI line you can connect your encoder.

 

 

Antonios
0 Kudos
Message 2 of 8
(4,491 Views)

Ok, now  I have an acquisition from two analog channel with Timing (first encoder channel) and Trigger (secon ecoder chanel) with finite sample (es. 1000 imp.). It's work perfectly.

But now i want acquire but only if the encoder rotates clockwise.  

0 Kudos
Message 3 of 8
(4,489 Views)

Ciao Marcello!


Ok, I think what you need is to use Pause Trigger. 

 

Here is an example that will help you out.

 

https://decibel.ni.com/content/docs/DOC-11451

 

 

Antonios
0 Kudos
Message 4 of 8
(4,480 Views)

I already use the PAUSE fer TRIGGER to pause the acquisition is not what I need.

 I have a drum that rotates both clockwise andcounterclockwise, I want that when part of the acquisition, acquiring only if the drum rotates clockwise, using the two-channelencoder.

 

 

0 Kudos
Message 5 of 8
(4,478 Views)

Marcello if you would like to start an analog acquisition based on whether the drum rotates clockwise , an idea would be to create two tasks in the same vi. One like the example that I sent before, and also create an other input task (ANALOG INPUT). Then you would have to wire the counter task as a source of trigger or sample clock of the analog input task. Then, by rotating right you start analog acqusition and by rotating left you pause the acqusition.  

 

 

 

Antonios
0 Kudos
Message 6 of 8
(4,475 Views)

How can I wire the counter Task to source of the Analog Task  trigger ??

 

 

0 Kudos
Message 7 of 8
(4,469 Views)

Hello again Marcello, 

 

I think by looking at the following example you will achieve your target.

 

https://decibel.ni.com/content/docs/DOC-12256

 

You simply have toconnect the signal that comes out of the encoder to a PFI line to set as Trigger source this PFI line.

Then by choosing High edge or Low Edge you will be able to start acquisition by turning clockwise or counter clockwise your drum.

Antonios
0 Kudos
Message 8 of 8
(4,461 Views)