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
DIO as output
- redpitaya
- Site Admin
- Posts: 901
- Joined: Wed Mar 26, 2014 7:04 pm
Re: DIO as output
First,you will need to set the pin direction and define it as output, then you can control it with a separate command:
https://redpitaya.readthedocs.io/en/lat ... mands.html
https://redpitaya.readthedocs.io/en/lat ... mands.html
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 36 guests