LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

define coordinate of receiving data - display the position -intensity graph

Hi Everyone, 

 

i'm just wondering how i can define the correct position of streaming data over intensity graph. 

 

i have a hardware design contain from shift register and  Multiplexer (2x2). wired to 10 rows and 16 columns sensor sheet (force sensors) 

 

the 16 columns connected to shift registers and the rows connected to Multiplexers. 

 

i defined the pins of each of them, connected  to the sensor sheet and started streaming data from analogue pin (P0) arduino uno

 

i programmed my Arduino UNO to receive all the data from those sensor from only one pin. 

 

i'm displaying all this data over intensity graph, using serial visa. 

 

when i'm displaying the data, the intensity graph display it in the whole range of it, i'm trying to make those data display in similar location of the sensor (assuming if i pressed over those sensor in location Row3 Column2), I'd like to display on intensity in same location/coordinates. but that's not happening with me. 

 

you can see that there's something over intensity graph, but you can't detect the location. 

 

more general, I'm placing my hand over the force sensors, and I'm trying to display my hand over the intensity graph, but till now i couldn't manage that. 

 

i really want help with this. i did Core1 and Core2 courses, and still need more to learn but i'm trying my best. 

 

please check the data that i received over arduino serial monitor.

 

i attached two pictures, the one called Hand, is what i'm looking for

and the second one is what i'm receiving 😞 

 

looking forward any help

 

 

 

 

Regards,

 

any suggesting !!!!!!! 

Download All
0 Kudos
Message 1 of 6
(2,920 Views)

Hi again,

 

I still think you're going to have a tough time with resolution (every time I say this, the resolution gets a little bit better - let me keep trying 😉 ) but one thing that might help your display is if you make the graph have a more similar aspect ratio to the sensor. I'm guessing that your 16 sensor side is not 3x longer than the 10 sensor direction, but it looks that way on the graph 🙂

 

Even if you had a good collection of data at fine resolution, your hand would look strange when it's stretched so much in only one (I'm guessing the width-ways) direction.

 

Are the two separate points your thumb and little finger? I'm guessing most of the block is the heel of your palm and the section under your knuckles (I don't know what that part is called - sorry).

 

Make sure also (here I am again making silly suggestions that you've already considered I'm sure) that your hand actually is touching in an even-ish way and that you have a good spread across your hand - it might be that you're exceeding the maximum force that can be sensed in some parts of the array of sensors, so they're maxing out at 5V, and other parts of your hand aren't really touching the sensor pad that much.


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

thanks for your reply. 

 

this is some picture that i took it right now 😕

 

i tried to place my hand, my fingers and just normal touch 😞

 

that's drive me crazy 

 

 

 

thank you

Download All
0 Kudos
Message 3 of 6
(2,899 Views)

Hi, 

 

i have a sensor sheet, 10 rows and 16 columns. connected to a breadboard with shift registers and multiplexers. then connected to Arduino UNO and from arduino into labview. 

 

my sensor sheet is force one, and i'm using my hand as an object to detect the force. 

however, when i place my hand in the top left corner i can see my data representing correctly over the serial monitor of the Arduino, that's mean the breadboard connection and the code working properly. 

 

when i'm using the labview to represent my data over intensity graph, here's the problem.

i can't see the representation of my data in same position of the force. 

 

assuming i'm placing my hand in the top left corner of the sheet, i'll have some data in the intensity graph, but not in the top left corner. 

 

how can I index my data in the intensity graph to represent the real location of the force. 

 

please check the snippet and the result i'm having it from the serial monitor. 

 

 

PS: I tried to place and index 2D array and connected to the graph, still not giving me what i'm looking for, also i tried to place a reshape array with defining the dimensions but still not helping enough. 

 

 

any idea that help me to represent my data in correct way. 

 

 

 

 

Regards,

 

 

 

Download All
0 Kudos
Message 4 of 6
(2,849 Views)

To be clear - all of the data held in the text file is from you holding down your hand/fingers in the top left corner? It looks like maybe you tapped it, or were moving your hand? Is this just an interpretation problem?

 

Also, you say the serial monitor of Arduino shows correct data - what does this mean? Can you explain in a bit more detail please?

 

I removed the VISA code from your uploaded snippet so I can simulate reading data if you upload more text files. I would also suggest removing the empty lines from your Arduino code, because it makes the For loop iterate without reading data, which will mess up the Q/R function (you'd want to set it to 17 instead of 16, and add a case structure to avoid replacing the wrong elements if you add extra lines. For my test code, it doesn't matter because I can discard the empty lines before starting my main loop.


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

hi cbutcher,

 

first of all thanks for replying me, 

 It looks like maybe you tapped it, or were moving your hand? Is this just an interpretation problem?

 i was moving my hand from corner to corner just quick place and remove to check that all the sensors in the sensor sheet are active. 

 

serial monitor of Arduino shows correct data - what does this mean? Can you explain in a bit more detail please?

 

the data represented itself in the same place of my hand. when i press over the sheet in specific points the data started streaming instead of 0s in the location of my hand. 

 

 

I'll work on your suggesting now. 

 

 

 

 

Regards,

 

 

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