LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual Bench incorrect example code (for DC FGEN output)

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

0 Kudos
Message 1 of 6
(2,265 Views)

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

0 Kudos
Message 2 of 6
(2,215 Views)

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
(2,198 Views)

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

Regards,
Monse

0 Kudos
Message 4 of 6
(2,193 Views)

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.

0 Kudos
Message 5 of 6
(2,189 Views)

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
(2,182 Views)