04-05-2009 08:04 PM
I am having trouble finding information about triggering the 6602 counter with traditional DAQ in Labview 8.0.1. Several years ago, there were numerous sample vis for buffered period measurement and buffered semi period measurement on NI’s website and the Example finder. Have some of these been removed, or do I need to improve my search technique? Is there a document that describes this in more detail then the 6602 user guide, particularly the 6602 trigger.
I am measuring a 1000 Hz. PWM signal and I need to take a sample each time there is a pulse on RTSI 0. The pulse is generated by the breakpoint of a PCI-7352 motion card. I want to measure 2 different PWM outputs when the RTSI pulse appears. Typically we will capture50 to 100 samples from each channel over the duration of a test. The time between RTSI pulses can be changed if needed.
I have been using the buffered semi period measurement routine, but this is slow (about 20 samples per second) and unreliable. If a pulse is lost during a measurement, it makes the test unusable. I can live with slow if I have to, but the test must be reliable.
It should be possible to use 2 counters for each channel, one measuring the time when the PWM signal is high and one using the time when the signal is low. This data could be used later to calculate the percent output at each point.
The problem is that I need to trigger each acquisition when the RTSI pulse arrives and I have been having trouble finding information on how to do this. One problem is the buffered semi period measurement routine requires the program command after the read command. Is there a way to trigger a read using buffered period measurement with the RTSI pulse and have the counter automatically reset and wait for the next RTSI pulse without using the program command
04-06-2009
11:49 AM
- last edited on
04-27-2025
03:43 PM
by
Content Cleaner
The Traditional NI-DAQ examples are no longer found in the example finder as NI has moved to using NI-DAQmx instead of T-DAQ. However, it is still possible to get to the old Traditional NI-DAQ examples. On your machine Navigate to the following: "....\National Instruments\LabVIEW 8.6\examples\daq\" This folder contains many folders depending on your application. In this case you want counters, so choose the counter folder. In here please choose the NI-TIO.llb library because the the 6602 uses the NI-TIO chip.
You should be able to find an example in the library that can be modified to do exactly what you need.
Also with regards to sending/receiving triggers accross the RTSI Bus in T-DAQ.. the following documents may be useful. Again note that these are not necessarily geared exactly to your application but you will likely be able to extract enough information to get your application going. I searched on ni.com : "RTSI Trigger, Traditional"
http://zone.ni.com/devzone/cda/epd/p/id/339#0requirements
http://zone.ni.com/devzone/cda/epd/p/id/3056