BradClifford Posted February 19, 2015 Share Posted February 19, 2015 This I/O board is pretty sweet and seems to have some great capabilities if they can be accessed in a more "OEM" manner than I realized when I bought it. Details can be found at: http://accesio.com/go.cgi?p=/104/104-idio-16.html (picked it up on EBay for $45. I am planning to use my new Acces USB-IDIO-16 to control the switching of my HO model train hump yard layout. I am wanting to use the USB interfacing of this card to; 1) resd a RFID reader (with data going into Excel 2013 at the moment (to determine the cars making up the train) 2) use the IDIO-16 to control the switches and 3) monitor the photoeyes. ASSEC's reply for help: The easiest way to control a single relay from any language or environment is "DIO_Write1()". If you only have one USB device you're connected to, just use the "diOnly" constant (-3, or 0xFFFFFFFD) for the "Device Index" parameter. This leaves the call looking like this: Status = DIO_Write1(&hFFFFFFFD, relayNumber0to15, TrueOrFalse); Which translated to:(I cut out some details, but you get the idea (that I need some guidance). Sub IOCard() Public Declare Function DIO_Write1 Lib "AIOUSB" Alias "VBDIO_Write1" (ByVal DeviceIndex As Long, ByVal BitIndex As Long, ByVal Data As Boolean) As Long Status = DIO_Write1(&HFFFFFFFD, 0, True) This avenue isn't going too well, various Windows errors, so after more reading, I thought to maybe try the low-lo-level control functionality ASEC supports. After asking them about this, I got the flowing reply today: Windows doesn't provide any method of making a "USB control transfer", which is necessary to use the low level interface. Well, in my blissful ignorance, I am thinking that Assec might just be the ticket to the fast track to success but I'm still digging and have decided to share my thoughts with all of you here on this sight. So, any thoughts (or questions for clarity)? Brad Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 19, 2015 Moderators Share Posted February 19, 2015 BradClifford,Welcome to the AutoIt forums. questions for clarity?Is there actually an AutoIt question in all of that? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
BradClifford Posted February 20, 2015 Author Share Posted February 20, 2015 Yes, My questions are these; 1) Does anyone out there have any experience with this board and can you help me to get it to work? 2) Can AutoIT be used to communicate with a USB port at a Low-Level? Thanks for asking, Brad Link to comment Share on other sites More sharing options...
Danyfirex Posted February 20, 2015 Share Posted February 20, 2015 (edited) I think that device has a library that can be used with autoit. I see the manual and says this in C UInt32 GetDeviceByEEPROMByte(Byte Data); so with autoit you could do something like this: DllCall("yourlibary","UINT","GetDeviceByEEPROMByte","BYTE",$Data) Edited February 20, 2015 by Danyfirex Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Danyfirex Posted February 20, 2015 Share Posted February 20, 2015 (edited) I think I'm wrong in my above answer. so I still think you can use autoit. Look Chapter 5 here as I can read. when you install the sdk/driver you should have some examples(vb6,C,delphi,vbet,C#) Just traslate it to autoit. I've read bad. Autoit can not work in low level. so instead use the win32 library. Saludos Edited February 20, 2015 by Danyfirex Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
BradClifford Posted February 20, 2015 Author Share Posted February 20, 2015 Thanks Danyfirex, I'll dig into this more tonight. I got another reply from the manufacturer as follows: I think it might be straightforward if you use the .NET wrapper dll we created a while back, AIOUSBNet.dll, instead of using AIOUSB.dll directly. I'll try to put all this together "with a little help from my friends" and see what happens ..... Cheers & thx again for the help B Link to comment Share on other sites More sharing options...
LarsJ Posted February 21, 2015 Share Posted February 21, 2015 Maybe you can get some ideas from USB Interface Relay Dllcall help. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now