ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help getting started: externally triggering a 7841R FPGA

Solved!
Go to solution

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.

0 Kudos
Message 1 of 4
(3,001 Views)
Solution
Accepted by topic author Mawx

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):

https://www.ni.com/en/support/documentation/supplemental/21/designing-custom-triggering-applications...

 

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.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 2 of 4
(2,998 Views)

Thanks for the help, Thierry!  I've got some external triggering working already :).

0 Kudos
Message 3 of 4
(2,985 Views)

Great to hear that!

 

If any questions/issues pop up, then don't hesitate to let us know.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 4 of 4
(2,971 Views)