LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

handshake technique. dividing the GUI

Solved!
Go to solution

Good Morning, 

 

I was working on my VI for a while and with some help I reached my first goal by representing my data that i'm receiving it into intensity graph. 

 

i'm using an Arduino UNO to read my data from sensor sheet (rows and columns 4X4).

I connected the Arduino through USB to the laptop and used VISA to read my data from VI and display it over intensity graph and 2D array. 

 please check the picture attached.

 

what i want now is

 

understanding the idea of handshake between arduino and LabVIEW. (such as master and slave idea, and make the LV the master while the Arduino is the slave).

in this case i can make the LV ask the arduino to send the data when he needed not just pushing data through VISA. 

 

my iteration takes 1.6 seconds due to the program on Arduino 

 

second thing 

 

how I can divide the GUI to be two windows,

  • one for displaying the data over intensity graph (representing the sensor position)
  • second one is displaying my raw data only into 2D array. 

 

so can I divide the Front Panel to display what I want individually ?

 

 

 

Thanks

 

 

 

0 Kudos
Message 1 of 3
(2,538 Views)
Solution
Accepted by topic author N.Ghrayeb

Hi N.,

 

1. my iteration takes 1.6 seconds due to the program on Arduino

Use a different sketch for your Arduino part: use/create a sketch that reacts only on commands of your LabVIEW master…

 

2. how I can divide the GUI to be two windows

Learn about producer-consumer scheme.

Or atleast use notifiers/queues to send data to a parallel running loop…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,521 Views)

GerdW, 

 

thanks for your advise, now i have a VI with several subVIs

 

 

 

 

 

Regards, 

0 Kudos
Message 3 of 3
(2,453 Views)