annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

Array

Résolu !
Accéder à la solution

I have numbers in the block diagram. 0 2 4 6 are the x coordinates, while 1 3 5 7 are the y coordinates. When I save the x And y coordinates are on the same row, but I want the X coordinates in the first row and the y coordinates in the second row. Is there a way to solve this problem???

0 Compliments
Message 1 sur 6
2 954 Visites
Solution
Accepté par l'auteur du sujet Mark87

You need to make your data a 2D array

Omar
0 Compliments
Message 2 sur 6
2 938 Visites

Sorry Omar, can you post the jpeg image. I haven't the last version of LabVIEW.

Thanks for your reply.

0 Compliments
Message 3 sur 6
2 876 Visites

Hi Mark,

 

in your VI you create a 1D array of data - and then you wonder why they are saved as one row? Really?

 

You have to put those values in a 2D array. To do so create 1D arrays for both x and y values and then build a 2D array from those two 1D arrays…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Compliments
Message 4 sur 6
2 869 Visites

Here is the screenshot. But thank Omar_II, if you mean that his was useful.

 

1D to 2D.png

0 Compliments
Message 5 sur 6
2 853 Visites

Or you could simply do a reshape&transpose.

 

 

 

 

 

 

0 Compliments
Message 6 sur 6
2 842 Visites