VB.net I/O Change program

This is the English forum for all topics related to IO-Warrior. Please post in English only

Moderator: Guido Körber

Post Reply
nl2ttl
Posts: 10
Joined: Wed Dec 06, 2006 12:08 pm

VB.net I/O Change program

Post by nl2ttl »

Is there anybody that have a example program written in vb.net what automatticly detects a I/O change on the I/O warrior?

I have 4 inputs on

port1.7
port1.6
port1.5
port1.4

And i like to detect changes on them in my program but port 1.0 to 1.3 may not be changed when reading.
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Post by Guido Körber »

And exactly what is your problem?
nl2ttl
Posts: 10
Joined: Wed Dec 06, 2006 12:08 pm

Post by nl2ttl »

How do i detect it?

What is the command line, because the sample program IO doesnt work well after rebuilding for vb.net 2003

I like to have a semple code for detecting the change on the ports.
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Post by Guido Körber »

What do you mean with "detecting it"?

You get the port status returned, then you can check if anything has changed.
nl2ttl
Posts: 10
Joined: Wed Dec 06, 2006 12:08 pm

Post by nl2ttl »

I need sample code where i can read the status automaticly and not when i click on a button.
User avatar
Christoph Jung
Posts: 670
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Post by Christoph Jung »

Why you don't use a timer-event for this job?
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter
nl2ttl
Posts: 10
Joined: Wed Dec 06, 2006 12:08 pm

Post by nl2ttl »

Ok but how do i program that for the i/o warrior, i'm new with programming on the I/O warrior.
User avatar
Christoph Jung
Posts: 670
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Post by Christoph Jung »

It is the same way like other timer-events.

Read the datasheet from the IOWarrior and start from the beginning. We don't will write your program!
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter
nl2ttl
Posts: 10
Joined: Wed Dec 06, 2006 12:08 pm

Post by nl2ttl »

i know that! it was only a question you know.
Post Reply