Getting the Arduino and Raspberry Pi to have a chat

Hi Guys,

Im pretty new here and to programming, and I am looking forward to learn a lot.

Anyway, I am working on a project where I am using both the pi and ardunio.

Basically what I am trying to do is use the raspberry pi to take some data either a force/time graph or distance/time graph with some specific points which the experimenter decides. Then, trying to send these values to the arduino in a sort of a matrix like this

Force/Distance Time
F/D 0
0 0
10 5
20 10

I want the arduino to realise that if the first value is F, then its measuring force, and if its D then its measuring displacement. I am gonna attach a document so you guys can understand what I mean.
The step i am basically trying to program is the first juction you can see in the flow chart attached.

Any help would be fantastic...
in the meantime I am continuing to learn about arduino.. I have only found out about it yesterday and have gone through some tutorials, but i need more information.

Thank you,

Omar

Quick Edit:

when I say pulse of the flow chart, that will be a pulse sent to the stepper motor.

Tensile tester Arduino flow chart.pdf (246 KB)

The demo here illustrates how to communicate with an Arduino using Python. I presume it will work on a PI.
And the demo here shows different ways to interpret data received by an Arduino.

From a quick look at your flow chart it seems to me the code for the two columns would be almost identical - perhaps working on some different variables that can be indexed by the type of activity.

...R