The header file called simseny9112.h is provided for the use of the simulator on software developed in Borland C++ Builder 1.0, 3.0, 5.0 and 6.0 for the ADLink PCI-9112 data acquisition card.
The following list includes the functions of the Windows library for the PCI-9112 that currently supports the simulator.
W_9112_Initial()W_9112_DO()W_9112_DI()W_9112_DI_Channel()W_9112_DA()The simulator supposes a reference voltage of -5.0 v. Assigning other values to the variable simseny_9112_DA_Reference you can obtain other tension reference.
W_9112_AD_Set_Channel()W_9112_AD_Set_Range()W_9112_AD_Set_Mode()Only mode AD_MODE_0 is supported.
W_9112_AD_Soft_Trig()W_9112_AD_Aquire()To be able to use the simulator with a program developed with Borland C++ Builder for the PCI-9112 card it is necessary to include the simseny9112.h header file immediately after the header file 9112.h provided with the card. For example:
#include <vcl.h>
...
#include "9112.h"
#include "simseny9112.h"
Verify that the module also includes the header file vcl.h.
This header file only can be included once in the application, for this reason will be a necessary that all DAQ card functions are in a unique module.
To develop applications in Borland C++ Builder for the PCI-9112 card it is necessary that the software drivers of the card has been installed previously. Otherwise, the application won't be able to be compiled and/or one won't be able to execute because the drivers are required.
You can avoid the necessity to install these drivers substituting in the project the header file 9112.h with the 9112_sin.h file provided with the simulator.
When making this change, the application doesn't need the drivers of the card, but it will be unable to use the card in the event of being executed in a computer that has this card.
This solution is ideal for Windows 2000 and Windows XP.