• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

How can I read the state of external mechanical switches from within a Visual Basic Macro?

I wish to read the state of several mechanical switches from within a Visual Basic macro running within MS Word or Excel on a laptop, preferable using a cable or IO module with a USB interface.  Can this be done using a library function to access my DLP-IO8-G from a VB macro, or do I need another physical interface?  
1 Solution
PhuleAuthor Commented:
Answer was generic, listing far more lines of code than I actually needed for my particular requirements.  

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now