LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Spartan-3E ACD/DAC Driver Labview FPGA

Hello,

 

I am an academic user (student), and am trying to use the Spartan-3E to perform signal processing.  I cannot find any examples or code on how to interface Labview FPGA with the ADC and DAC on the Spartan-3E.  This seems like someone would have written something like this before.

 

Please advise,

 

Benjamin Cook

0 Kudos
Message 1 of 19
(8,298 Views)

I would take a look at the getting started guide:

ftp://ftp.ni.com/evaluation/academic/getting_started_spartan.pdf

 

There should be some examples which deal with reading from the ADC and writing to the DAC under this directory:

<LabVIEW Dir>\examples\Spartan-3E\...

 

It looks like you have to talk SPI directly to the ADC and DAC, but there should be some VIs that get  you started.

0 Kudos
Message 2 of 19
(8,281 Views)

Hi Ben,

 

I think you will find this link very helpful as well. I contains a lot of information and training material.

Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 3 of 19
(8,258 Views)

How can I use the ADC and the DAC at the same time? First I give the DAC the needed data via SPI and after this I write the data to the pre-amp. But then the DAC stopps working while the DAC_CS bit is high. I have no idea what do to. Have anybody a working example for a simultaneously use of the DAC and ADC?

 

Many thanks in advance

0 Kudos
Message 4 of 19
(7,652 Views)

Hi Chefweb,

I need to know a bit more information.

What hardware are you using?

How are you testing the ADC and DAC?

 

thanks

FlashP

National Instruments
Applications Engineer
0 Kudos
Message 5 of 19
(7,611 Views)

Hi,

 

I use the Sparten 3E Board together with Labview 8.6 FPGA. I figured out that the ADC isn't the problem, just the the Preamp!. The DAC never works when I configure the Preamp. Unfortunately is this necessary to use the ADC. I think it is an error in the Compiler .. is this possible?

 

Thanks

Chefweb

0 Kudos
Message 6 of 19
(7,580 Views)

Board specification page 70 :

Disable Other Devices on the SPI Bus to Avoid Contention
         The SPI bus signals are shared by other devices on the board. It is vital that other devices
         are disabled when the FPGA communicates with the DAC to avoid bus contention.

 

So this is a major problem with this board, you better design your own external PCB (FX2 connector) or use the other header with extra ADC, DAC I/O

 

datasheet of board: www.xilinx.com/support/documentation/boards_and_kits/ug230.pdf

 

 

Kind regards,

Vince

 

http://pwo.fpga.be

 

 

0 Kudos
Message 7 of 19
(7,549 Views)

"Disable Other Devices on the SPI Bus to Avoid Contention"  ..I'm doing this, but it isn't working. The ADC, DAC and PreAMP Vis are in their own case structure and each button is sperated in the host VI. Just the removal of the Preamp routine brings the DAC to running. I think its a problem with the compiler.  When someone want's to try it for your one, send me a message and I can send you the Labview program.

 

chefweb

0 Kudos
Message 8 of 19
(7,545 Views)

Hi Everyone, I have been reading your answers about adc/dac driver for labview fpga but anyone

is quite clear for us. I am wondering if someone have better information.

 

Thanks

 

Miguel 

0 Kudos
Message 9 of 19
(7,189 Views)

Hi all,

 

I really tryed a lot to get ADC, DAC and PreAMP  running together. Finially I desigend a PCB for the external FX Connector and this is running fine. 

 

 

0 Kudos
Message 10 of 19
(7,172 Views)