FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

Addressing specific channels of a multiple channel cFP-AI-111 read

Hey everybody,
  I recently discovered what kind of overhead is involved in polling several channels on the same cFP module separately (the software has to ping the module via ethernet each time) so I've been going through my code and updating it to poll a module and pull the data needed from there.
 
  This was easy enough on all my DIs (although bit masking is something I haven't done in years), but I'm at a loss with my AIs.  If I scale them in MAX, they come out with ridiculous values.  If I don't scale them in MAX, they come out looking fairly normal, but some are still ridiculous.
 
 
  Just for clarity, the original instance was me polling AI-111-ch0, then AI-111-ch1, etc.
  Now, I poll AI-111-ch0/1/3/4/5/6 etc etc, but with ununsed channels interspersed (I didn't wire it, so don't look at me).
 
 
 
Should I set the FP I/O Point to only include the used channels, and would they then be sorted in the data array after an FP Read?  Or should I include all channels, and then index the FP Read array by channel number?  Nothing seems to be working.
0 Kudos
Message 1 of 5
(7,051 Views)
Hello Jeff,

It would make most sense to only include in the FP I/O Point the channels that you need to read.  When you say "ridiculous values", what do you mean exactly?

Kameralina

0 Kudos
Message 2 of 5
(7,014 Views)

The ridiculous values were either excessively small or excessively high (they look unscaled, or doubly scaled).

I eventually figured out the channel operation by just going around and unplugging my sensors, so the problem was solved, albeit in an ugly manner.  The pattern I noticed (I think this is correct) is that if you include channels 1,3,5,6,11,15 for example, they will be indexed 0-5 in ascending original-channel-number order.

0 Kudos
Message 3 of 5
(7,012 Views)
I would love to look into this further and see whether this is a bug in the system. 

Could you post some detailed steps to reproduce?

Kameralina

0 Kudos
Message 4 of 5
(6,990 Views)
Oh, I don't think it's a bug, I just couldn't find any documentation on how multiple specific channels would be indexed in the FPRead output array.
0 Kudos
Message 5 of 5
(6,968 Views)