LabVIEW Interface for Arduino Discussions

annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

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 Compliments
Message 11 sur 21
1 533 Visites

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 Compliments
Message 12 sur 21
1 533 Visites

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 Compliments
Message 13 sur 21
1 533 Visites

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 Compliments
Message 14 sur 21
1 533 Visites

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 Compliments
Message 15 sur 21
1 533 Visites

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 Compliments
Message 16 sur 21
1 533 Visites

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 Compliments
Message 17 sur 21
1 533 Visites

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 Compliments
Message 18 sur 21
1 533 Visites

Thank you. Now everything works fine.

0 Compliments
Message 19 sur 21
1 533 Visites

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 Compliments
Message 20 sur 21
1 533 Visites