LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Read sensor data from Arduino Mega mini pro 2560 and parse it for process and display on LabVIEW 2010 GUI

I need help please, having problem with my GUI, it launch and runs without crashing, I know the Arduino is sending data from LIFA_ Base.ino that is uploaded on it (visible on IDE's serial window) yet there is nothing on the GUI displays!! I am using DHT22 for Temp & Humidity, flowmeter (SENSTREE G1/2" Water Flow Sensor with 1.2M Cable Food-Grade Hall Effect Sensor Flow Meter Flowmeter Counter 1-30L/min), pH sensor (PH Sensor for Arduino, PH0-14 Value Detect Sensor Module with pH Electrode Probe BNC).

 

my block diagram functional description:

 

So, if I can explain my block diagram. I have Arduino Init block, that connects via USB with 9600 band rate, comport (selectable) board select then onto while loop. Within while loop, 2 x Arduino digital read blocks for pin 2 and pin 3 (digital) and an Arduino analog read block for pin A0, that connects to init block on left and close block on right outside of while loop. Output of each digital blocks and the analog block are connected to DBL block and then on to formula node blocks each and the output of each formula blocks goes straight to display indicators that are corresponding to GUI front panel. These wire links are also branch off to a build array and all the other wire links (Temp, Hum, Flowrate, pH) then connects to multiplot graph block that corresponds to graph plotter on the front GUI panel. The same wire links that comes off the formula blocks are also going through series of less than, greater than, Not blocks to display Red LED alarms or green LEDs for normal operations.

Going back to Digital read blocks and the formula blocks, I've got Visa read blocks inside while loop and are connected to comport and the error link of the Init and digital read blocks. The Visa read connected to spreadsheet string array block from there it is then counted to index array and from there array to cluster and then on to unbundle by name block then via DBL block to the formula node block.

The program compiles and runs without crash, I know the Arduino's own LIFA sketch is working as it should, as I can see the data on serial display of Arduino IDE, then where is the problem. I cannot fathom, why the GUI is not displaying. I've the the debugging approach. I do Not think it's the correct approach. I can't get anywhere with it.

 

 

0 Kudos
Message 1 of 3
(99 Views)

Can someone take a look at please and tell me what I am doing wrong?

Thank you.

0 Kudos
Message 2 of 3
(76 Views)

attaching updated block diagram and front panel, 

I still don't have nay response. 

0 Kudos
Message 3 of 3
(51 Views)