Hallo,
ich besitze einen IRTrans LAN Controller XL.
Nun möchte ich mittels IRTrans.NET.dll die analogen Eingänge wie im IRTrans GUI Client abfragen.
Gibt es irgendwo eine ausführliche Beschreibung der IRTrans.NET.dll?
Gruß Frank
Moderator: marcus
private void ReadAnalog ()
{
int i;
NETWORKSTATUS stat = null;
ANALOGSTATUS analog = null;
Object obj = irt.getAnalogInput(0, 15, 0);
if (obj.GetType().FullName.Equals("IRTrans.NET.NETWORKSTATUS")) stat = (NETWORKSTATUS)obj;
if (obj.GetType().FullName.Equals("IRTrans.NET.ANALOGSTATUS")) analog = (ANALOGSTATUS)obj;
if (stat != null) label1.Text = stat.message;
if (analog != null)
{
label1.Text = " ";
for (i = 0; i < 4; i++)
{
if (analog.mode[i] != 0)
{
label1.Text = label1.Text + analog.value[i] + " ";
}
else
{
label1.Text = label1.Text + "N/A ";
}
}
}
}
Return to Software / Installation
Users browsing this forum: No registered users and 12 guests