Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

gated two edge counter -200452 error

Solved!
Go to solution

Hello Forum,

                         As I wrote earlier, I am trying to implement a two edge separation measurement that could be gated. In an updated version of an earlier program, I tried to use the pause trigger property node. However, I can't get it to work and keep recieving a -200452 error. Can anybody at least explain what is wrong the program (attached).

 

Regards,

                 RL

0 Kudos
Message 1 of 19
(5,350 Views)

Hello,

 

You can see this link and check the solution.

http://forums.ni.com/t5/Digital-I-O/Error-200452-with-Pause-Triggered-DI-on-PCI-6251/m-p/3197357#M20...

 

I don't know which card you use, you can check if your card can support your pause trigger method.

 

Kind regards,

 

Lily

0 Kudos
Message 2 of 19
(5,310 Views)

Hello Forum,

                       Thanks for your suggestions, Lily.

            To answer your question, I'm using a 6321 X series DAQ card, a Perkin Elmer SPCM and a pulsed laser. I've followed your advice and useda pause trigger.

            My code (attached) builds on two earlier examples. I have two questions:

             

1. It seems that if I do not use the Armstart trigger to start the two timestamp counters it doesn't work properly. Isn't the pause trigger by itself enough to synch both of them?

 

2. I'm trying to plot a histogram of the difference in detection times between the Start APD and the Stop APD. In the program, the data is collected in a producer loop and processed in the consumer loop. In the first TimeStamping_v2.i, I  find the time difference by simply subtracting the time stamps in the producer loop. Ideally though, calculations should be done in the consumer loop. But as TimeStamping_v3.i shows, I can't quite transfer the data to the latter loop. It's probably trivial, but can any one help?

 

Regards,

                RL

Download All
0 Kudos
Message 3 of 19
(5,292 Views)

Hi,

 

Your card PCIe-6321 can support the pause trigger method, you can check the datasheet:

http://www.ni.com/pdf/manuals/374461b.pdf

 

But I think that you can just use the pause triggers in edge counting and continous pulse generation applications. Please see:

http://www.manualslib.com/manual/109451/National-Instruments-Ni-6238.html?page=97

 

So that's the reason you get the error -200452 when you use pause trigger for a two edge seperation measurement.

 

I find a VI in the exemple of LabVIEW and do some modification to show the error -200452 when you use the pause trigger.( no error when you use edge counting with pause trigger)

 

Kind regards,

 

Lily

0 Kudos
Message 4 of 19
(5,282 Views)

Thanks again, Lily. I understand now why my earlier program doesn't work. My lastest program does use edge counting, but it still has a bug, which is passing data from the producer to the consumer loop. 

0 Kudos
Message 5 of 19
(5,278 Views)

Ooops, forgot to add program...

0 Kudos
Message 6 of 19
(5,277 Views)
Solution
Accepted by topic author riclambo

Hi,

 

See this.

 

kind regards,

 

Lily

Message 7 of 19
(5,275 Views)

Hi Lily,

             Thanks for your very simple solution to problem of transferring data between loops. Thank you also for your overall help. The simple fact that others are taking an interest in your problem is enough to encourage one to keep trying until it's finished, even when it looks so hopeless at the start.

 

Kind Regards,

                           RL

0 Kudos
Message 8 of 19
(5,262 Views)

Hi,

 

I'm happy that you progress in your project.

 

I get a lot of help from this forum also, the people can really help the others if they can.

 

Have a nice day.

 

Lily

0 Kudos
Message 9 of 19
(5,233 Views)

Hi Lily,, Hi Forum,

                                   Although my program works, it's far from perfect. One thing I read about the Edge counter is that it continues counting after the armstart trigger without reseting. Since I'm trying to timestamp the photons detected by the APD, is there a way to reset the counter? I tried to use the reset Edge counter node, but it appears that it is not compatible with the Pause trigger. Or am I doing something else wrong?

0 Kudos
Message 10 of 19
(5,200 Views)