Supporting Visual Studio on Windows
Posts: 5
Joined: Sun Sep 04, 2011 3:57 am


Postby mrcw » Tue Sep 13, 2011 9:38 am

hi I have a 1135 connected to ip 0 of an 8/8/8. How would I write that e.g voltage0.text = ?????

King of the Lab
Posts: 476
Joined: Fri Mar 06, 2009 12:42 pm
Location: Calgary, Canada

Re: 1135

Postby erik » Tue Sep 13, 2011 9:55 am

After you set up the ifkit object, for polling you would get the value using something like

Code: Select all

int val = ifkit.sensors[0].Value;

Alternatively, if you are using events, you can get the data in the EventHandler by

Code: Select all

if(e.Index ==0)
    val = e.Value;

Check the 1135 Product Manual for the formula on how to convert 'val' to the measured voltage of the 1135.

Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 2 guests