LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview, arduino & serial commands

Hello,

My configuration is the next: Arduino Mega2560 & pc, connected by RS-232 serial adaptor.

I'm trying to write an application on LabView to do the following:

While LabView program is running constantly on the PC, it's "listening" to its serial command port.

when a serial command passes down the serial port (via RS 232 adaptor), the program that is "listening" will open applications on the PC according to the serial command send (e.g. Arduino sends a serial command, the program on the PC "catches" it and actuates other applications on windows such as turning off touchpad or showing desktop).

Unfortunately, I'm quit new to LabVIEW and its capabilities. 

I would like to if such code is possible, and if so, how can I implement this code?

 

Thanks

 

0 Kudos
Message 1 of 2
(1,113 Views)

@Kolobok94 wrote:

Hello,

My configuration is the next: Arduino Mega2560 & pc, connected by RS-232 serial adaptor.

I'm trying to write an application on LabView to do the following:

While LabView program is running constantly on the PC, it's "listening" to its serial command port.

when a serial command passes down the serial port (via RS 232 adaptor), the program that is "listening" will open applications on the PC according to the serial command send (e.g. Arduino sends a serial command, the program on the PC "catches" it and actuates other applications on windows such as turning off touchpad or showing desktop).

Unfortunately, I'm quit new to LabVIEW and its capabilities. 

I would like to if such code is possible, and if so, how can I implement this code?

 

Thanks

 


While that is "possible" it's not going to be an "easy" first project.

 

In a nutshell communicating with an Arduino is no different than communicating with any other instrument. In some ways it is easier because you have full control over the code running on the Arduino, so you get to decide on how the serial communications work...

 

I would:

  1. Write the LabVIEW code to do the various things you desire.
    1. Push a button to turn off touch pad
    2. Push a button to turn on touch pad
  2. Modify that code to implement the serial communications
    1. Receive "tpoff" from a serial terminal to your program to turn off the touch pad
    2. Receive "tpon" from a serial terminal to your program to turn on the touch pad
  3. Write the Arduino code to send the individual commands when you press a button or whatever...

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 2
(1,083 Views)