Thanks a lot for your prompt response. It is working now.
A quick question: Many methods in the API (especially InterfaceKitPhidget) have the "index" as an argument. In my setup, the pH sensor is attached to port number 1 of the analog inputs on the 1018.
I am guessing that wherever I need a value for index, in my setup, I will have to use a value of "1" (I know its an integer).
Question: Is it possible to obtain this value from a method or does it need to be "hard-coded" in the program?