LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control Arduino with Labwindows

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 ?  

0 Kudos
Message 1 of 8
(3,442 Views)

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. 

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 8
(3,431 Views)

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  

0 Kudos
Message 3 of 8
(3,416 Views)

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. 

S. Eren BALCI
IMESTEK
0 Kudos
Message 4 of 8
(3,404 Views)

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 !

 

 

0 Kudos
Message 5 of 8
(3,283 Views)

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.

0 Kudos
Message 6 of 8
(3,250 Views)

please do you have any idea how to detect the com on the arduino is connected automatically on labwindows Cvi?

0 Kudos
Message 7 of 8
(246 Views)

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.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 8 of 8
(235 Views)