LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -1073807360 occurred at VISA Clear in LabVIEW Interface for Arduino

The demo on the PJRC page shows a Teensy 2.0 being used with LIFA.  Hence, this might be the source of the problem.  Do you have a Teensy 2.0 you can use to duplicate the results shown on the PJRC page.  Perhaps even though you can compile and download the LIFA base code you may get a runtime error because it is a Teensy 3.0.  Do you know if anybody else has been successful in using Teensy 3.0 with LIFA?

hrh1818

0 Kudos
Message 11 of 18
(4,612 Views)

Hello,

I tried to duplicate your results.  Loaded a modified version of LIFA_Base on a Teensy 3.0.  Ran the Arduino Analog Read Pin.VI.  It produced the following results. Error -1073807360 occurred at VISA Clear in LabVIEW Interface for Arduino.lvlib:Init.vi->LabVIEW Interface for Arduino.lvlib:Arduino Analog Read Pin.vi

It looks like LIFA is not compatible with Teensy 3.0.  Most likely because Teensy 3.0 uses a Freescale microcontroller whereas both the Arduino Uno and Teensy 2.0 use Atmel microcotollers.   Perhaps a Labview Guru could look at the init.vi and fix the problem.   However, between Sammy working on moving LIFA users to LINX and you being about the only person who wants to us LIFA with Teensy 3.0 it is unlikely you will find somebody willing to fix the problem. 

For the record I was able to run the Arduino Analog Read Pin.VI with Teensy 2.0. 

You also have the option of not using LIFA and instead using Labview's serial interface capability to create a graphic user interface to use with your Teensy 3.0 application.

hrh1818

0 Kudos
Message 12 of 18
(4,612 Views)

The next thing I suggest trying is creating simple firmware for the Teensy that waits for a serial character and returns the same character.  Then create a VI that sends a byte at a time and read the response.  This will help determine why LabVIEW is unable to establish a connection to the device.

-Sam K

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

0 Kudos
Message 13 of 18
(4,612 Views)

Hello Sammy,

I used a sketch that echoes a string and Labview's Basic Serial Read and Write.VI to see if Teensy 3.0 could echo the string.   The test worked as expected and proved Labview could send a string to Teensy 3.0 and read the returned string.  Do you have any additional tests to run to solve this problem

A copy of the sketch is attached.

hrh1818

0 Kudos
Message 14 of 18
(4,612 Views)

In your echo code you use a serial baud rate of 9600.  Is that what you used with LIFA as well?

If not I would test the echo with the baud rate you used with the LIFA VIS (I assume 115200) to see if that is the problem.

Let me know if that changes anything and I'll see what else I can come up with.

-Sam K

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

0 Kudos
Message 15 of 18
(4,612 Views)

Hello Sammy,

Changing the baud rate in sketch and in the Basic Serial Write and Read.VI to 115,200 doesn't change anything.  The Basic Serial Write and read.VI can still send a string to Teensy 3.0 and read the returned string.

hrh1818

0 Kudos
Message 16 of 18
(4,612 Views)

Thanks for the help guys! I had all but given up on this. But you proof of concept with the echo has inspired me to keep trying. If I get it to work I'll return with the code.

0 Kudos
Message 17 of 18
(4,612 Views)

i have same problem with labview and arduino it's not working. i have already LVifa_base.ino upload on arduino. com arduino and labview already same.  i have already check in device manager arduino port in com 9. but after run in labview not change same massage out. iam using labview 2013 and lifa version right now

error.PNG

0 Kudos
Message 18 of 18
(4,612 Views)