02-07-2006 08:53 AM
02-07-2006 10:07 AM
Re: unsigned char / short. You really don't have any options to change the datatype as a means for helping with the FIFO issue. How long of a total measurement time do you need to support? What is the typical firing rate over that time? Is it >1 MHz throughout, or would there only be a short burst at such a high rate? How much post-processing is acceptable vs. having information available on-the-fly?
If you need to establish TOA for individual pulses at >1MHz for some seconds, I wouldn't count on getting there with a 6602. A high-speed digital board like the 6534 would probably do the job, but you'd need to do a bunch of post-processing to find the pulses after the fact. An alternative *might* be a high-speed digital board from Viewpoint Systems (an NI Alliance partner) which can be setup for change detection while also timestamping the changes. I think you could ask it to detect only rising edge changes, then every entry's timestamp becomes your TOA. I don't know details about its on-board FIFO or equivalent though.
Note that with either type of high-speed digital board, you could probably scale up to accept multiple photon sources.
02-16-2006 11:10 AM
Hello
Sorry for the lateness of this reply; I had some other things to work on and I backburnered this
Postprocessing is absolutely fine, this is what we do plan on doing. We'd like to be able to run the program for at least 30 minutes, but we don't expect it to be greater than 1Mhz for most of the time. We think that there's just occasional small bursts that are filling up the FIFO. The evidence that we have for this is that the amount of time the program will run is quite variable.... anywhere from a few seconds to a few minutes. We think that corresponds to some sort of light scattering event or something that is over very quickly, but happens rapidly enough to cause problems
A lot of what we need to work on I think is fixing our experimental setup. At one point though, someone had mentioned digital filtering? We were thinking of using the pulse generator vi example to turn the data collection off for a few hundred nanoseconds after one pulse was collected... so the first pulse it gets a pulse generator vi sends one to the vi but ignores ones during the delay.
Thanks
Tim
02-17-2006 07:27 AM
06-12-2006 09:32 PM
06-13-2006 08:18 AM
Jordan,
Could you post some of the data acq code when you repost more details? There's a good chance someone could zero right in on your problem(s)...
-Kevin P.
06-13-2006 12:38 PM - edited 06-13-2006 12:38 PM
Kevin -
I am using a VI from this thread called SingleTimeStamping_v4.vi from Chris's post on page 1 (http://forums.ni.com/attachments/ni/40/2323/1/TimeStamping.zip). I have not changed anything except the inputs. Attached to this post is a screen cap of the VI, as I have it configured. Physically, I have photon pulses (either from an avalanch photodiode or simulated from a signal generator or the photon simulation VI that was also posted somewher in this thread.) connected to counter 1 source. As of now, I'm not using a gate... I'm just trying to get the VI to read something. Ultimately, the goal is to timestamp each photon (I believe I'm repeating myself from the first post). Anyway, there are a few things that leave me a bit confused.
First, as you can see from the screen cap, the VI asks for counter channel, source of timebase, source of photons, and trigger source (plus a few other things, but those are fairly self-explainitory... also, this screencap was taken while I was using the photon generator VI on counter 2) What confuses me is the fact that it asks for both a counter number and a source of photons. In my mind, it would make sense to only require only a counter number as an input. From that, it would use that counter's source and gate. Also, I get an error when I set the counter channel to the same number as the photon source (ie, counter channel: /dev1/ctr1 and source: /dev1/ctr1source). The error number is -89136 at DAQmx Start -- "Specified rout cannot be satisfied because hardware does not support it" and then it lists: "Property: SampleClk.Src, Property: SampleClk.ActiveEdge, Source Device: Dev1, Source Terminal: ctr1Source"
The second thing I do not understand is the output. When I run the VI, no matter what signal is inputted, what any of the inputs are set to... basically no matter what I do to it, it outputs what you see on the graph in the screen cap. Each time I run it, it makes one short upward sloping line. Each line you see is a result of me running the VI. Also, this line appears after I hit stop, not while it's running.
As I mentioned earlier, the photon source, counter channel, and trigger have me a bit confused as well. What should I specify for each? For the sake of explaination, say I've got the input from the photodiode attached to counter 1 source and the gate attached to counter 1 gate. Also, I'm fairly certain my physical wiring is correct because I can sucessfully test it using the test pannel.
If any other info would be helpful, let me know and I'll post it ASAP.
Thank you
-Jordan
Message Edited by Nepthar on 06-13-2006 12:41 PM
06-14-2006 03:31 PM
What confuses me is the fact that it asks for both a counter number and a source of photons. In my mind, it would make sense to only require only a counter number as an input. From that, it would use that counter's source and gate
Ultimately, the goal is to timestamp each photon
06-15-2006 08:56 AM
06-15-2006 09:50 AM
... "attached file" merely referred to "TimeStamping.zip" from your prior post
-Kevin P.