11-04-2013 02:56 PM
I appreciate the input. In my arduino code, it closes the connection. But I guess I never thought of what repercussions there might be w/ the close outside of my loop in the LabVIEW portion. Is there really a significant problem?
11-04-2013 03:16 PM
Yes, there could be a problem. If your LabVIEW code is on Windows, try running "netstat -p tcp" after your VI has been running for a while. You may see a large number of connections to the Arduino in a CLOSE_WAIT state, meaning the connection is closed on only one end but not the other. If you have enough of them, it's possible to run out of network sockets. Closing the connection correctly on both ends cleans up the associated resources, making them available again. LabVIEW will close any open connections when a VI stops running, and the operating system may close them after a long timeout period, but it's best to do it yourself when you know you're done with the connection.
12-17-2015 12:24 AM
TO message 9 of 12:
Sorry!I would like to know in the middle of Data Convt is your personal information or it is in labview.
12-17-2015 09:51 AM
The Data Convt VI is a personal VI that was specificto my application. It was taking the data received from the Arduino and processing it.
Also, 2 years later, I would not program this VI this way. There are some practices not necessarily recommended taking place.
01-25-2017 01:08 PM
Are you using the Arduino Ethernet Shield?
I am using the ENC28J60. Is there something different on Arduino code?
03-05-2022 01:10 PM
hello, currently i'm trying to make such a project, to send some sensor data from arduino to labview, do you think you can help me with some questions if you are still here?