I have look on the forum previous question but I have not find "How can I read the analog input 0-3 from Mesa 7I77" I have probably missed it, can someone point me in the right direction. I looked on the gpio, and on the pins derived out of the 7I77.0 but I only can see the digital true or false state. How I supposed to see the voltage level?
I think to be able to read the inputs as analog you have to have the smart serial mode for that part of the card set to 1 or 2. (the default is 0). So unless you've changed that you won't see it.
I've never done this myself, but I think you need to change this line in your hal file
loadrt hm2_pci config=" num_encoders=4 num_pwmgens=0 num_3pwmgens=0 num_stepgens=0 sserial_port_0=000xxxxx "
to something like this
loadrt hm2_pci config=" num_encoders=4 num_pwmgens=0 num_3pwmgens=0 num_stepgens=0 sserial_port_0=020xxxxx "
I am not sure which of the 3 zeros need to be changed to a 2.