LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1073807360 on Arduino Photocell (Arduino UNO R3)

Testing 'Arduino Photocell' example, working fine in Arduino IDE (Arduino UNO R3), but not with Labview 2011. Reading photocell values from 350 to 800 with Arduino, and I changed light intensity scale 0-1000 on Labview.

Drivers correctly installed. Using USB 2.0 on Windows XP Pro SP3. TX and RX flashing.

As suggested in similar posts, I added a constant COM9 in vi.init, tested many combinations at different speeds (9600, 115200) and timeouts (from 20 to 1000), with and withour adding delays (when using Arduino IDE) and also changing values in 'Bytes per Packet' without success.

In VISA resource I see COM9, where the Arduino is correctly connected and working with IDE, and ASRL9::INSTR.

I tried both.

Should settings be checked and saved everywhere in Init.vi, read.vi and close.vi?

Has anybody run successfully  'Arduino Photocell' example on the UNO?

Thank you for any suggestions.

George

Download All
0 Kudos
Message 1 of 2
(4,505 Views)

Hey George,

I have tested this example on the Uno. It looks like you have everything set up correctly. The error seems to indicate an issue with the serial setup. For the Uno you want the baud set to 115200. Have you tried any of the other LabVIEW examples - I suspect its an issue across the board. That error in particular seems to come from an invalid serial setup not supported by windows (most common cause looks like changing the stop bits to be 1.5). If you have just the basic example without any modifications to the Init VI you still see this error? Could you post your init VI?

Kevin Fort
Principal Software Engineer
NI
Message 2 of 2
(2,821 Views)