Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add channels and additional 9205 in a CRIO9012 data logging app.?

I'm using the NI9205 Advanced IO host.vi example to log data using my CRIO 9012 controller: works OK for eight differential channels. How can I add and access additional differential input channels? ALso need to add second NI9205 module.
0 Kudos
Message 1 of 10
(5,368 Views)
Hi Robbl,

To add additional channels to the existing example you simply have to initialize more values in the AI Channel Settings array in the Host VI. In other word, just fill in the information for AI Channel Number, the Input Range, and the terminal mode for every channel you want (ie.. 0 through 15). This makes the array bigger and the changes should propagate through the entire program allowing you to acquire from all the channels specified in the array.

As far as adding an additional module you will have to add the same code there is for one module again but specifically for the second module. The best way to do this is to create a SubVI and modify it so that one SubVI is referenced to the first module and the other one to the second module. Please be aware that you have to do this on both the FPGA and the HOST side.

Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 10
(5,337 Views)

Is it channel 0-15 for 16 channels of differential or is it 0-7 and 16-23 as the AI Channel Number for the settings cluster?

I am trying to configure my 9205 and the settings seem to be working for the first 8 channels (0-7) but when I tried numbering from 0-15 they did not work for the channels ACH16-23.

According to the pinouts the pin assignments are as follows for the differential pairs:

AI0 (AI 8-)

AI1 (AI9-)

AI 2 (AI 10-)

AI 3 (AI 11-)

AI 4 (AI 12-)

AI 5 (AI 13-)

AI 6 (AI 14-)

AI 7 (AI 15-)

AI 16 (AI 24-)

AI 17 (AI 25-)

AI 18 (AI 26-)

and on to the end.

Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 3 of 10
(5,240 Views)
 Well I have tried consecutive numbering and splitting it 0-7 and 16-23 and still my 9th channel (pins 16 and 23) return only 0.9 volts when I am applying 5V.  The first channels report the correct voltage.
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 4 of 10
(5,237 Views)
RVallieu,

As you mentioned on your previous post, for differential channels it is always 8 channels appart (ie. 0+ and 8- or 15+ 23-). I am not sure why you have paired 16 and 23. Your 9th channel should be 16+ and 24-.
Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 5 of 10
(5,213 Views)

The physical card is labeled 0-7 and then picks up at 16-23.

Indicating that ACH 16 and 24 are differential channel 8, etc.  I mistyped above.  I don't actually have to set the negative channel in the configuration.

When I write to the FPGA Method for configuring the Analog Input 9205 module the inputs are AI channel and Terminal Mode

Do I need to send AI channel 0-31 and Also Differential to the Method?

 



Message Edited by RVallieu on 04-23-2008 03:32 PM
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 6 of 10
(5,210 Views)
I am not sure I understand your last question very clearly but the configuration for the channels is set in an array in the RT-controller side. Please look at the atthached screenshot.

Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 7 of 10
(5,196 Views)
That is what I am doing (or believe I am doing) with the settings on the unit.
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 8 of 10
(5,177 Views)
Ryan,

Are you still having problems with this set-up?


Eli S.
National Instruments
Applications Engineer
0 Kudos
Message 9 of 10
(5,159 Views)
I moved my last channel down to be in the range of 0-7 and gave up on the Differential 16+, so yes.
Ryan Vallieu CLA, CLED
Senior Systems Analyst II
NASA Ames Research Center
0 Kudos
Message 10 of 10
(5,136 Views)