DIO as output
Posted: Fri Aug 13, 2021 10:36 am
hi everyone
I'm a bit new with Matlab. I wanted to make a DIO as an output using matlab. But it's not working as it should be. The LEDs are on even before i ran it. And when i do, they're off. I'm stumped.
Could anyone help me with this? This is my code
fprintf(tcpipObj,'DIG:PIN:DIR OUT, DIO6_N,1');
pause (5);
fprintf(tcpipObj,'DIG:PIN:DIR OUT, DIO6_N,0');
thankyou
from : aidilazma
I'm a bit new with Matlab. I wanted to make a DIO as an output using matlab. But it's not working as it should be. The LEDs are on even before i ran it. And when i do, they're off. I'm stumped.
Could anyone help me with this? This is my code
fprintf(tcpipObj,'DIG:PIN:DIR OUT, DIO6_N,1');
pause (5);
fprintf(tcpipObj,'DIG:PIN:DIR OUT, DIO6_N,0');
thankyou
from : aidilazma