06-08-2010 02:15 PM
Setup: PCI 6062 Counting card w/ BNC 2121 board running under LV 9.0 PerkinElmer Avanlance Photodiode (SPCM-AQRH-13)
I searched through the forums and came upon the topic of rastering an image while collecting signal from a source for a set time.
The example in words from falkpl back in 2005:
"
Solved! Go to Solution.
06-08-2010 02:18 PM
06-09-2010 02:30 PM
Hello Woeful,
I'll try to point you in the right direction to start coding this application, but keep in mind my suggestions will need to be modified to your specific application.
For the retriggerable finite counter output task that you will need from your second counter in this application, I would suggest taking a look at the Example Finder in LabVIEW (Help » Find Examples) and under Hardware Input & Output » DAQmx » Generating Digital Pulses. Here, you will find Gen Dig Pulse-Retriggerable.vi. You can use this to create your 4 ms gate pulse that is finite (not a pulse train) and retriggerable (for everytime you move to next measurement.
In regards to configuring the first counter, there are several things to consider, and I can offer some initial help to getting it set up. You can internally route the CTR1 Internal Output (4ms pulse) to your CTR0 Gate to only measure during the high time. Here is additional info to do this in LabVIEW. The source of your CI Count Edges task will be the input TTL signal you are measuring/counting. This will be on the PFI line that corresponds with CTR0 Source.
When you do a finite measurement with CTR0, you will only take counts while the gate is high and your source has a rising edge. You can set the finite measurement to start on a trigger, of which is not clear in this example you have identified. Since you know you have a finite 4ms pulse measurement time, you can adjust the time of your measurement accordingly.
I found this forum that might help you out some, but the coding is all text-based. Hopefully this can give you a good starting point for programming.
06-09-2010 06:18 PM
06-09-2010 06:22 PM
06-10-2010 09:54 PM - edited 06-10-2010 09:56 PM