07-29-2011 07:19 AM
Having trouble connecting the ( even running ) the example to read serial data from the arduino toolkit.
It seems that my program cannot see or find the arduino resource. It throws up an 'Error 5002' which basically tells me that it's something with the serial port.
So to check I wrote a simple 'Read Serial' after 'Configure Serial' on the same COM port that I mentioned in the above example & am able to display a buffer string ( without the arduino toolkit ).
What could be the reason? In the example below, I only included the VISA serial read part since I was getting th error. I would obviously not use them concurrently.
Attached some screen shots.
09-27-2011 05:00 AM
Hi vaishakh.chava,
You're completely correct in saying that LabVIEW is unable to establish a connection to the Arduino microcontroller. There are quite a few reasons as to why this can occur, so it's important to make sure of the following:
Please let me know how you get on with these steps!
12-11-2011 05:29 PM
When downloading the included firmware to aduino all I get is:
LVIFA_Base.cpp:24:31: error: LabVIEWInterface.h: No such file or directory
LVIFA_Base.cpp: In function 'void setup()':
LVIFA_Base:36: error: 'syncLV' was not declared in this scope
LVIFA_Base.cpp: In function 'void loop()':
LVIFA_Base:55: error: 'checkForCommand' was not declared in this scope
What should I do to fix this?
12-11-2011 09:51 PM
Wow. that's a lot of information. Permit me some time to get back to you. It's just that I have installed all those files, see the various tabs that are supposed to create the 'enviornment' for download & communication but this will not download to the micro. Normal arduino programs are transfering just fine so it cannot be serial protocol configuration issues is what I am thinking.
Would want to really get this onto the chip as I see the world of possibilites.
Thanks
12-11-2011 10:01 PM
Here is the screenshot on the arduino side. It does not even compile. the program compiles in a regular arduino sketch. With those tabs the LVFIA base there seems to be some error.
Help!
12-11-2011 10:05 PM
This is the error. Sorry about that. did not upload in the last post
12-12-2011 03:24 AM
It appears to me that the referenced header files (and therefore the functions contained) aren't within the scope of compilation. The included files will need to be within either the default header files folder or within the same directory hierarchy of your Main method for them to be found.
It does not even compile. the program compiles in a regular arduino sketch
Can you please clarify for me what you mean by this? Where isn't it successfully compiling?
Thanks,