Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

6601 sample and hold

$
0
0

Hi,

 

I have a probe set in quadrature count mode. I have it connected to an SCB-68, which is in turn connected to a PCI-6601 card. I am using a C program to read the counter values from this probe.

 

I also have a swinging arm (parallel to the floor) mounted on a rotary encoder which is connected to an MID-7652 box, which is in turn connected to a PCI-7342 card, used to control the servo motors to move the swing-arm. The 6601 and 7342 card are connected by an RTSI cable. The idea is to read the probe counter value while the arm is swinging about its pivot in order to measure surface profiles. It is important to know the exact arm position when the probe is read, and so latency is an issue. I am able to create an use breakpoints for the swing-arm.

 

Since latency is an issue I am looking to trigger a reading of the probe counter every time the arm reaches a breakpoint. I can do this using a C program but there is a delay between the breakpoint being reached when the arm reaches a breakpoint and the probe being read while the software executes lines of code.

 

How can I use the breakpoint output from the 7342 as a trigger to latch the value of the counter of the probe 6601 onto one of the NI-TIO registers?

 

Thanks


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>