User manual
27Page
Velleman Projects
3.20
ReadBackPWMOut
Syntax
void ReadBackPWMOut(int CardAddress, int *Buffer);
Parameter
CardAddress: The address of previously opened card.
Buffer: Pointer to array of two 32 bit integers where the data will be read.
Description
The values of the PWM outputs are read back to an array of two 32 bit integers.
Example
int PWM[2];
ReadBackPWMOut(CardAddress, PWM);
TrackBar1->Value = PWM[0];
TrackBar2->Value = PWM[1];
Label15->Text = TrackBar1->Value.ToString();
Label16->Text = TrackBar2->Value.ToString();