LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Intensity graph problem - Real Time Streaming

Solved!
Go to solution

Hi 

 

I'm having a problem with displaying my data over intensity graph.

 

i have a sensor sheet (10 rows X 16 columns) i connected it to a breadboard and I'm using both shift register and multiplexer to acquire all the data from the sheet. 

 

i used a serial visa to read all the data that is coming from the sensor sheet, into the breadboard and using an Arduino UNO for coding the conditions of the breadboard. 

 

in my code, i shifted the columns and multiplexed the rows. eventually the data goes through pin A0 in Arduino to be displayed over intensity graph. 

 

when I'm receiving my data on real time (using visa configuration serial port), the intensity graph display only the bottom row in the x axis of the intensity graph, no matter where i place my hand (the object here) over the sensor sheet, the intensity graph display it only through one row (bottom row), 

 

how can i display the shape of the object - such as detecting the position of my hand over the sheet and display it on intensity graph in both x and y axis 

 

i guess i did something wrong in my VI and i can't figure it out yet. 

 

more information (here where i guess that i'm wrong):  I initialized an array of 0s and the dimension size is 16 each, however, i'm using 10 rows and 16 columns !!! so i'm not quite sure if it's right this way.

 

second: i used Quotient & Reminder function i sat input X to be (i) the iteration of while loop and input Y to be (16). the output of Q&R goes to input the replace subset array. 

 

I really need a help to know how to display my hand over the intensity graph (representing the 5 fingers on this intensity). 

 

 

I appreciate all the suggesting and the help. 

 

please check my VI. 

 

 

Regards,

0 Kudos
Message 1 of 6
(2,982 Views)

It seems likely from your description that you're overwriting the same part of the graph each loop, however, the code you uploaded makes me suspicious of either the Arduino or this 'multiplexing' you describe.

 

I'm attaching a snippet that shows some comments regarding the numeric constants in your VI - you can use this VI to test the effects of each constant on the output and see if it explains your problems.

 

If not, it might be that there's some (probably minor, but important) difficulty with your Arduino code/operation.

 

ReadQR.png


GCentral
0 Kudos
Message 2 of 6
(2,963 Views)

Hi cbutcher,

 

this snippy is very good to understand the concept of how the sensor sheet works through dimensions. and i can accepted as a clarifying solution.

 

please check my output image, that describes my problem.

 

 

 

Regards,

 

0 Kudos
Message 3 of 6
(2,949 Views)

Hi cbutcher,

 

this snippy is very good to understand the concept of how the sensor sheet works through dimensions. and i can accepted as a clarifying solution.

 

please check my output image, that describes my problem.

 

 

 

Regards,

 

0 Kudos
Message 4 of 6
(2,945 Views)
Solution
Accepted by topic author N.Ghrayeb

So just in the top left of your image, I can see that you get 2 and 15 0s. This means you should swap all of the 16s and 10s compared with the snippet I attached 🙂

 

It seems definitely possible that the Arduino isn't sending all of the data that you're expecting. I'm not sure how to go about troubleshooting this - after all, it isn't an Arduino forum, and I don't know much about the code written for Arduinos, but if you upload the code I'll take a look, and perhaps I or someone else will be able to advise where you're hitting a roadblock.


GCentral
0 Kudos
Message 5 of 6
(2,937 Views)

Thanks for your reply, I'll continue working on this obstacle 

0 Kudos
Message 6 of 6
(2,926 Views)