You must be logged in to reply.

Page 1 of 1 out of 4 messages.

G120 E Analog inputs not working

1 like
Posted 2yr ago
by Dig Kleppe | Newbie | 150 exp
Posted 2yr ago
by Dig Kleppe | Newbie | 150 exp
Hi
On my G120E all analog inputs except analog 1 are reading zero, no 1 full scale.
The same "program" on a EMX is ok.
The voltage on P0_12 is 1.5V.
public class Program
{
public static void Main()
{
double x;
// AnalogInput Ain = new AnalogInput((Cpu.AnalogChannel)6);
// AnalogInput Ain = new AnalogInput(GHI.Pins.G120E.AnalogInput.P0_12);
AnalogInput Ain = new AnalogInput(GHI.Pins.EMX.AnalogInput.IO45);
while (true)
{
x = Ain.Read();
Thread.Sleep(100);
}
}
}
Am I missing something?
Dig
Reply #1 — Posted 2yr ago
by John_ghielectroncs | Employee
Reply #1 — Posted 2yr ago
by John_ghielectroncs | Employee
@Dig Kleppe - Do you have a G120E Dev Board or FEZ Spider II you can try your code on to verify it is not an issue in your design?
Reply #2 — Posted 2yr ago
by mhardy | Junior | 590 exp
Reply #2 — Posted 2yr ago
by mhardy | Junior | 590 exp
Was this resolved?

I have seen similar things with the G120.
It is totally intermittent and seems like a power/G120 boot-up race condition or something.

Anyway I will power-up the device, and only sometimes do my analogs read 0.
To fix this I can reboot the G120 (not power cycle) and the analogs come back.

Any idea on how to fix?
Reply #3 — Posted 2yr ago
by John_ghielectroncs | Employee
Reply #3 — Posted 2yr ago
by John_ghielectroncs | Employee
@mhardy - We have not been able to reproduce this ourselves yet unfortunately.

Page 1 of 1 out of 4 messages.

You must be logged in to reply.