LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LIFA 2.0 Bug Reports

Hey TurboM,

I am working on putting together a more in depth guide for the steper motor tutorial. I am currently waiting on some hardware but I hope to have it out  next week.

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 11 of 21
(1,282 Views)

Hey Kevinf ,

Finally I could make OK  the communication between arduino mega  and labview, I changed the "wait for arduino to exit boot loader" of  5000 to 10 000 value in the INIT fuction. but now my question is:   Why this value is bigger in arduino Mega?, do you know?

Thanks.

0 Kudos
Message 12 of 21
(1,282 Views)

Hello,

we want to read a simple switch.

We want to define pin 2 as digital input pin. Then we want to use the inner pull resistance of the arduino and set the pin to high. After closing the switch pin 2 is short circuited and low and we want to read this status.

This worked well with the old LIFA, but now fails.

LV2010

Windows 7 64bit

Arduino Uno R2

Thank you for response

0 Kudos
Message 13 of 21
(1,282 Views)

Hey arzt2283,

Do you get an error message or does the value you read back from the digital pin never change?

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 14 of 21
(1,282 Views)

I don't get an error mesage. The value I get back don't changes all the time. But the same VI works with the old LIFA.

0 Kudos
Message 15 of 21
(1,282 Views)

Interesting, We didn't change anything in those VI's or firmware with this release. Are you using Arduino 1.0 or 022 or 023?

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 16 of 21
(1,282 Views)

I use arduino 022, because I had problems with the arduino drivers from 023 and 1.0 . With this drivers LabView can't communicate with my arduino.

Now I updated the drivers and to arduino 1.0 and use a new Arduino REV3 . But I have the same problem with the new LIFA.

When I replace all serial.write('*') in the new LabVIEWInterface.pde by serial.print(*,BYTE) from the old LabVIEWInterface.pde and upload it to the arduino with arduino022 then everything works fine.

0 Kudos
Message 17 of 21
(1,282 Views)

You are right there is a bug I didn't catch in the digital read resulting from the new method we use to pass data back to LabVIEW with Arduino 1.0. I attached a snippet of the fix. We will fix this in our first patch for LIFA 2.0

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 18 of 21
(1,282 Views)

Thank you. Now everything works fine.

0 Kudos
Message 19 of 21
(1,282 Views)

We will be releasing an update (2.1) to fix the digital read issues as well as the stepper motor issues with the Easy Stepper (there will be a new case for use with the Easy Stepper).

This will give the stepper motor the following modes:

2 wire mode (for a 2 pin stepper motor-which 2 pins directly connect to the stepper motor coils)

4 wire mode (for a 4 wire mode -which 4 pins directly connect to the stepper motor coils)

AF Motor (for the AdaFruit motor shield)

EZ Stepper (for the EZ stepper - just need to set which pins to use for step and direction)

Kevin Fort
Principal Software Engineer
NI
0 Kudos
Message 20 of 21
(1,282 Views)