07-07-2009 12:18 PM - edited 07-07-2009 12:19 PM
07-10-2009 04:23 AM
Hi Ceties,
Thanks for posting this issue!
Unfortunately, I couldn't find any barriers specified using counter triggering with PCI-6120, though it turned out that only Analog Trigger is supported by this card. Even if I didn't find proof on that, I believe CI Start Trigger is not supported at all in this case. I can give you an easy workaround:
What you can do is to configure an analog input with Start Trigger and configure your counter like it take the AI Sample Clock as clock. There is a possibility to configure counter with Start Trigger.
I attached the solution as well!
Best Regards,
Matyas
07-14-2009 10:02 AM
07-15-2009 03:40 AM - edited 07-15-2009 03:42 AM
Hello Ceties,
I am afraid, I was not clear enough. I should have given a short explanation along with the code.
1) Correct. You wire your trigger source through PFI0.
2) Negative. The input of the AI task can be anything, for example 'nothing' = floating input
3) You need to connect the TTL pulses to the 'counter in', as you would do, if we could trigger the counter normally
We use the AI task only because of the trigger. The method is:
- You initalize both tasks. You wire the TTL signal to the counter and 'nothing' to the AI.
- Programatically connect the trigger source to the AI task.The acquisition of 'nothing' will start only when the trigger condition is positive.
- Meaning, the AI starts sampling, the AI sample clock starts running. (we're not interested in the acquired the data, we use only the clock)
- You connected the AI sample clock to your CI task.
- Counter will start sampling only when the AI starts sampling - AI starts sampling only when the trigger occurs.
- Result: Counter will start sampling only when the trigger occurs 🙂
I hope it'll work in your project!
Regards,
Matyas
ps: you can also use ni.com/ask, write mail to techsupport@ni.com or call our native speaking engineers on this toll free number 800142669 (from Czech Republic) for technical support. Visit ni.com/czech.
07-16-2009 06:37 AM
Hello Hello,
I'll have chance to test it next week so I will let you know how sucessfull I was.
Regarding the czech support - I had them on the phone but eventually they asked me to write them mail. And once I write something I prefer to post it to the forum since usually there is somebody who knows the answer(like you) and it can help to other ppl being in the same sittuation.
Thanks!
07-22-2009 05:06 AM - edited 07-22-2009 05:07 AM
08-04-2009 03:33 AM
Hi Ceties,
I see your post is not fresh anymore. 🙂 I was out of office, so you might have managed to solve this issue so far. Even though, I can give you some guidelines.
You will not be able to pause or restart a 'fake' trigger method which we developed within this topic. The reason: meanwhile you stop/restart the AI task the CI task will not have a sample clock resulting in error messages.
I have two ideas for you to try out, they depend on your goals.
Best,
Matyas
08-06-2009 11:11 AM
Hello,
I've been using a program (created by my predecessor) in LABVIEW 8.0 (win xp) to count the rpm through NI 6624 counter card. It worked fine for the past one year. But all of a sudden, today it started to give an error 200474. I tried restarting the system, resetting the card from Measurement and Automation and changing the card (I have 2 of the 6624 cards). But nothing works. The error persists. I tried to build a new program, but that too did not give me the desired result. How do I sort this out? Thanks
Swaroop
08-07-2009 06:49 AM - edited 08-07-2009 06:51 AM
Dear Swaroop,
Reading your problem description and error code, I assume there is a break somewhere in the connection between your signal source (connector block) and the measurement device. Error 200474 is a timeout issue, meaning either you don't get any signal on CI, or the source is too low frequency (in some cases measuring <100 Hz could result this error).
Please, review your physical connections and also check these KBs for other solutions:
http://digital.ni.com/public.nsf/allkb/4E017925BDF2DC2D862572E6007C9594?OpenDocument
http://digital.ni.com/public.nsf/allkb/F94FF852680CA9F78625739F007B3ECF?OpenDocument
Hope it'll help!
Have a nice day!
Matyas
01-15-2011 10:14 AM
I am a bit late but this solution worked like a charm!
Same as measuring low frequency but instead of the timebase I use the IRC signal as source and I use the Trigger as the gate.