Download ADwin

Transcript
ADwin
Sub … EndSub
The same subroutine with an array as passed parameter:
SUB Fast_Dac1(array[])
Rem Outputs element 3 of the array on the
Rem analog output 1 of an ADwin-Gold
POKE(20400050h, (array[3]))'Write value to output
POKE(20400010h, 11011b) 'Start conversion
ENDSUB
Calling this subroutine is made in a similar manner (but without dimension brackets):
Fast_Dac1(array)
For array you can indicate a global or a local array. Enter the array
name only, without element number and brackets.
ADbasic 5.00, Manual March 2010
253