18.01.2013 Aufrufe

Wechselwirkungen sehr langsamer hochgeladener Ionen mit einer ...

Wechselwirkungen sehr langsamer hochgeladener Ionen mit einer ...

Wechselwirkungen sehr langsamer hochgeladener Ionen mit einer ...

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

printf ("SoftwareInit\n\n");<br />

if (err = SWInit ())<br />

return err;<br />

printf ("Including 98C-Board(s)\n\n");<br />

if (err = Include98C ())<br />

return err;<br />

printf ("Including 20003M-2 Boards\n\n");<br />

if (err = Include3M ())<br />

return err;<br />

printf ("Assigning the 1st slot and segment\n\n");<br />

if (err = SlotAssign (SLOTISA_0, SEGMENTISA_0))<br />

return err;<br />

printf ("Assigning the 2nd slot and segment!\n\n");<br />

if (err = SlotAssign (SLOTISA_1, SEGMENTISA_1))<br />

return err;<br />

printf ("Hardware initialization\n\n");<br />

return HWInit ();<br />

}<br />

void<br />

ini_digital (unsigned *outbits)<br />

{<br />

int i;<br />

int err;<br />

}<br />

/* initializing 2 CLAM output 8-Bit ports on 1st board to initial data ’0’ */<br />

/* port 0: CLAM energy ( lower 8 Bits ) */<br />

/* port 1: CLAM energy ( upper 7 Bits ) and E_TIMES_2 bit */<br />

printf ("Writing initial data to DIO ports:\n");<br />

printf ("1st BOARD,PORT 0\n");<br />

err = DIOWrite (SLOTISA_0, ONBOARD, PORT_0, INI_DIO_DATA);<br />

ErrorRoutine ("Error writing initial DIO data to 1st board, port 0", err);<br />

printf ("1st BOARD,PORT 1\n");<br />

err = DIOWrite (SLOTISA_0, ONBOARD, PORT_1, INI_DIO_DATA);<br />

ErrorRoutine ("Error writing initial DIO data to 1st board, port 1", err);<br />

/* initializing 1st CLAM output 8-Bit port on 2nd board for "special bits" */<br />

printf ("2nd BOARD,PORT 0\n");<br />

err = DIOWrite (SLOTISA_1, ONBOARD, PORT_0, INI_DIO_DATA);<br />

ErrorRoutine ("Error writing initial DIO data to 2nd board, port 0", err);<br />

/* 2nd port has been configured for INPUT */<br />

/* printf( "2nd BOARD,PORT 1\n" ) ; */<br />

/* DIOWrite( SLOTISA_1 , ONBOARD , PORT_1 , INI_DIO_DATA ) ; */<br />

/* initializing the "E/2"-bit on first board,port 1(upper),bit 7 */<br />

printf ("Writing ’special bits’ to DIO ports:\n");<br />

printf ("The (E * 2) bit No 15 on 1st BOARD, 2nd PORT\n");<br />

err = DIOWriteBit (SLOTISA_0, ONBOARD, PORT_1, E_TIMES_2_BIT, !(outbits[0]));<br />

ErrorRoutine ("Error writing initial DIO bitwise data to 1st board, port 1", err);<br />

/* initilizing CAE-Bits and E_OVER_20-Bit */<br />

printf ("The CAE/CRR bits and the E_OVER_20 bit on 2nd BOARD, 1st PORT\n");<br />

for (i = 0; i

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!