Hello Kelven,
Here are some links to prior discussion forum postings that you may find helpful. The first one is called: "I'm looking for code to measure SNR, SNDR, etc. using Measurement Studio, Visual Basic."
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000079470000&UCATEGORY_0=_47_%24_7_&UCATEGORY_S=0
Another one is called: "... total harmonic analysis and SINAD in measurement studio for visual basic 6.0? ...".
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000049F40000&UCATEGORY_0=_47_%24_7_&UCATEGORY_S=0
If you want example code for programming your PCI board, there are plenty of examples that ship with your driver CD. They can be found in :\Program
Files\National Instruments\MeasurementStudio\VB\Samples\DAQ\Analog Input. Also, here is a link to an example program that can be found on our website. While it does not explicitely list the PCI-6052e, the same programming technics are used for all different types of E-series boards.
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=CD1DE69534B7597AE034080020E74861&p_node=174961&p_source=External
That you for contacting National Instruments. I hope that this helps. Take care!
Aaron B.
Applications Engineering
National Instruments