Switch Matrix Sample Software Code

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

Moderator: Guido Körber

Post Reply
pcrichton
Posts: 13
Joined: Thu Jun 18, 2009 5:21 pm

Switch Matrix Sample Software Code

Post by pcrichton »

Does anyone have any sample code in c++ for using the IO warrior in the switch matrix mode? I have looked on the IO Warrior CD but I can't seem to find any. I don't know if it is me who is not looking hard enough.

Thanks, Paul.

User avatar
Christoph Jung
Posts: 628
Joined: Sun Oct 08, 2006 3:43 pm
Location: Germany / Berlin
Contact:

Re: Switch Matrix Sample Software Code

Post by Christoph Jung »

Sorry for that, but we don't have samplecode for switch matrix at the moment
But it is very simple to use.

Enable the switch matrix mode withc report-id 0x18.
Use the report-id 0x19 and IowKitReadNonBlocking() in a timer.

The other funtions like open the device and so on will be find into the other samples.
We will create a sample as soon as possible.
Abteilung: Softwareentwicklung
Folge uns auf Twitter
Follow us on twitter

pcrichton
Posts: 13
Joined: Thu Jun 18, 2009 5:21 pm

Re: Switch Matrix Sample Software Code

Post by pcrichton »

Ok, I do not have much programming experience but I will try it, if anyone has already created something that performs these operations and would be willing to share it, I would greatly appreciate it.

Regarding the timer, can you elaborate on what exactly would have to be implemented for it to read the switch inputs correctly?

Paul.

Post Reply