07-19-2019 10:32 AM
Hello I am an Engineering student and I am trying to learn how to use LabWindows CVI
I have a problem . I am trying to control arduino with Labwindows and i dont know how.
I couldn't find any tutoriels or any document to help except the exemples that are installed in CVI
which I couldn't understand, so any one can help me ?
07-19-2019 10:43 AM
When I type "arduino labwindows cvi" to Google, the first hit (for me) is:
https://forums.ni.com/t5/LabWindows-CVI/Controlling-Arduino-with-LabWindows/td-p/2851140
Read that post and come back if you need more details.
07-19-2019 10:59 AM
I read it, but it didn't answer my question I don't know how to use RS-232 library
as I said before I am new to this software I am a mecatronics engineering student with acceptable skills of coding
07-19-2019 11:19 AM - edited 07-19-2019 11:20 AM
Well, in that case, the examples shipped with CVI are best place to start. This post would be pages long to explain all details of serial com library.
It is always better to start your project first and then write here when you have a specific question.
07-30-2019 10:27 AM
i'm in the same position as you
i have a problem in reading analog pin voltage using labwindows
if there is any solution please answer us !
08-09-2019 06:49 AM
The pins you want to read are on the Arduino. Use an arduino program to read them. Then use some communication protocol (serial, ethernet...) to transmit their value to a different LabWindows program running on a PC.
07-31-2024 03:12 AM - edited 07-31-2024 03:14 AM
please do you have any idea how to detect the com on the arduino is connected automatically on labwindows Cvi?
07-31-2024 03:32 AM - edited 07-31-2024 03:36 AM
Do you want to know how to enumerate COM ports in CVI? Then you can use this code published by MSaxon long ago.
Do you want to know which COM port is in use in Arduino? This is to be solved inside the Arduino environment and I cannot help you on this.
Do you want to understand which port on CVI is connected to the Arduino? Then you can create a responder in Arduino and send the appropriate query in CVI on all ports in the system, one at a time: the port where you get the response is the one connected to Arduino. Be sure to add the proper error handling when using serial functions: in your system a number of virtual com ports may be present that may not be accessible all the time and that you must filter out if on error.