Showing results for 
Search instead for 
Did you mean: 

Virtual Bench incorrect example code (for DC FGEN output)



I am using the example code from here:  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?


0 Kudos
Message 1 of 6

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!

Best Regards, Monse

0 Kudos
Message 2 of 6

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?



0 Kudos
Message 3 of 6

Can you attached the code? I'm going to check some things and if I got it I'll tell you!


0 Kudos
Message 4 of 6

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.


Im using this in standard waveform. DC does nothing whilst the other waves work.

0 Kudos
Message 5 of 6

Here is the vi I am trying to use. Settings are:

Waveform - DC

Amplitude - 5V

Duty Cycle - 50

Frequency - 1k (Hz)

DC Offset - 0V

0 Kudos
Message 6 of 6