LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read data from µC / I/O-Assistant

Solved!
Go to solution

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...

0 Kudos
Message 11 of 13
(392 Views)

Hi laserco,

 

attached is an example of how to plot those values...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 13
(391 Views)

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.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 13
(389 Views)