02-23-2011 04:39 AM
Thank you very much!
Dataflow must be used indeed, instead of local variables.
I attach the new working vi.
But, there are still 2 small problems.
First:
The txt file that is created, has some columns that are separated with 1 tab. In order to allign correctly the columns, some gaps need 2 tabs. But if a value in a column is not 0 and it has some digits, then the gap needs only 1 tab! How can I allign the columns correctly, independently of the number of digits? I attach 2 txt files that have been created by this vi, that show the problem.
Second:
In the Front Panel, there are some text fields, that are alligned at right. If the vi is transfered to another PC with a screen of different size and resolution, these text fields lose their allignement. How can I manipulate it?
Thank you very much.
02-24-2011 02:54 PM
Hey nikosfs,
For those text files, you should try opening them with Microsoft Excel-they look just fine when I do that. You do this by right clicking on the text file, selecting open with, and selecting Microsoft Excel.
As for the alignment in the VI, when I open it on my Windows 7 OS, it is correctly aligned. If you are going from one OS to another, or drastically different screen dimensions a certain amount of repositioning is unavoidable. However, many OSs default to upper left corner, which means if you align the icons to the LEFT margin instead of the right, the repositioning will be minimized.
Hope this helps!
Cheers,
kgarrett
02-25-2011 03:36 AM
Thank you.
You are right! If the txt files are opened with Excel they are shown properly, as long as the columns are separated with only one tab. So, I attach the final vi that has no problems.
As for the alignement, it is not pretty to allign these text fields to the left, and some others need to be alligned to the center. So, I'll keep them as they are.