Jump to content

Setting PXI-6509 sampling rate


kiyuna

Recommended Posts

Hey Guys,

Been using the PXI-6509 card now for a while, but came across a situation i'd never seen before. Just thought someone could either confirm or elaborate on what it is i'm seeing.

With all DAQmx read tasks you can setup Sampling Rate and the # of samples to read. So for example, rate = 10kHz, samples=10k, it should take 1 second to read the 10k samples. I dont see a problem with this. But when you get the read VI to output a waveform (Digital->Single Channel -> Multiple Samples -> Waveform), there does not appear to be any dt parameter. I.e the time between sampling points. See below.

post-26711-0-05196200-1319514221.jpg

Now from what i can tell it seems that the sampling frequency (for the 6509 card) set in MAX is ignored and the card just samples at its maximum rate which appears to be around 1MHz.

post-26711-0-19889900-1319514280_thumb.j

If i then set the dt value of the output waveform to 1uS, i can then extract the correct frequency information. The 1uS does not seem to be exact it appears to be approximate.

Even when the task set up in MAX is set to a rate of 1Hz and read 10 samples. The VI does not take 10s to complete, it finishes quite fast.

So my question is... Does the PXI-6509 card ignore the sampling rate set up in MAX and just use the maximum sampling rate of 1MHz??

Thanks for any help, it appears it does just would like someone to confirm or explain it if i'm wrong.

Link to comment

Now from what i can tell it seems that the sampling frequency (for the 6509 card) set in MAX is ignored and the card just samples at its maximum rate which appears to be around 1MHz.

Are you sure you're actually using the "task" configured in MAX, rather than creating a new task programatically? Is "BDHSIO" the name of your MAX task, or is it the name of a channel? If it is a channel, you are creating a new task with the default sampling rate.

Edited by drjdpowell
Link to comment

drjdpowell: Its definitely a task configured in MAX, p6.4 to be exact, the above code is not what we're using, its just something I quickly knocked up on my computer for a visual aid.

We tried setting up the task programatically and using the DAQmx timing vi, still no luck. We just found it interesting we couldn't change the sample rate from 1MHz.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.