Main Site Documentation

Cpu.AnalogChannel higher than 7


#1

On G400 how to use PB8 /AD9 as analog input?

Using Cpu.AnalogChannel don’t allow to go higher than Analog7.

Casting G400.PB8 into Cpu.AnalogChannel fails.


#2

@ leforban - If you want say channel 8, just cast 8 to AnalogChannel:


(Cpu.AnalogChannel)8;


#3

Thanks it works like a charm. To litgher the netmf core, enumeration should be removed then…