CircuitGizmos

Electronic Products for Creative Minds

  • Home
  • Gizmo Store/Products
  • Documentation/Datasheets
  • Projects/Libraries
  • GizmoBlog
  • Services/Contact
    • Design
    • Contact Gizmo!
  • Your Gizmo Cart
    • Your Account

November 2, 2009 by robert Leave a Comment

If your language can call a DLL, you can use the U401 or U421

On the Liberty BASIC Community Forum was a posting asking:

Has anyone used LB to interface to USBmicro I/O modules see http://usbmicro.com/
RobotBasic & VB provide this functionality

The moderator “Rod” replied:

If I take the short VB example listed on the web page it would convert like this.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
'open the .dll
Open "USBm.dll" for dll as #micro
 
'find device
CallDll #micro, "USBm_FindDevices", w as long, Result as long
if w then
    print "Device number ";w;" is open"
else
    print "Device not found"
    end
end if
 
'initiate the ports on device w
CallDll #micro, "USBm_InitPorts", w as long, Result as long

Easy peasy.

Filed Under: Uncategorized Tagged With: programming, u401, u421

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

A Ton of Documentation

Open all | Close all

Projects made by Gizmo, Friends, and Members

open all | close all

Recent GizmoBlog Musings

  • Altair 8800 using a ColorMax!
  • Re-energizing the ColorMax, Pt. 3

Visit us!

  • Facebook

Electronic Products for Creative Minds

CircuitGizmos is your source for electronic products that help you create your embedded projects. Here at CircuitGizmos.com you will find a friendly store filled with creative products and all of the documentation that you need to use these gizmos.

We create devices that we believe make electronics fun, but we also know that our products are used for professional designs. For decades we have designed products for commercial, military, and medical industries. Our gizmos here are great for engineers and hobbyists alike.

Copyright © 2008+ CircuitGizmos, L.L.C. All rights reserved

Image already added

Recently Viewed Products

Copyright © 2021 · Generate Pro Theme on Genesis Framework · WordPress · Log in