02-02-2016 07:48 AM
I have PCI 6212
I Set 16 analog inputs.
I have to keep the information in an 16 INPUT TO array of 16x16..
I need to read 16 time the all 16 analog input and save them.
How do I transfer the information from 16 inputs into the array?
Is it possible to read all the 16 analog inputs together?
And keep them in an array and then make another call, and save them on the next linearray?
02-02-2016 08:09 AM
03-23-2016 09:49 AM
Hey,
I wrote a program that should take 16 analog inputs and puts the data in the system.
When I connect 5V to A0, for testing.and I did not get 5 volts in the first cell array.
Anyone know why? What I have set in DAQ?
Every time I read the 16 analog inputs a0-a15, and keep them in arry .I make it 16 times. Finally received an 16 on 16 arry.
my card is pci 6221 plug to CB-68LP
03-24-2016 10:03 AM
Hi Fnachum,
Do you get 5V in every other cell except the first one?
Try running an AI example VI from NI Example Finder and see if you get the same problem. You can get to the Example Finder at Help -> Find Examples. After the Example Finder is open, click on the Browse Tab then navigate to Hardware Input and Output -> DAQmx -> Analog Input. Depending on your application, you can use the "Voltage - Continuous Input.vi" example or the "Voltage - Finite Input.vi" example. If you want to display the data in an array, just change the polymorphic DAQmx Read vi to 2D DBL.
It is also a good practice to create VIs from existing examples instead of building them from scratch, not to mention that it saves time.
There is also a KB on how to do multiple channel data acquisition: http://digital.ni.com/public.nsf/allkb/A3A05920BF915F1486256D210069BE49?OpenDocument
03-27-2016 12:47 AM
When I connect 5V occasion A0 I get all the other entries also Voltage Although the terminals are not connected to anything.
I'm starting to get a different voltage in the others analog input In range of 5-10 volts.
Maybe I should make something different settings in DAQ?
03-27-2016 08:58 AM
When you have channels with nothing connected to the inputs, you can get a condition called "ghosting" where the voltage on a connected channel seems to appear on a disconnected channel. This is due to the internal circuitry of the multiplexer in many multi-channel DAQ devices. The solution is to connect the unused channels to some low impedance voltage source within their input ranges. Often ground is used.
Searching the Forums for "ghosting" will return many, many hits.
Lynn
03-28-2016 07:39 AM
I believe this might be the article being referred to.
http://digital.ni.com/public.nsf/allkb/73CB0FB296814E2286256FFD00028DDF
Basically if the impedance's of your signals are non-ideal, and sampling too fast can cause the value of one reading, to affect the reading of another. In the past I'd do something like setup my task to sample the same physical channel twice. This would of course decrease the maximum sampling frequency. Other solutions involve adding hardware like isolation, or adjusting the impedance so this isn't as much of an issue.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord