Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to program direct analog output for PCI-6713?

I'm trying to write a driver for PCI-6713. Right now, I only want to output data directly. I tried to use DAC<0...7>Direct Data Register, but it didn't work. Here is what I've tried:
AO_Configuration_Register;
AO_Config][Register;
AO_Immediate_Register;
Mem_write(BAR1,0,0); //Window Address Register
Mem_write(BAR1,2,data); //Window Data Register
My questions are: Should I use BAR1? Since I'm not using DAC-STC group, maybe I should only use BAR0. When using DAC of AO group, should I use:
AO Window addr Register 0x18
AO Window Data Register 0x1E
instead of
Window address Register 0x0
Window Data Register 0x2
?
Since it didn't work, there must be something else I should configure. Can anybody give me a pie
ce of example data?
Thanks

flofish
0 Kudos
Message 1 of 3
(7,792 Views)
Do you have the Measurement Hardware DDK examples for the 6713? These include examples for what you are trying to do. You can download the examples here. Click on the Download the Measurement Hardware DDK link on this page.

Christian L
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 2 of 3
(7,792 Views)
Thanks, Christian. It works.

Flofish
0 Kudos
Message 3 of 3
(7,792 Views)