DIO as output

Placement, modules, components and accessories; the ones that exist and the the nice-to-be's
Post Reply
Posts: 1
Joined: Thu Jun 17, 2021 8:59 am

DIO as output

Post by aidilazma » 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');

from : aidilazma

User avatar
Site Admin
Posts: 535
Joined: Wed Mar 26, 2014 7:04 pm

Re: DIO as output

Post by redpitaya » Mon Sep 06, 2021 2:17 pm

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

Post Reply
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 1 guest