LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

point to a file on my C:\\

Hi I have a structure inside a loop contains true , false ,temp and open .....when i choose from my menu Open , i have to open a file on my c:\\ drive ...how do i do that ? what should i insert inside my structure ?
 
thank you 🙂
LV 8.2
0 Kudos
Message 1 of 10
(3,473 Views)
You'll need to provide a better explanation of what you're doing. What is this "true , false ,temp and open"? When you say "when i choose from my menu Open" are you referring to a custom run-time menu? Are you trying to open a file directly, or provide a file selection dialog? What File I/O functions are you using?

The best bet: show us the code.
0 Kudos
Message 2 of 10
(3,461 Views)


kmous wrote:
Hi I have a structure inside a loop contains true , false ,temp and open .....
Is this a case structure with four cases?


kmous wrote:
when i choose from my menu Open , i have to open a file on my c:\\ drive ...
What do you mean by "open"? What kind of file? What do you want to do with the open file?
If you are on windows, "C:\\" is not correct syntax, try "c:\". Do you want a file dialog or do you know the filename already?
Maybe it would be easiest to attach your program so we can see what you actually have.
0 Kudos
Message 3 of 10
(3,456 Views)

ok I have GUI.vi and it has a menu . In the menu i choose the experiment that i want to use ....under my menu i have 3 experiments

1-Densiometry

2-Temperature

3-Spirometry

let's say i want to open the Spirometry program when i click on it.

my program is a file on my c:\\spirometry.exe it is a visual basic code , so how do i point to it ?

I appreciate ur help

LV 8.2
0 Kudos
Message 4 of 10
(3,455 Views)
This is my file
LV 8.2
0 Kudos
Message 5 of 10
(3,450 Views)
Use System Exec (Connectivity -> Libraries & Executables). Set the "wait until completion" to True or False accordingly...



With respect to your code:
  • Why do you set the pane color each time you loop? Isn't once enough? Why don't you just set it directly on the front panel, rather than programmatically?
  • Are you sure you really want to use "Quit LabVIEW"? Is this intended to be built into an application?
  • I would suggest using the Event Structure rather than a while loop.


Message Edited by smercurio_fc on 05-22-2008 01:50 PM
0 Kudos
Message 6 of 10
(3,444 Views)

Thank you that Helped 🙂

Umm I new to Labview  , most of the time i use examples and i change them.....I really want my project to work , for the colors and small details i will do them once i am done....BUT I really appreciate your suggestions ...i am gonna do them now 🙂  but how u change the color from the front panel ?

Thank you again

LV 8.2
0 Kudos
Message 7 of 10
(3,431 Views)
Hi kmous,
click Shift and right mouse key at the same time and select the brush. With another right click on the front panel you can change the color.

Hope it helps.
Mike
0 Kudos
Message 8 of 10
(3,419 Views)
It helped Mike thank you , btw how about the same thing pointing to a file but .doc file (word document) ?
LV 8.2
0 Kudos
Message 9 of 10
(3,409 Views)

I got it OpenDoc.vi

🙂 🙂

LV 8.2
0 Kudos
Message 10 of 10
(3,408 Views)