![]() ![]() Please excuse my lack of knowledge, a working basic example would help a lot to get me started because I did not find anything working on the internet. Will I have to open and close the serial port each time or can I open it once, read values at each step (even though I do much other stuff in between) and close it at the very end? ![]() My LV-code will run through a few loops and at each step I want to measure and save the data. In the long run I would like LabView to read the SerialData from my digital Sensor (on Arduino UNO) that prints out 3 Values (X,Y and Z) on one line. I was also wondering if I don't need something like a "Handshake" between LabView and Arduino to make sure the Serial Connection is set up properly before I start reading out data? I did that when using SerialCommunication with Matlab and was wondering how to do that in LabView. ![]() RandNumber = random(readNumber) //dont read. Serial.begin(9600) // opens serial port, sets data rate to 9600 bps ![]() Here is my Arduino Code, my LabView-VI (made up of examples I found in this forum) is attached: I tried to write a really simple program that just prints out random numbers and read them in Labview, but I fail. I am really new to Labview and I am trying to set up a Serial Communication between my Arduino board and Labview. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |