LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

supprimer les espaces entre les 2 colonnes

Solved!
Go to solution

Bonjour à tous , j'ai besoin de votre aide

J'ai construit un tableau 2D avec des chiffres et j'aimerais l'afficher dans dans un fichier texte mais sans tabulation , je veux juste séparer les deux colonnes par point virgule et sans espace. 

espace entre chaque données du tableau est-ce possible de les supprimer ?

merci à vous.

Download All
0 Kudos
Message 1 of 9
(1,225 Views)
Solution
Accepted by topic author asmae97

Hi asmae,

 


@asmae97 wrote:

I have built a 2D table with numbers and would like to display it in a text file but without tab, I just want to separate the two columns with semicolon and no spaces.

space between each data in the table is it possible to delete them?


Yes.

Use a better format string!

Spoiler
Like "%f" instead of "%11f"…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 9
(1,216 Views)

merci infiniment GerdW.

j'ai une autre question s'il vous plait , je veux rajouter un  titre à chaque colonne de tableau 2D.

je sais pas si vous connaissez une fonction qui va m'aider à faire ca?

0 Kudos
Message 3 of 9
(1,205 Views)

Hi asmae,

 


@asmae97 wrote:

I have another question please, I want to add a title to each column of 2D table.

I don't know if you know of a function that will help me do this?


It really would help when you write your questions in English when you are posting in the English section of the forum. (There is a dedicated regional board for French discussions…)

 

To add "titles" to a 2D array you could add/prepend an additional row!

Or are you talking about a table indicator? This one offers properties to set row/column headers…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(1,195 Views)
I have an array 2D table, the problem is that I can't add the title automatically to each column of this table

 

0 Kudos
Message 5 of 9
(1,185 Views)

Hi asmae,

 


@asmae97 wrote:
I have an array 2D table, the problem is that I can't add the title automatically to each column of this table

Why can't you add/prepend column titles?

What is an "array 2D table"?

What have you tried?

Where are you stuck?

Why don't you attach an example VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 9
(1,148 Views)

in both cases (2d array, table control) you need to convert the data from double to string

 

 

header.png

0 Kudos
Message 7 of 9
(1,143 Views)

please can you send me this programme , thank you so much 

0 Kudos
Message 8 of 9
(1,116 Views)

Hi asmae,

 

you know it's a snippet in the previous message?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 9
(1,109 Views)