10-30-2006 08:35 AM
10-31-2006 09:14 PM
Hi Quiksilver,
TTL pulses are generally created on either a digital line or a counter. The PCI-6025E does not have clocked/correlated digital I/O. Therefore if you use the digital lines the output will be software-timed and the accuracy will be system dependent. You would most likely not achieve the frequency you desire. Therefore I recommend using a counter for output.
To create a pulse with varying frequency and duty cycle you can create a counter output and set it for frequency. You can then use a DAQmx Write to update the frequency and duty cycle. Assuming you are using LabVIEW you may want to search the examples (Help>>Find Examples) for PWM. This will bring up an example called PWM Counter Output. This example reads an analog channel and updates the duty cycle on the counter accordingly.
The PCI-6025E does not have four counters, however if you are using the same signal on four channels you could connect the counter through 4 relays to the points you wish to trigger. You can control the relays with your digital lines to independently turn on/off a particular trigger signal after reading your analog inputs. If this is not an option, you might try the software timing on the digital I/O lines keeping in mind the limitations listed above.
Hope this helps,
Jennifer O.
11-01-2006 10:28 AM
11-01-2006 10:35 AM - edited 11-01-2006 10:35 AM
Message Edited by AnalogKid2DigitalMan on 11-01-2006 09:36 AM
11-01-2006 12:56 PM
Okay that makes sense. Thanks.
Now however I have a PCI 6602 board and I want to output TTL signals on all eight counters and be able to shut them down individually can I do this programatically? I tried it previously using DAQmx (w/ Labview 😎 and all I got was a error message (50103). So my question is how can I output all available, 5 volt TTL signals using labview 8 using a 6602 board without getting this error and be able to stop them individually?
11-02-2006 10:09 PM
02-20-2007 01:58 PM - edited 02-20-2007 01:58 PM
Message Edited by JoshPSU on 02-20-2007 02:01 PM
Message Edited by JoshPSU on 02-20-2007 02:02 PM
02-21-2007 12:46 PM
02-21-2007 01:23 PM
02-21-2007 02:22 PM
Instead of relays you could also use 7408 logic series AND gates- wire one input of the AND to the DIO select line, and the other input to clock signal. Repeat 8 more times for each DIO select. This would give you cleaner switching than a relay in your application. It may be wise to use a buffer for every 3 AND gates for the clock to ensure enough drive capability for the AND gates.
Another option is a multiplexer, like a 74150, where 4 select line inputs will select 1 of 16 inputs to route to the output. Think of it as a 16 position switch with 16 inputs and 1 output. The 4 select lines determine the position of the switch. IMO this is the optimal solution.