02-29-2012 12:25 PM
Hi,
I'm a relatively inexperienced LabVIEW user with no experience with FPGAs. I'm looking to produce a simple FPGA VI as a first use of our 7841R. We synchronize multiple devices with a pulse generator and would also like to use the pulse generator to trigger our 7841R. I haven't been able to find a simple example of how to do this*. Here's what I think I've figured out so far:
(1) create a while loop
(2) add an FPGA I/O node for one of the digital input nodes (say, DI0) (or maybe this should be an I/O method?)
(3) ...this is where it gets hazy....presumably the I/O node produces some output that I can then use to trigger an event
(4) once triggered, change the voltage level on one of the analog output nodes
Any help would be appreciated -- especially pointing me toward relevant tutorials or examples.
Thanks!
Cheers,
tom
* I did work through a tutorial that has the FPGA output a sine wave and that worked great....but I've been stumped after a few hours of searching about to figure out the triggering.
Solved! Go to Solution.
02-29-2012
05:01 PM
- last edited on
10-02-2025
01:30 PM
by
Content Cleaner
Hello Tom,
Here's a first tutorial you can go through:
http://zone.ni.com/devzone/cda/tut/p/id/3261
This tutorial does it the other way around (triggering something by an analog edge):
This one is the most handy one according to me (also about custom analog triggering):
http://zone.ni.com/devzone/cda/tut/p/id/6359
It shows how you can trigger a digital output based on analog input value.
In your case you'll just have to do it the other way around:
Read in a digital value and then based on that write something to an analog output.
If these tutorials don't help you along enough, then don't hesitate to give us a sign.
03-01-2012 10:30 AM
Thanks for the help, Thierry! I've got some external triggering working already :).
03-01-2012 02:15 PM
Great to hear that!
If any questions/issues pop up, then don't hesitate to let us know.