VB.NET read problem

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 read problem

Post by nl2ttl »

I have a problem with reading from the IO Warrior 24

When i use the example software (converted to vb.net 2003) after one read the software hangs.

Also after reading the datasheet and program it by myself:

Res = IowKitRead(iowHandles(0), 0, data(0), N)

The software will hang, is there somebody who have a working read IOW24 in vb.net?
Guido Körber
Site Admin
Posts: 2856
Joined: Tue Nov 25, 2003 10:25 pm
Location: Germany/Berlin
Contact:

Post by Guido Körber »

The software does not hang, it waits for new data from the IO-Warrior which comes only if there is a change of status on the ports.
nl2ttl
Posts: 10
Joined: Wed Dec 06, 2006 12:08 pm

Post by nl2ttl »

after reading the datasheet i still don't know how to handel a:

IowKitReadNonBlocking
IowKitReadImmediate

is there somewhere a simple example code for vb.net to auto read the imputs?
User avatar
Christoph Jung
Posts: 670
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Post by Christoph Jung »

Read the dokumentation about the IOWKIT.DLL
There will be explain all functions of the DLL
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter
nl2ttl
Posts: 10
Joined: Wed Dec 06, 2006 12:08 pm

Post by nl2ttl »

" after reading the datasheet i still don't know how to handel :"

yes but there is no explenation for vb.net and thats the problem, i don't ask to write my program i only ask for a little bit of help.
User avatar
Christoph Jung
Posts: 670
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Post by Christoph Jung »

I don't know so much about VB. But its the sam way like "IowKitRead()".
you need the same parameter but if you use "IowKitReadNonBlocking()", you may do this with if.

The sample-code in the IOWKIT.DLL shows, how it works. And i dont think, thats so different with VB
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter
Post Reply