04-08-2010 06:45 PM
I am trying to trigger a strobe light using labview 2009. What I need to do is generate a 50us 10V pulse at various frequencies. I am using an E series PCMCIA card and a SC-2345 and I have a SCC-AO10. I am assuming I need to somehow use a counter because trying to do it in a while loop even with a 1ms wait is actually 10ms when viewed on a scope. Any insight on how this should be approached would be greatly appriciated.
Thanks
04-08-2010 10:40 PM
Hi nasu,
Actually software timers are not realtime and there will be some jitter in them.So you can rely on them.Better use the hardware timer(if it is present in your e-series cards) and it will give a perfect timing with the timed while loop..Please check if your card has a timer in built.
Thanks and regards,
srikrishnaNF
04-08-2010 11:09 PM
04-09-2010 09:40 AM
Hi nasu,
Here are a few examples on how to generate a pulse train from a counter output on your card using hardware timing:
Generate a Continuous Digital Pulse Train With Variable Frequency Using Event Structure:
http://decibel.ni.com/content/docs/DOC-8382
Generate a Continuous Digital Pulse Train With On The Fly Frequency Control:
http://digital.ni.com/public.nsf/allkb/7B1B0427C39FE33086256CEE00752133?OpenDocument
Generate a Continuous Digital Pulse Train With a Variable Frequency:
http://decibel.ni.com/content/docs/DOC-3751
Best,
04-09-2010 10:05 AM
I don't think the counters are going to give you ten volts.
It looks like the AO can hadnle that.
Do a continuous buffered output using the AO lines.
Ben
04-09-2010 12:51 PM
How do you do that?
04-09-2010 01:02 PM
nasu wrote:How do you do that?
When I am trying to figure out how to do some type of I/O operation I have never done, I start with MAX and use the Wizards to create a new task and answer the question to get the task working the way i want.
I then save the task as a name I'll rember.
Then I go to a BD drop a DAQmx task constant and then right-click and choose generate code (config and code).
LV wil then create the sub-VI to configure and do what you configured for that task.
If that will not work then browse the LV help looking for examples, under Hardware Input and output and tryo out any of the examples that look close. I believe the exaple you want is labled something like "Continuous output buffered hardware timed" but i don't have them memorized.
Ben
04-09-2010 01:53 PM
Wow Ben that was so helpful. But I don't know what MAX is or a BD. How will I ever figure this out.
04-09-2010 01:57 PM
MAX: Measurement & Automation Explorer. You should have an icon on your desktop, or at least look in your Start menu under National Instruments.
BD: Block Diagram - where you "write" LabVIEW code.