After reading the forum thread "Explanation of DIO registry configuration" and implementing this i'm confussed why my DIO's configures as outupts do not work.
i want Port's 10 and 11 configured as outputs.
regestry
[IMG:http://i62.tinypic.com/ff7c5x.png]
code:
Code
- private void tVistaButton21_Pressed(object sender, EventArgs e)
- {
- EfusDIO _dio = new EfusDIO();
- _dio.Open("DIO1:", 10);
- byte b = 0xFF;
- _dio.Write(b);
- _dio.Close();
- }
- private void tVistaButton16_Pressed(object sender, EventArgs e)
- {
- EfusDIO _dio = new EfusDIO();
- _dio.Open("DIO1:", 10);
- byte b = 0x00;
- _dio.Write(b);
- _dio.Close();
- }