01-20-2012 12:48 PM
Hello,
I would like to write a labview program where I can generate a TTL pulse to be sent to a stimulator every 500 ms. I'm not sure if an input is required for this task. Essentially I want this to be run in a loop continuously generating a pulse.
Thanks for your help!
01-23-2012 04:20 PM
ma.amanian,
I believe there are a number of examples in the LabVIEW Example Finder.
Specifically in Help > Find Examples > Hardware Input And Outout > DAQmx > Generating Digital Pulse.
I would start with "Gen Dig Pulse Train-Continuous.vi"
Regards,
Peter Connolly
Applications Engineer
National Instruments
03-05-2012 03:10 PM
Hi PeterGC,
i wanted to explain my goal a little further. I wanted to trigger an external device from the Labview software. I am using the PCI 6013 DAQ card so I was going to use the PFI 6 / AO Start Trig pin to send a trigger to the device. I tried using one of the example softwares in Labview where it sends a trigger to the PFI 6 but it didnt do anything. I am wondering if my approach is correct and what I need to change to successfully complete this task.
Thanks!
ma.amanian
03-06-2012 02:16 PM
What device are you trying to trigger? Make sure it doesn't need anything other than a 5V from the TTL.
To make sure the PFI line is actually sending the trigger you could try wiring PFI6 to another line on the 6013 and see if it can detect the pulse.
03-06-2012 07:18 PM
The device is a stimulator that sends a pulse once it is triggered from the Labview software and it only needs a 5V from TTL pulse. Is there a specific example that would help me achieve that? And should I be using the PFI6 pin or another pin?
Thanks.
03-07-2012 03:13 PM
It looks like PFI 0-9 can be used as digital triggers. I would try a different line, let me know how that goes.