LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a sine Wave between 0 to 1 V using NI-6221

I am using LabWindows 8.1.1 using Windows Vista and created a program where I am suppose to create a sine wave using AI/AO signals.  I create the sine wave between -1 to 1 V but when I try it  to do it between 0 to 1, it gives me an error.  I used the Multifunction-Synch AI-AO program to do this.  I need this to do it in real Time.
 
Thanks.
0 Kudos
Message 1 of 3
(3,436 Views)
 Hi Mitkel,

 The NI-6221 can generate a voltage that ranges +-10V. From the description of things, it sounds like you are varying the Output Minimum Value and Output Maximum Value's. If you change these values from  Output Minimum Value = -10 & Output Maximum Value = 10




 to Output Minimum Value = 0 & Output Maximum Value = 1 then it will throw the following error:



If you are looking to generate a analog output voltage that ranges from 0-1V w/the NI-6221 then you will need to create your data array to be written such that it contains those values. For example:
 
 AO=0.0v
 AO=0.5v
 AO=1.0V


I hope this does clarify the error that you are seeing. Have a great evening!

Best regards,

MatthewW
Applications Engineer
National Instruments
   

Message Edited by Matthew W on 10-04-2007 05:27 PM

Message Edited by Matthew W on 10-04-2007 05:44 PM

Download All
0 Kudos
Message 2 of 3
(3,417 Views)
Thanks, yes that solved the problem that I have.
0 Kudos
Message 3 of 3
(3,410 Views)