From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Daq setup for high frequency voltage measurement HELP!!!!

I have a PCI-6251 card in my PXI, that i have interfaced with the old trusty SCB-68. 

 

I would like to measure with great accuracy, a sine wave on TWO channels. The sine wave will sweep in frequency from 1khz to 20 khz. 

 

This card can do 1Ms/sec in multichannel mode.  So 2 channels is 500K samples per channel/second. At 20 Khz, thi should give me 25 samples per period at 20 khz. I dont see this at all. I am aliasing like crazy. 

 

Is my VI too slow? Have I misunderstood how to set up the DAQ assistant? I just want to get the most samples possible, so I can analize this signal. 

 

I have attached my crappy VI, If somebody could help me out I would really appreciate it. 

 

 

0 Kudos
Message 1 of 8
(3,191 Views)

Do not use N Samples for you mode.  You will need Continuous Samples.  And then I'm willing to bet you will be getting buffer overflow errors.  Those will come about because saving data to disk is horribly slow and you will not read your data fast enough for the DAQ.  If you don't need the file type to be a tab delimted text file, use the TDMS Logging feature in the DAQ Assistant.  This will stream your data straight to a TDMS file (which can be opened in Excel with the plugin), so you won't have to do a thing to format and save to disk.  Just read and show the data on your charts.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 8
(3,179 Views)

Ok. well i dont have the TDMS on my DAQ, but I am downloading the newest version now. Will i have to rewrite the VI for this? Will I be able to run this vi on other computers with older versions of MX?

0 Kudos
Message 3 of 8
(3,126 Views)

What version of DAQmx are you using?  The TDMS Logging came out with DAQmx 9.0.  Since you are using LabVIEW 2009, the newest version of DAQmx you can use is 9.7.0


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 8
(3,116 Views)

Ugh. I just spent 40 minutes downloading 9.0 and it says I have a newer version already installed?  

 

0 Kudos
Message 5 of 8
(3,105 Views)

How do I acess the TDMS features?

0 Kudos
Message 6 of 8
(3,103 Views)
You should have checked MAX before starting to download such an old version.

Help> Find Examples should have some TDMS streaming examples.
0 Kudos
Message 7 of 8
(3,095 Views)

Be sure to put a default value of >0 in your wait control.  Are you expecting the user to control the acquisition rate or the DAQ assistant?  If the user is controlling it then I would set the DAQ assistant for "1 Sample".  If the other way around get rid of the wait.

 

If you are wanting to sample at 500K then your sampling frequency needs to be set to 500K not 100K in the DAQ Assistant??  Better to find timing issue early on.  You might find that you really can't get all the way up to 500K with two channels.  Also like crossrulz suggested you need to change to continous mode.

 

It appears that you need to set up a Queue for your data.  I would suggest looking at the Continuous Logging and Measurement Template.  I think that would fit better to the system that you are trying to design.

0 Kudos
Message 8 of 8
(3,079 Views)