LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

justify of strings

Dear
 
I would like to save some strings to a file.
The file will be used as a input data file in other program.
 
How can I justify the column of below array in labview??
 
+1     -1     -1     -1     -1     0
+1     -1     -1     -1     0     -1
0     +1     -1     -1     -1     0
0     +1     -1     -1     0     -1
0     0     +1     -1     +1     -1
0     0     +1     -1     +1     -1
0     0     +1     -1     -1     +1
0     0     +1     -1     -1     +1
0     0     +1     0     -1     -1
0     0     +1     0     -1     -1
0     0     0     0     0     0
0     0     0     0     0     0
 
0 Kudos
Message 1 of 2
(2,707 Views)
Hi labmaster,

you can use format codes like %4d, they will give you numbers using at least 4 characters maybe filled up by spaces!
Added: there's a huge page on format codes in the labview help!

Message Edited by GerdW on 04-17-2007 05:05 PM

Best regards,
GerdW


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