Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

MyDAQ ADC Characterization

I am trying to generate a ramp from 0 to 10 volts using the Analog Output, and then read those voltages on an Analog Input channel on the MyDAQ. I set the Analog Input to read ~3 million samples, with a sampling frequency of 100KHz. The expected result of my program is a histogram with 65536 bins, with 50 hits per bin. The problem I am having is that approximately every other bin has 0 hits, and the remainder are ~100 hits, which does average out to 50 hits/bin, but I need all the bins to have ~50 hits.

 

My main question is: would there be any issue with connecting the Analog Output of the MyDAQ to the Analog Input?

 

No matter what adjustments I make, including setting the Analog Output ramp to update at twice the frequency that the Analog Input takes samples, I consistently get the same results of approximately every other bin having 0 hits.

 

Any help or insight would be greatly appreciated, thank you.

0 Kudos
Message 1 of 15
(6,959 Views)

Hello,

 

Can please upload your code or some screeshots to be able to see the application? That way we can understand in a better way.

Randy @Rscd27@
0 Kudos
Message 2 of 15
(6,942 Views)

Here is a picture of the hardware setup, and one of the vi's used. The main vi is too large so I will screenshot it.

hardware

0 Kudos
Message 3 of 15
(6,931 Views)

Here is the main vi screenshot.

0 Kudos
Message 4 of 15
(6,930 Views)

Hello Kev,

 

Thanks fo the answer, can you please send me the vi. Since you are using DAQ Assitant i cannot see the configuration of it.

Randy @Rscd27@
0 Kudos
Message 5 of 15
(6,925 Views)

Thank you for your replies, can you PM me your email so I can send the VI?

0 Kudos
Message 6 of 15
(6,920 Views)

You upload the code here. Just as the screenshot

Randy @Rscd27@
0 Kudos
Message 7 of 15
(6,906 Views)

The VI is a little to big to upload, even compressed. I've uploaded it to dropbox, here is the link.

 

https://www.dropbox.com/s/6gjjn18rnwkvabi/adc3%20-%20Copy.vi?dl=0

0 Kudos
Message 8 of 15
(6,898 Views)

Hey Kev, 

 

Can you attach the ramp.vi I have a myDAQ here so maybe i can try to run it

Randy @Rscd27@
0 Kudos
Message 9 of 15
(6,896 Views)

ramp.vi is attached in the same post as the hardware picture I believe

0 Kudos
Message 10 of 15
(6,891 Views)