11-06-2018 04:56 AM
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
Solved! Go to Solution.
11-06-2018 09:40 AM
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
11-06-2018 11:55 AM
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.
11-06-2018 12:47 PM
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.
Let me know if this doesn't resolve the issue.
--------------------------------------------------------------------------------------------------------------------------------------------
Daniel Larsen
Digital Hardware Engineer
National Instruments
11-07-2018 10:55 AM
Ah thanks, yes a simple fix in the end!