Teledyne-lecroy Using PCIUW from C++ Code Manuel d'utilisateur Page 1

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Équipement Teledyne-lecroy Using PCIUW from C++ Code. Teledyne LeCroy Using PCIUW from C++ Code User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 3
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
Using PCIUW from a C++ Code
The PCIUW utility may be executed from within a C program code. The functions below describe how to
read, save and write back to the registers. These functions are for Microsoft C++ compilers. The
PCIUW.EXE and necessary DLLs must reside in the directory where this program is executed from.
The necessary steps are:
1- Read all devices
2- Search for the desired device in the CFG file
3- Save the information for the device to a file, by specifying the bus number and the device number in
the save command
4- Write from the file to reload the hardware
The format of the CFG file is described below to allow locating the desired device(s).
A- Description of function calls to read, save and reload devices
void CTestDlg::OnButtonRun()
{
/*run the utility to read all devices */
int ReturnCode = 0 ;
ReturnCode=WinExec("pciuw",SW_SHOW);
/*run the utility to show help dialog */
// ReturnCode=WinExec("pciuw /?",SW_SHOW);
/*run the utility to save the device configuration information of the device on BusNo = 1 and
device No = 0 */
// ReturnCode=WinExec("pciuw /s 1 0",SW_SHOW);
/* Bus number=1 and Device = 0 here are examples, to find the specific of what your device
number is search the CFG file to located your device, using the cfg file description below, after
you run the utility to read all devices. The device related information may also be located from a
command line outside of the c program and then used in the code, so long as the system
configuration does not change. */
/*run the utility to load configuration information from the last saved file into the hardware */
// ReturnCode=WinExec("pciuw / w",SW_SHOW);
if(ReturnCode < 31)
AfxMessageBox ("run command failed.");
}
B- CFG file description
PCIUW program when executed saves its configuration information in “set@@@.cfg” file. This document
describes the format of this file.
Vue de la page 0
1 2 3

Résumé du contenu

Page 1 - Using PCIUW from a C++ Code

Using PCIUW from a C++ CodeThe PCIUW utility may be executed from within a C program code. The functions below describe how toread, save and write bac

Page 2 - Type Name Len Start Address

FILE FORMATOrder Length Byte(s)1 File type label 20 "PCIUW settig File"2 Header_data 64 * 4523 ActiveDevice 4 Int4 ActivePointer 45 Counter

Page 3

__int8 PrimaryBusNo 1 92__int8 SecondaryBusNo 1 93__int8 SubordinateBusNo 1 94__int8 SecondaryLatTimer 1 95__int8 IOBase 1 96__int8 IOLimit 1 97__int1

Commentaires sur ces manuels

Pas de commentaire