10-21-2009 07:39 AM
problem is, that in the beginning, the array is swapped, meaning [y,x].
When I reset the µc it goes until [10,0] and is then swapped back.
But when I start the VI when the counter is at 100, it counts from [100,0] to [1,10] and is then swapped back...
So I cannot even use the replace array...
10-21-2009 07:40 AM
10-21-2009 07:44 AM
Hi laserco,
so you have a synchronization problem? You don't know the order of your received data?
If it's just these example data you can simply calculate the difference between two consecutive data points. When the difference is [0,1] then you receive [x,y] values, for [1,0] you get [y,x] pairs...
Otherwise tell your µC to put some synchronization marks between the data.