LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error 'open file with file path'... i would like dialog and come back..

Hi Guys,
 
I would like to put any dialog when i pull any bottom, which directly execute opening diferents files from path... but certains files doesnt exist with this extension... Therefore i would like when i push bottom and try open the files, when it doesnt find the name from path, show any dialog window telling ' the file doesnt exist' and push ok, and come back to the main window ... closing the current little window...
 
I attached one picture.
 
Another problem, if when i save one file test from numbers on columns, certain values are higher than 3 digits and the columns is moving , i would like all the numbers will be the same digits, 4. But i dnot know where i could adjust it...
 
Thanks, Fonsi.
0 Kudos
Message 1 of 9
(3,602 Views)
file with bad columns...
0 Kudos
Message 2 of 9
(3,605 Views)
Ok, i solved the error problem, i removed the error handle.vi and it runs perfectly...
 
Now, i only would like to get the way to adjust the digits output array fixed to 4 or 5 numbers. is it possible??.
 
Regards.
0 Kudos
Message 3 of 9
(3,573 Views)

I'm not sure I understand what you mean. Are you wanting to limit the number of elements in the output array, or the number of digits of precision?

If you want to limit the number of digits of precision, right-click on the array indicator and pick the Format & Precision... selection. You can set how the numbers are displayed there.

If you want to limit the number of elements check-out the array functions Split 1D Array or Array Subset.
 
Mike...

Message Edited by mikeporter on 09-10-2005 07:48 AM


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 9
(3,567 Views)

Hi Mike,

I dont want the number of precision, i already know how adjust it...

Look at the file which i attached previously (.txt)!, I save on txt file data from columns vi. My problem is when the data fill 3 digits with the '.' it would be 4. If you look at the txt, the columns are not right, they are bent. Since i fixed the spaces between each value. But like it ocuppies one space more and the columns seems bent. I would like fit the output from calculates to get ALWAYS the same number of spaces, for example if i have :

1000           9.75
9000           10.15
10000         8.75
 
You can see the columns is bent.
I would like:
  1000           09.75
  9000           10.15
10000           08.75
 
Perfect would be:
 
  1000            9.75
  9000            10.15
10000            8.75
 
Or some way to get it... I attached the example vi.
 
Regards, Fonsi.

Mensaje editado por Fonsi

0 Kudos
Message 5 of 9
(3,565 Views)

Hi Fonsi,

      How does this look? (note: right column is still right-justified.)

Cheers!
When they give imbeciles handicap-parking, I won't have so far to walk!
Message 6 of 9
(3,553 Views)

The solution that Dynamik gave for the right-justification issue is best way to approach the problem. One question, is there a reason that you need all the spaces in the version that you are writing to the test file? If you could get by with a simple tab between data values the formatting would get a lot simplier.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 7 of 9
(3,551 Views)

Hi Dynamik and Mike,

Thanks a lot, the program runs perfectly, yes i should use tab than spaces... 🙂

Regards.

0 Kudos
Message 8 of 9
(3,531 Views)

Thanks Mike!

You're welcome Fonsi.

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 9 of 9
(3,516 Views)