VB Calls to Phidgets21.dll - Stp 1067 - Enc 1057 - Ikit 1012

Legacy support with Phidget21
Posts: 11
Joined: Sat Feb 14, 2015 4:47 pm

VB Calls to Phidgets21.dll - Stp 1067 - Enc 1057 - Ikit 1012

Postby garyb » Sun Jul 26, 2015 8:47 am

This program talks directly from VB6 to Phidget21.dll.

It does not use the Phidgets Manager, Phidget21COM or the Phidget ActiveX controls. Instead, I'm calling the DLL functions in Phidget21.dll. Phidget21.dll must be in the same folder as the program exe or in C:\Windows\System32.

Function: Read the position of an Encoder (if attached), the state of I/O on an Interface Kit (if attached), and the position of a Stepper Drive (if attached).

I have only translated the PHIDGET ENCODER (1057), the PHIDGET 0/16/16
INTERFACE KIT (1012), and the PHIDGET STEPPER (1067).

To use with other modules, you must first create additional VB calls. These can be
translated from the phidget21.h and phidget21.c files in the C++ samples. I have included the 'C' code along with the VB translations in the code as a guide. This should also work with VB.NET.
Phidget Test 27.zip
(393.21 KiB) Downloaded 215 times
Last edited by garyb on Thu Sep 08, 2016 7:59 am, edited 2 times in total.

Return to “VB 6.0”

Who is online

Users browsing this forum: No registered users and 1 guest