From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

voltage negative

 I use the DAQ NI6703 for output voltage negative by  using Matlab , I   used putsample function  putsample(ao,-1); however ,I cannot output the voltage negative.  I have tested the NI6703 by NI MAXmx, it fonctionne correctly.

this is my code :

 

 

%-------write to a NI 6703 DAQ device---------%

%-------------Initialization------------------%

%--------------analog Output------------------%

 ao=analogoutput('nidaq','Dev2');

 

 %-------Adding Channels----------------------%

 %-------Analog Output------------------------%

 

 addchannel(ao,0);

 

 %--------write data--------------------------%

 ao_value =-1;

 putsample(ao,ao_value);

 %----cleaning Up------%

 %waittilstop(ao,5)

 delete(ao);

 clear ao;

 

 

0 Kudos
Message 1 of 5
(3,862 Views)

Hi Leeou,

 

I am not familiar with Matlab but I think this forum can help you:

 

How do I use the PCI 6703 digital outputs with Matlab xpc

http://forums.ni.com/t5/Multifunction-DAQ/How-do-I-use-the-PCI-6703-digital-outputs-with-Matlab-xpc/...

 

Bye

Cindy
0 Kudos
Message 2 of 5
(3,821 Views)

Cindy,

 

I think Leeou is referring to the analog outputs, not the digital ouputs.

 

Lynn

0 Kudos
Message 3 of 5
(3,812 Views)

thank you for your response, I have fund my problem, and your information is alos useful for me.

0 Kudos
Message 4 of 5
(3,798 Views)

Proven Zealot,

yes I refer to  analog output, I fund  the problem is that I need to use the funtion:

ao.Channel(i).OutputRange=[-10 10];

 

thank you

leeou

0 Kudos
Message 5 of 5
(3,796 Views)