01-04-2008 04:09 AM
01-05-2008 02:56 AM
01-07-2008 01:29 PM
01-07-2008 07:42 PM
Hello Neal,
Thank you for your message. It seems I need another PCI card and I hope you can give me suggestion on the best but cheapest card available for me 🙂 My application requires the following:
1. at least 6 lines of Digital I/O for switching purpose.
2. at least 1 counter/timer (2 is better)
2. at least 2 voltage inputs. NOT current input 🙂
Can I have all of these in one PCI card? What card is it?
Cheers,
Diaz
01-08-2008
01:20 PM
- last edited on
04-24-2024
04:51 PM
by
Content Cleaner
Hello again diaz,
I did a search from our data acquisiton page using the various links under the "Find the Right Data Acquisition Device" section and came up with many results. Depending on sampling rate, bits of resolution, etc, you can narrow down your results even more. When I sorted by price, it came up with the PCI-6010, however from experience, if you want to expand or add functionality, the E series DAQ (60xx) devices are the way I would go. For the best in rates, bits, etc, the M series devices (62xx) provide all of the multifunctionality and very good specs.
We also have some low cost USB devices that may be cheaper and provide lots of functionality. I would recommend looking at those as well.
All of these use the DAQmx driver, so programming them is exactly the same (you can even use the same programs for all of these devices).
Our sales representatives (www.ni.com/contact) are great at making sure you get the best product for your application. They are very knowledgable about our wide range of hardware and are a great resource.
01-09-2008 12:02 AM
Hello Neal,
Thank you so much. Now I can generate two waveforms at 2 different channels with diff. voltage levels. This is how I do it.
For i = 0 To numElements 'this is in the generate sine wave function
data(i) = amplitude * Sin((i * 2# * Pi) * frequency * deltaT)
data2(0, i) = data(i)
data2(1, i) = data(i)
Next i
and then I replaced data(0,0) with data2(0,0) in the DAQmxErrChk DAQmxWriteAnalogF64 statement.
But I still don't understand your last sentence; " The way to make it look like different rates is to generate faster than you want and just generate the same value multiple times".
Do you mean I should set the frequency higher than the value I want (in the For loop above) ?
and then what next? what do you mean by 'generate the same value multiple times' ? and how?
Sorry, my english is limited.
Regards,
Diaz
01-09-2008 12:23 AM
01-09-2008
05:30 PM
- last edited on
04-24-2024
04:51 PM
by
Content Cleaner
Hello again Diaz,
To answer the questions in the first post:
What I was talking about with the outputting different rates has more to do with the actual generation than the for loop. The easiest way to explain this I believe is with an example, so here we go:
Say we wanted to output 2 voltage step signals (0V,1V,2V,3V,4V,etc) at different rates. The first we want to output at 1Hz and the second we want to output at 5Hz. What we would have to do is set our sample clock rate for the analog output task (with both channels in it) to 5Hz and write our two output arrays as follows:
data1=(0,0,0,0,0,1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,...)
data2=(0,1,2,3,4,...)
So what would happen is the first channel would output 0V 5 times at 5Hz and then 1V 5 times at 5 Hz, then the same for 2V, 3V, etc. (which is equivalent to outputting at 1Hz).
You have to build your data accordingly with the for loop, but the trick is in the sample rate of the actual task.
The Questions in Your Second Post:
All the differences between the USB-6221 and the PCI-6221 have to do with the bus (USB v PCI). The actual devices are the same. USB transfer is slower and does not have DMA channels like PCI does. There are some other differences, but I am sure that you can search the internet for these if you wish. If you are not doing high speed applications, this difference is relatively easy to get around. So basically, yes, you could use the USB version with your laptop and not loose much functionality.
When it comes to your two questions about the differences between the 6009 and the 6221, the differences are large. Hardware timing means that the card divides down an oscillator to control the output/input rates (when to take a sample). Software timing means that the computer polls the card for a sample each time. Hardware is far more accurate when it comes to exact sampling rates. You can also do buffered acquisition, meaning sample faster than you can transfer across the bus and store the data on memory that is on the card. You then read the data off that memory in chunks. That is why the M Series devices have much higher sampling rates.
This being said, however, choosing your sampling rate relies completely on what you are trying to read. You say you are trying to read a 200Hz signal. In order to get frequency information out of this, Nyquist Theory says you need to sample at least 2x as fast as the frequency you are trying to measure. We recommend sampling at least 10x your signal to get a better idea of shape. So you would need at least a 2kHz (2000 S/s) sampling rate.
To be sure you get exactly what you need, I will tell you again about our sales representatives (www.ni.com/contact). They are very good at figuring out exactly what you need. Most people cringe at the idea of talking to a "Sales Person", but ours are very good at figuring out what you need and giving you the best, cheapest options that will work for you.
02-20-2008 08:05 PM
02-21-2008
10:22 PM
- last edited on
04-24-2024
04:52 PM
by
Content Cleaner
Hello Diaz
If you check the specifications of the DAQPad-MIO-16XE-50 it is only supported under the traditional DAQ driver, and more the point, only versions 6.9.3 and earlier of the DAQ driver. Also this driver is only supported on Windows 2K and earlier. The PCI-6236 is only supporter under the DAQmx driver, so if you are running XP it is not even possible to install both drivers on the same computer.
Chris_K