04-04-2014 04:11 PM
Hello,
I am trying to use PCI-6602 counters to generate 4 pulses that start together. The width of these 4 pulses are ms level. However, the delay between channels is ms level too. So how to synchronize trigger the start and stop of 4 channels (with different duty cycle) by matlab?
I tried to use an external signal to trigger 4 channels together buy using 'addTriggerConnection', 'External' as source. But it didn't work. Matlab said Trigger and clock connections will not affect counter output channels.
And how to connect wires?
Thanks.
04-07-2014 03:43 PM
Hi Lindsay,
If you are using the MATLAB® Data Acquisition Toolbox™ to program the PCI-6602, please contact the MathWorks support team since they will be better suited to answer MATLAB programming questions.
To accomplish this in LabVIEW and our NI-DAQmx driver, you can use the information in these documents:
Using a Digital I/O Line as the Start Trigger with a PCI-6602 (you don't have to wire any external lines)
http://digital.ni.com/public.nsf/allkb/9052D691C228A56686256CFB00611D0D
Timing and Synchronization Features of NI-DAQmx (If you want to use an external line, take a look at Figure 4)
http://www.ni.com/white-paper/4322/en/
MATLAB® and Data Acquisition Toolbox™ is a registered trademark of The MathWorks, Inc.
Sincerely,
04-16-2014 09:01 AM
In PCI-6602 manual, this DAQboard output channel can be triggered by both internal signal and external signal. Is the internal signal means output of the other channel in the same board? If so, how can I connect them? Do I need to connect trigger channel's OUT pin with the other channels' GATE pin or they are already connectted inside the board?
Thanks
04-16-2014 12:21 PM
The internal outputs of the counters are routable without external wiring. The name of these terminals are:
/DevX/CtrYInternalOutput
Where "DevX" is your device name and "Y" is the counter you are using. Counters 0-3 and counters 4-7 are grouped on the board itself, routing between these groupings must use the trigger bus.
Having said that, the 6602 is certainly capable of using an external trigger as a start trigger for your counter output tasks.
I have not used the Data Acquisition Toolbox so I can't comment on how one might do any of this through that API.
Best Regards,
04-16-2014 01:09 PM
Thank you John,
For example, I want to use counter 4 as internal trigger for counters 0-3. Do you mean I need to use the trigger bus to connect them? And for trigger bus, do you mean RTSI bus?
Thanks,
04-16-2014 02:28 PM - edited 04-16-2014 02:28 PM
The driver does the routing for you, it only becomes an issue if you don't have any suitable lines available. You can see which lines are used exactly in the MAX routing table by shift-clicking on the yellow box in the routing table (although, this just shows one possible route and doesn't tell you if there are other alternatives):
Best Regards,