VirtualBench

cancel
Showing results for 
Search instead for 
Did you mean: 

Enable FGEN Trigger with LABview

Solved!
Go to solution

Hi,

 

I am using the FGEN to output a 100k square wave (through labview), but cant find how to enable the trigger output. I tried to follow this post: https://forums.ni.com/t5/VirtualBench/fgen-initialization-on-external-Trigger/td-p/3008451 however I cant find any export VI's. Does anyone have the labview code to enable the trigger?

 

Thanks

0 Kudos
Message 1 of 5
(4,994 Views)

If I understand correctly, you want to export the FGEN trigger using the solution from the post you referenced but you can't find 'Dig Export Signal'?

With the VirtualBench API, all trigger exporting is configured within the 'Digital' subfolder.  'Dig Export Signal' is found within the 'Digital/Utility' subfolder.  Another useful tip for finding VIs by name is to press 'ctrl+space' and then start typing the name of the VI in the dialog.  When you've found the VI you want, press enter and you can place the VI.

 

--------------------------------------------------------------------------------------------------------------------------------------------

Daniel Larsen

Digital Hardware Engineer

National Instruments

Message 2 of 5
(4,979 Views)

Thanks, I tried that but still no output on the trigger BNC sadly. I have attached a screen shot and the VI in case that helps? The top part just sets up an arbitrary waveform (I use a 1kHz square wave, 5V) which works. I had hoped the bottom bit would output a trigger signal from the trigger BNC.

 

Trigger.PNG

0 Kudos
Message 3 of 5
(4,972 Views)
Solution
Accepted by topic author md12g12

md12g12,

 

It looks as if you're configuring it to export the FGEN start trigger on VB8012-31373F7/dig/0 (this is DIO 0).  I believe you want to use VB8012-31373F7/trig.  I tried the example you showed me with that change and it is working on my end.  One note if you're attempting to use the trigger line with arbitrary waveforms -- the trigger line behaves differently in this case.  For arbitrary waveforms it will be asserted as long as FGEN output is enabled.

Changes.png

Let me know if this doesn't resolve the issue.

 

--------------------------------------------------------------------------------------------------------------------------------------------

Daniel Larsen

Digital Hardware Engineer

National Instruments

0 Kudos
Message 4 of 5
(4,970 Views)

Ah thanks, yes a simple fix in the end!

0 Kudos
Message 5 of 5
(4,959 Views)