Examples of programs with source code in C# und VB, using the "Exchange.dll".

The dll-file and the executable file must be in the same folder.

If "Visual Studio" is not installed on your PC, the following additional files
must be in the folder of the executable file: 
 
 msvcp90.dll
 msvcr90.dll
 msvcm90.dll
 Microsoft.VC90.CRT.manifest

The "Exchange.dll" contains 20 exported functions with which data
can be read out from the Caliper2PC Software into programs developed on your own.

***************************************************************
*Firmware version 3.37 and above:
*
* GetChannel1 - data string P1
* GetChannel2 - data string P2
* GetChannel3 - data string P3
* GetChannel4 - data string P4
* GetChannel5 - data string P5
* GetChannel6 - data string P6
* GetSensor1 - data string tachometer1
* GetSensor2 - data string tachometer2
*
*I/O-ports:
* GetPort1 - read input port status P1 (1=on / 0=off)
* GetPort2 - read input port status P2 (1=on / 0=off)
* GetPort3 - read input port status P3 (1=on / 0=off)
* GetPort4 - read input port status P4 (1=on / 0=off)
* GetPort5 - read input port status P5 (1=on / 0=off)
* GetPort6 - read input port status P6 (1=on / 0=off)
*
* SetPort1 - set output port P1 (1=on / 0=off)
* SetPort2 - set output port P2 (1=on / 0=off)
* SetPort3 - set output port P3 (1=on / 0=off)
* SetPort4 - set output port P4 (1=on / 0=off)
* SetPort5 - set output port P5 (1=on / 0=off)
* SetPort6 - set output port P6 (1=on / 0=off) 
****************************************************************

****************************************************************
*Firmware version below 3.37:
*
* GetChannel1 - data string P1
* GetChannel2 - data string P2
* GetChannel3 - data string P3
* GetChannel4 - data string P4
* GetChannel5 - data string P5
* GetChannel6 - data string P6
* GetSensor1 - data string tachometer1
* GetSensor2 - data string tachometer2
*
* GetPort1 - read input port status P1 (1=on / 0=off)
* GetPort2 - read input port status P2 (1=on / 0=off)
* GetPort3 - read input port status P3 (1=on / 0=off)
* GetPort4 - read input port status P4 (1=on / 0=off)
* GetPort5 - read input port status P5 (1=on / 0=off)
* GetPort6 - read input port status P6 (1=on / 0=off)
*
* SetPort1 - set device on P1 Zero
* SetPort2 - set device on P2 Zero
* SetPort3 - set device on P3 Zero
* SetPort4 - set device on P4 Zero
* SetPort5 - not implemented in hardware
* SetPort6 - not implemented in hardware
****************************************************************


Source: www.caliper2pc.de




*****************************************************************************************
************************ - DEUTSCH - ****************************************************
*****************************************************************************************

Beispielanwendungen mit Quellcode in C# und VB, zur Verwendung der "Exchange.dll".

Die dll muss sich im gleichen Ordner wie die ausfhrbare exe-Datei befinden.

Ist "Visual Studio" nicht auf dem Rechner installiert, mssen sich folgende Dateien 
zustzlich im Ordner der aufhrbaren exe-Datei befinden:
 
 msvcp90.dll
 msvcr90.dll
 msvcm90.dll
 Microsoft.VC90.CRT.manifest

Die "Exchange.dll" beinhaltet 20 exportierte Funktionen, mit denen Daten aus der 
Caliper2PC Software in eine eigene Anwendung eingelesen werden knnen:

***************************************************************
*Firmware version 3.37 und hher:
*
* GetChannel1 - Datenstring P1
* GetChannel2 - Datenstring P2
* GetChannel3 - Datenstring P3
* GetChannel4 - Datenstring P4
* GetChannel5 - Datenstring P5
* GetChannel6 - Datenstring P6
* GetSensor1 - Datenstring Drehzahlmesser1
* GetSensor2 - Datenstring Drehzahlmesser2
*
*I/O-ports:
* GetPort1 - Schaltzustand Inputport Taster P1 (1=An / 0=Aus)
* GetPort2 - Schaltzustand Inputport Taster P2 (1=An / 0=Aus)
* GetPort3 - Schaltzustand Inputport Taster P3 (1=An / 0=Aus)
* GetPort4 - Schaltzustand Inputport Taster P4 (1=An / 0=Aus)
* GetPort5 - Schaltzustand Inputport Taster P5 (1=An / 0=Aus)
* GetPort6 - Schaltzustand Inputport Taster P6 (1=An / 0=Aus)
*
* SetPort1 - Outport setzten P1 (1=on / 0=off)
* SetPort2 - Outport setzten P2 (1=on / 0=off)
* SetPort3 - Outport setzten P3 (1=on / 0=off)
* SetPort4 - Outport setzten P4 (1=on / 0=off)
* SetPort5 - Outport setzten P5 (1=on / 0=off)
* SetPort6 - Outport setzten P6 (1=on / 0=off) 
*
****************************************************************

****************************************************************
*Firmware version vor 3.37:
*
* GetChannel1 - Datenstring P1
* GetChannel2 - Datenstring P2
* GetChannel3 - Datenstring P3
* GetChannel4 - Datenstring P4
* GetChannel5 - Datenstring P5
* GetChannel6 - Datenstring P6
* GetSensor1 - Datenstring Drehzahlmesser1
* GetSensor2 - Datenstring Drehzahlmesser2
*
* GetPort1 - Schaltzustand Taster P1 (1=An / 0=Aus)
* GetPort2 - Schaltzustand Taster P2 (1=An / 0=Aus)
* GetPort3 - Schaltzustand Taster P3 (1=An / 0=Aus)
* GetPort4 - Schaltzustand Taster P4 (1=An / 0=Aus)
* GetPort5 - Schaltzustand Taster P5 (1=An / 0=Aus)
* GetPort6 - Schaltzustand Taster P6 (1=An / 0=Aus)
*
* SetPort1 - Gert an P1 Null setzen 
* SetPort2 - Gert an P2 Null setzen 
* SetPort3 - Gert an P3 Null setzen 
* SetPort4 - Gert an P4 Null setzen 
* SetPort5 - nicht in der Hardware implementiert
* SetPort6 - nicht in der Hardware implementiert
*
*****************************************************************

 
Alte DLL: 
 GetChannel1 - Datenstring P1
 GetChannel2 - Datenstring P2
 GetChannel3 - Datenstring P3
 GetChannel4 - Datenstring P4
 GetChannel5 - Datenstring P5
 GetChannel6 - Datenstring P6
 GetSensor1 - Datenstring Drehzahlmesser1
 GetSensor2 - Datenstring Drehzahlmesser2
 GetCapture1 - Schaltzustand Taster P1 (1=An / 0=Aus)
 GetCapture2 - Schaltzustand Taster P2 (1=An / 0=Aus)
 GetCapture3 - Schaltzustand Taster P3 (1=An / 0=Aus)
 GetCapture4 - Schaltzustand Taster P4 (1=An / 0=Aus)
 GetCapture5 - Schaltzustand Taster P5 (1=An / 0=Aus)
 GetCapture6 - Schaltzustand Taster P6 (1=An / 0=Aus)
 SetZero1 - Gert an P1 Null setzen 
 SetZero2 - Gert an P2 Null setzen
 SetZero3 - Gert an P3 Null setzen
 SetZero4 - Gert an P4 Null setzen

Quelle: www.caliper2pc.de