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

Hi,

After quit a time searching this forum for this error our Arduino still isn't communicating whit labview. Therefore my question.

I've a pro micro arduino. I've installed the driver for this card with Arduino ERW 1.0.3. If I check my windows(7) hardware in the systems control panel I see the Arduino on COM6. So thats oke.

I've downloaded the Arduino labview interface with the package manager and installed it. When i open the LIFA_base.ino file and deploy it to the arduino there's a notification that says 'You are using a lot of memory......'  This in not the problem.

So I assume the LIFA_base is correct on the arduino.

When I start labview MAX I can see the COM6 (the name Arduino is nowhere to be found). So Max sees the port.

So I openend a example AnalogRead.VI. When I run this VI I get the VISA clear error as stated in the title.

I've created a constant for the arduineINIT.vi 

In this forum several times is writen 'have you installed NI-VISA'.  In MAX I see NI-VISA 5.3 software on my machine. So there should not be a problem.

So my question what i'm a overlooking, does anyone have suggestion how to get ride of this Error -1073807360

regards,

Christian

0 Kudos
Message 1 of 18
(21,423 Views)

Christian,

Please post the text output from when you build / deploy the firmware. I want to confirm that it is deploying correctly.

Also please post a screenshot, or the code that you are attempting to run.  I'm specifically interested in how you've configured the Init.vi.

Have you made any modifications to the firmware?

Thanks,

-Sam K

LIFA Developer

0 Kudos
Message 2 of 18
(9,932 Views)

Hi Sam,

Here is the screen after deploy to the arduino.

result deploy.png

I see a extra error notification. Browsing the forum did not give a solution only that there is no  correct communication. But in the windows system hardware list i can see the arduino device on a com-port

In the windows device manager i see the arduino as a keyboard.

auto search vi.png

The autosearch.vi configuration looks for the com port with ASRL6 instead of Arduino.

I have to solve the deploy error first.

Christian

0 Kudos
Message 3 of 18
(9,932 Views)

Christian_M wrote:

auto search vi.png

The autosearch.vi configuration looks for the com port with ASRL6 instead of Arduino.

I have to solve the deploy error first.

It looks like you need to re-install LIFA because it should be "Arduino".  I say re-install as opposed to just changing it because if that is wrong, what else is wrong?

0 Kudos
Message 4 of 18
(9,932 Views)

I've uninstalled everything and started over using this manual http://www.sparkfun.com/tutorials/338.

after reinstalling i saw the sparkfun pro micro in the device manager. So i changed the name from 'sparkfun pro micro' to 'Arduino pro micro' in the inf file and reinstalled the driver. In the windows device manager is see the arduino pro micro. When I upload the blink-sketch I can see the deployment is oke there are no error's and the LED's are blinking on my arduino.

I've reinstalled the arduino add-on for labview in mij labview2011 and opened the LIFA_base sketch for deployment to my arduino. Now there is a different error (AFMotor.cpp:230:5: error: #error "This chip is not supported!"). There is a atmel-mega32u4 chip on the board.

chip error.png

despite the error i did try to run a VI. The visa clear error was still present. Is there another LIFA_base sketch that i can use for my board?

0 Kudos
Message 5 of 18
(9,932 Views)

If the firmware doesn't load to the board then nothing in LabVIEW will work.  Also, I didn't realize that this wasn't an Arduino so I won't have the answers for you.

0 Kudos
Message 6 of 18
(9,932 Views)

I realize this is an old thread, but I am encountering an similar issue with a teensy 3.0. I have installed LVIFA and all works well with an arduino; however, the teensy is not operating correctly. I uploaded the firmware for the teensy found at: http://www.pjrc.com/teensy/languages.html and created the VI shown on the same page. To get the firmware to compile i had to comment out the SUPPORT_STEPPER define and remove the afmotor and accelstepper header/code files from the directory. I believe this should be ok as long as i do not try to access this functionality in labview. The COM4, which the teensy is operating on, is shown in labview. I receive the Error -1073807360 occurred at VISA Clear from the visa clr block in the 'arduino init' VI.

I've burn my sat and sunday exploring possible solutions but I do not really understand the Visa clear block to begin with. Any suggestions?

0 Kudos
Message 7 of 18
(9,932 Views)

National Instruments says:

"This error most often occurs when you try to open a VISA Session to a resource that already has been opened. (In serial communication, this is not allowed, and subsequently causes this error).Be sure to close all sessions in your code. To close the visa session, "

Try rebboting hyour computer. and then run your VI.  Rebooting your cmputer essentially closes any  open resources.

hrh18918

0 Kudos
Message 8 of 18
(9,932 Views)

Thank you for the reply; however this does not seem to solve the problem. I am really stumped on this one...

0 Kudos
Message 9 of 18
(9,932 Views)

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 10 of 18
(9,932 Views)