ICP DAS USA PCI-1002L User Manual page 61

Pci-1002 series card 12-bit, 110 ks/s or 44 ks/s multi-function board version
Hide thumbs Also See for PCI-1002L:
Table of Contents

Advertisement

PCI-1002 Series Card
12-bit, 110 kS/s or 44 kS/s Multi-function Board
outp(wBaseAddr+3*4,0x80);
l=inp(wBaseAddr+2*4);
h=inp(wBaseAddr+2*4);
for (count=32767;count>0;count--)
{
outp(wBaseAddr+12,0x80);
l=inp(wBaseAddr+8);
h=inp(wBaseAddr+8);
if (h>=0x80) return NoError;
}
return TimeOut;
}
//--------------------------------------------------------
void AdPolling(UCHAR channel, UCHAR gain, WORD delay)
{
outp(wBaseAddr+0x18,0);
outp(wBaseAddr+0x10,channel);
outp(wBaseAddr+0x14,gain);
P1002_Delay(delay);
outp(wBaseAddr+0x1c,01);
}
void SetupTimer(WORD wChannel, WORD wCoef)
{
WORD
cmd;
wChannel=wChannel&0x03;
cmd=0x34+(wChannel<<6);
outpw(wBaseAddr+3*4, cmd);
outp(wBaseAddr+wChannel*4, (UCHAR)(wCoef&0xff));
outp(wBaseAddr+wChannel*4, (UCHAR)(wCoef>>8));
}
//===================================================
void main()
{
int i,j;
WORD wBoards,wRetVal,wPLX;
WORD Drdy,wAdData=0;
char c;
/* latch counter_2 */
/* delay starting two CLKs */
/* latch counter_2 */
// Select Mode 0
// AD software trigger
User Manual, Ver. 3.0, Jun. 2018, PMH-015-30, Page: 60

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pci-1002hPci-1002luPex-1002hPci-1002huPex-1002l

Table of Contents