Search found 12 matches
- Mon Sep 20, 2010 12:51 pm
- Forum: IO-Warrior English
- Topic: IowKitCloseDevice
- Replies: 1
- Views: 12763
IowKitCloseDevice
In the documentation for IowKitCloseDevice it state that: void IOWKIT_API IowKitCloseDevice(IOWKIT_HANDLE devHandle); ... As of dynamic library version 1.4 the function ignores the parameter completely. Since it closes all opened IO-Warriors anyway, there is no real need to check if the parameter is...
- Mon Sep 20, 2010 12:32 pm
- Forum: IO-Warrior English
- Topic: Multiple IOW24's
- Replies: 5
- Views: 16376
Re: Multiple IOW24's
Is it possible to access different IOWarriors from separate programs on the same machine?
- Wed Aug 11, 2010 12:28 pm
- Forum: IO-Warrior English
- Topic: Multiple IOW24's
- Replies: 5
- Views: 16376
Re: Multiple IOW24's
thanks, the examples where helpful, is there a version of iowkit.lib in OMF format as i am using Borland Turbo C++ and I think that converting the .lib from COFF to OMF may have impaired the functionality. I can get it to work as i want in VC++ 2010 but i need to use it with borland.
- Mon Aug 09, 2010 5:56 pm
- Forum: IO-Warrior English
- Topic: Multiple IOW24's
- Replies: 5
- Views: 16376
Multiple IOW24's
Hi, Im have trouble trying to use multiple IOW24's, i have two connected and am trying to acquire the serial numbers from each device, i used the SimpleIIC example as a guide but both devices are returning the same number. WCHAR s[9]; IOWKIT_HANDLE ioHandle; IOWKIT_HANDLE handles[16]; IOWKIT_HANDLE ...
- Tue Jul 20, 2010 4:45 pm
- Forum: IO-Warrior English
- Topic: IowKitWrite
- Replies: 13
- Views: 24321
Re: IowKitWrite
I have read through the data sheet but it didn't help much, it seems more directed to the electrical side of things, and I couldn't get the SimpleIo example to work, I simply want to write 1 byte to my device: DeviceId = 40; Address = 1; Data = 0 - 255; i have been using the following code: for(int ...
- Thu Jul 15, 2010 1:00 pm
- Forum: IO-Warrior English
- Topic: IowKitWrite
- Replies: 13
- Views: 24321
Re: IowKitWrite
After tracing through the source code for Simple-IIC i got it work with this code: IOWKIT_SPECIAL_REPORT report; memset(&report, 0, IOWKIT_SPECIAL_REPORT_SIZE); report.ReportID = 2; report.Bytes[0] = 196; report.Bytes[1] = 80; report.Bytes[2] = 40; report.Bytes[3] = 01; report.Bytes[4] = 255; UL...
- Thu Jul 15, 2010 12:22 pm
- Forum: IO-Warrior English
- Topic: IowKitWrite
- Replies: 13
- Views: 24321
Re: IowKitWrite
I downloaded the Visual Studio 2010 trail and traced through the code, when using IOWKIT_SPECIAL_REPORT i noticed that report.Bytes[2]-[4] contain my 40,1,255. But what do ReportID, Bytes[0] and Bytes[1] represent? report.ReportID = 0x02; report.Bytes[0] = 0xC1 + send; report.Bytes[1] = adresse;
- Thu Jul 15, 2010 11:32 am
- Forum: IO-Warrior English
- Topic: IowKitWrite
- Replies: 13
- Views: 24321
Re: IowKitWrite
It compiles with this but still nothing happening.
- Thu Jul 15, 2010 11:06 am
- Forum: IO-Warrior English
- Topic: IowKitWrite
- Replies: 13
- Views: 24321
Re: IowKitWrite
I am trying to use the device to control a light source, to turn the light on I need to send 255 to it so I entered this to the example in hex and it worked, so the address is correct, I would step through the example source code to find my answer but I am using Visual Studio Express and cannot comp...
- Thu Jul 15, 2010 10:05 am
- Forum: IO-Warrior English
- Topic: IowKitWrite
- Replies: 13
- Views: 24321
IowKitWrite
I am having trouble trying to write to a device, i tried using the example in the Help Doc- ioHandle = IowKitOpenDevice(); ULONG numPipe=1; IOWKIT24_IO_REPORT report; report.ReportID = 40; report.Value = 255; ULONG rc=IowKitWrite(ioHandle,numPipe,&report,IOWKIT24_IO_REPORT_SIZE); returning this ...
- Tue Jul 13, 2010 5:00 pm
- Forum: IO-Warrior English
- Topic: SDK
- Replies: 2
- Views: 13976
Re: SDK
Thanks for the help, I included windows.h and it worked.
- Fri Jul 09, 2010 12:35 pm
- Forum: IO-Warrior English
- Topic: SDK
- Replies: 2
- Views: 13976
SDK
I have started trying to use the sdk, but when I try to compile my code about 140 errors are returned from iowkit.h, I am running VC++ Express 2008, I have included the .lib file in the linker and added the .lib, .h and .dll files to my project directory, any help getting around this would be great....