LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

port manipulation

Dear all,

I wonder if you could do port manipulation in labview?

for example in sketch,

void setup()

{

  DDRB = DDRB | B00000111; // digital pins 8-10 output (two high bits unusable)

}

void loop()

{

  if(bitRead(PINB, 3))

  {

    PORTB = 2;

   }

  else

  {

    PORTB = 0;

  }

}

if I do

void loop()  {

PORTB = 0

}

is pretty fast in firmware mode. I guess when it is in labview, it would software-timed to the loop?

many thanks,

0 Kudos
Message 1 of 3
(3,449 Views)

Yes, it is possible.  You would need to add functions to the LIFA firmware.  But, if you are only planning on accessing a single pin then it's not worth it.  It would only be worth adding it if you needed whole ports read.

This method should be considered for use in the current "Digital Read Port" LIFA function.

0 Kudos
Message 2 of 3
(2,979 Views)

Hello, for some time to develop a similar program for controlling actuators and loads via a relay, worked well

Download All
0 Kudos
Message 3 of 3
(2,979 Views)