09-29-2011 04:25 AM
I have an Analog acquisition with a Timing (channel encoder). Can I configure the task for acquisition in one direction using two channel encoder ??
09-30-2011 09:34 AM
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.
09-30-2011 09:42 AM
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.
10-03-2011 04:50 AM
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
10-03-2011 04:59 AM
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.
10-03-2011 06:12 AM
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.
10-04-2011 01:33 AM
How can I wire the counter Task to source of the Analog Task trigger ??
10-04-2011 05:26 AM
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.