This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADC12D800RFRB in NONDES I+Q mode using wavevision dll

Other Parts Discussed in Thread: ADC12D1800RF, ADC12D800RF, ADS1293EVM, WAVEVISION5

Hello, I'm trying to configure the ADC12D800RFRB board with the wavevision dll using Matlab.

It works but only in DESI mode or NONDESI mode.

My question is exactly related with the registers 0xD43, 0xD041 and the register to configure the capture of the ADC.

for 0XD43 I use:

0xD043


0: EXT_CLK_SELECT = 0
1: DES_MODE = 0
2: CHANNEL_Q_SEL = 0
3: HW_TRIG = 0
4: IQ_CAPT = 1

for the register that I use to configure the capture (WvBoardWriteCaptureStart):

req.m_u1__ = 0
req.TransferSize = 2^12;
req.ChannelDataIndex = 2 (2 channels? for DESI is 3, may be hier is the error?)
req.HistogramEnable = 0
req.HistogramMaxBin = 100
req.DataFormat = 0
req.m_u2__ = 1
req.m_u3__ = 1
req.m_u4__ = 1
req.m_u5__ = 1
req.m_u6__ = 1

How should I capture the data with (WvBoardReadCaptureData)? should I use 2xSamples?

Thanks in advance for your help and best regards,

Gustavo

  • Hi, Gustavo

    Do you succeeded to read both I and Q channels at once? It seems to me that Non-DES I and Q mode doesn't work properly in hardware-triggered mode, i.e. I channel is sampled after HW trigger and Q channel is sampled afterwards, not simultaneously.

    I say that because I'm striving to get synchronous data from I and Q channels after a triggering signal, and all I get is the correct data block containing the I channel and an usual sampling noise from Q channel.

    I have tried to check this in WaveVision 5 and seems to be true: if the HW-trigger check box is checked, than I see the test pulse only on channel I and noise on Q. If I uncheck that box, then the pulse appears on both channels, as it is applied, both at I and Q inputs simultaneously.

    At this point it seems to me that there is a problem with the wvdll.dll or with the fpga program. I have expected that a triggering pulse would start a simultaneous acquisition on both channels, and not a consecutive one.

    Can anybody confirm if this issue is for real, or if I'm wrong?

    Thank you,

    Adrian

  • Hi Adrian,

    You are right. I had the similar experience with the ADC12D1800RF with old FPGA bit file. The I channel is captured first and then the Q channel. This might be due to the FPGA bit file issue. 

    I have received the bit file for proper capturing of the data for ADC12D1800RFRB and ADC12D1600RFRB which is attached with this post. You can use the same for these ADC EVMs.

    Which ADC EVM is used in your case? Is it ADC12D800RF? I dont have the file for this. May be we will wait for Jim to respond on this.

    Regards,

    Purna Chandar

    adc10d1000_xc4vlx25_adc12d1600rfrb.zip
  • Hi, Purna

    Thank you very much for your kindness! I will download the file, but I firstly wanted to reply to you. I use ADC12D1800RFRB EVM, and I wrote the program in LabVIEW, calling the library functions of wvdll.dll.

    You've made my day, sincerely. I can't wait to try it, since I'm after two days of trying to understand how NonDES I and Q mode is working and how to properly read data from the FPGA, in this mode.

    I have ceased these tryings late in the night and resumed them in the morning, by observing the EVM's behavior under the original application (WaveVision).

    Thank you a lot, I'll keep you informed!

    Best regards, 

    Adrian

  • Hi, Purna!

    It works like wow! 

    I'm all a big smile now. Thank you so much, I owe you one!  

    Regards, 

    Adrian

  • Dear Adrian, 

    I've just google around and notice your post regarding  calling wvdll.dll via LabView. 

    By any chance can you please send/upload some example of such library calling.

    I am struggling trying to connect ADS1293EVM to Labview without success. 

    Thanks,

    Liron    

  • Dear Liron,

    It's not a problem to upload the example, but please let me clean it up a bit and to comment it. I'm not quite an expert in LabVIEW, so I am a little embarrassed in posting it as it is. I will try to do it today. OK?

    Adrian

  • Hi Adrian,

    That's great.

    I am not a LabView expert myself, so please don't be embarrassed, no one is going to grade you depend on that example.

    Thanks a lot, 

    Liron 

  • Hi Liron,

    Well, I hope I didn't missed any vi. I put it all in Example.zip, which is pretty large, due to "hardware" folder that I have included as I have it. The main vi is ADC12D1800FRB.vi. There are two paths specified, which you have to modify according to the path where you unzip the file.

    These paths refer to the dlllog.txt file, created by wvdll.dll and to the location of the image which will be uploaded into the FPGA.

    The instruments are saved in LV8.20, I hope you have a newer version. If you don't, then I'll convert them down.

    I apologize one more time for the aspect of the program, I developed it in hurry and without great programming skills.

    If you have any difficulties or questions, please let me know.

    Adrian

  • Hi Adrian, 

     

    I can't emphasized my thankfulness to you, for all the troubles. 

    However, I can't see the attached zip file, might it be too big? 

    Can you send the zip directly to my email? lmizrahi@its.jnj.com

     

    Thanks again, 

    Liron 

  • Hi,

    I am trying to see how the example you posted work but it won't work because there is a VI missing. It is called WA Denoise.vi. If you still have the file, can you email it to me? My email is jxa107320@utdallas.edu.

  • Hi, Sophia!

    I have sent you a new Data Acquisition VI, from which the WA Denoise.vi is removed, as it is a part of Advanced Signal Processing Toolkit (as far as I remember).

    This VI is not quite necessary as it performs a noise reduction by using wavelet analysis. The Data Acquisition.vi will work without it as well. I attach here the new version of Data Acquisition for whom may need it.

    Hope this help!

    Adrian

    Data Acquisition without WA Denoise.zip

  • Hi Adrian.

    Im trying to use the ADC12D800RFRB  as a part of a project of mine.  I have tried to use the LV program that you uploaded, but after changing the two paths mentiond above, the program manages to run but gives me a continuose flat line.

    I have managed to get a signal when running WaveVision5, so i know everything else is working fine.

    If you have any idea of how to fix this problem I will be very greatful for your asistance.

    Thank you for time

    Eli

    P.S Im quite new to LabView, so if you have an answer can you please explain in detail.  

  •  Hi, Eli!

    I have attached the example again. It made me the same problems when I tried to run it. I suppose it was because of some older versions of the dll files: meanwhile I installed a new ADC12D1800RFRB which came with newer versions of dll files. After replacing the old ones and the content of the "hardware" folder, it started to work.

    In the archive you'll find a screenshot.jpg file which shows the status indicators in chronological order, from left to right. This is how they should look.

    You may delete the old version of the example.

    Hope this helps you!

    Adrian1134.Example.zip

  • Dear Adrian

    Sorry for the late reply. It works perfectly.

    thank you again for your time, you have helped me immensly.

    Eli

  • Hi, Eli!

    I'm very glad it works for you, too! 

    Thank you for your kindness!

    Adrian