11-02-2018 12:40 PM
Hi,
I am using the example code from here: http://www.ni.com/example/52072/en/ for a virtualbench 8012. It can generate arbitary waveforms just fine, however when I ask it for a DC signal it runs without error but without actually applying a DC signal to the FGEN output.
Has anyone else experienced this or have a solution?
Thanks
11-05-2018 09:07 AM
Hi md12g12!
Here's a link that may help you, if that does not help let me know and I'll look for another solution for you!
http://www.ni.com/example/52074/en/
Best Regards, Monse
11-06-2018 05:05 AM
Thanks, thats basically what I am doing, however that approach does not allow you to specify a DC signal. In the example I linked to, DC is one of the options (along with square, sine etc) however it appears not to function at all. Is there another way of generating a DC signal? I have played around with applying my desired DC offset to a square signal of ~0v amplitude but that seems like a very poor work around?
11-06-2018 07:54 AM
Can you attached the code? I'm going to check some things and if I got it I'll tell you!
Regards,
Monse
11-06-2018 09:22 AM
Im afraid im not at a pc with labview installed for a while, but I am using the exact VI download from the linked page.
http://www.ni.com/cms/images/devzone/tut/FGEN_BD_20150310152135.PNG
Im using this in standard waveform. DC does nothing whilst the other waves work.
11-06-2018 11:58 AM
Here is the vi I am trying to use. Settings are:
Waveform - DC
Amplitude - 5V
Duty Cycle - 50
Frequency - 1k (Hz)
DC Offset - 0V