robhlam
2006-07-28 16:40:13 UTC
Hey guys,
I'm a poor little undergrad who has been given LabVIEW, a PCI-6220 card
and a BNC-2110 breakout box and told to count the TTL pulses from an
avalanche photo diode (at up to 40 MHz).
I've managed to get LabVIEW reading analog inputs with no problems but I've spent days trying to get the counter working.
Measurement & Automation > My System > Devices and Interfaces
> NI-DAQmx Devices > NI PCI-6220: "Dev1" > Test panels... >
Counter I/O
will happily give me the edge count of a signal from an external generator.
(Settings as follows: "Channel Name" = "Dev1/ctr0", "Mode" = "Edge
Counting", "Edge Source" = "/Dev1/PFI1", Frequency" = 1000, "Duty
Cycle" = "50" Physical ground from signal generator connected to "D
GND" and the signal wire to "PFI 1")
I tried using
C:\Program Files\National Instruments\LabVIEW
8.0\examples\DAQmx\Counter\Count Digital Events.llb\Count Digital
Events-Buffered-Continuous-Ext Clk.vi
But it just kept giving errors. Either it didn't find a signal when
using /Dev1/PFI* (error -200284 "Some or all of the samples requested
have not yet been acquired...") or if I tried other sources like
OnboardClock (Error -200303 "External sample clock must be specified
for this application) I got a selection of other errors.
Any help would be very gratefully received.
Thanks,
Robert
I'm a poor little undergrad who has been given LabVIEW, a PCI-6220 card
and a BNC-2110 breakout box and told to count the TTL pulses from an
avalanche photo diode (at up to 40 MHz).
I've managed to get LabVIEW reading analog inputs with no problems but I've spent days trying to get the counter working.
Measurement & Automation > My System > Devices and Interfaces
> NI-DAQmx Devices > NI PCI-6220: "Dev1" > Test panels... >
Counter I/O
will happily give me the edge count of a signal from an external generator.
(Settings as follows: "Channel Name" = "Dev1/ctr0", "Mode" = "Edge
Counting", "Edge Source" = "/Dev1/PFI1", Frequency" = 1000, "Duty
Cycle" = "50" Physical ground from signal generator connected to "D
GND" and the signal wire to "PFI 1")
I tried using
C:\Program Files\National Instruments\LabVIEW
8.0\examples\DAQmx\Counter\Count Digital Events.llb\Count Digital
Events-Buffered-Continuous-Ext Clk.vi
But it just kept giving errors. Either it didn't find a signal when
using /Dev1/PFI* (error -200284 "Some or all of the samples requested
have not yet been acquired...") or if I tried other sources like
OnboardClock (Error -200303 "External sample clock must be specified
for this application) I got a selection of other errors.
Any help would be very gratefully received.
Thanks,
Robert