LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save a string to file

- Since the program will run only one interation after you push "Start", you can add the save functions at the end of the program. Not that your program will stop and you have to start it all over again.

 

 

in which way can i do it?

Using LabVIEW 7.1
0 Kudos
Message 11 of 19
(1,619 Views)

Wire the Datalog to a Save to text file.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 12 of 19
(1,611 Views)

but i wanna a button 🙂 i don't want always save my data in file...and i can't use event structure

Using LabVIEW 7.1
0 Kudos
Message 13 of 19
(1,609 Views)

Then put the save file in a case structure. 🙂

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 14 of 19
(1,601 Views)

You can do your task in various ways. However, if you want to minimize code changes, consider putting at the end of the existing code a further while loop similar to the one managing the measurement start. In the new loop, the conditional terminal should be connected to the OR of the Save button and a new Stop button outputs. If Save is selected, create the output file (in a case structure) and exit; if Stop is selected, just exit.

Not the best code I could think of, but certainly meets the boss' requirements Smiley Wink

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 15 of 19
(1,597 Views)

can you show me please? 

 

i know that for you it's obvious, but i'm learning labview from not-so-much 🙂 i used always event case

Using LabVIEW 7.1
0 Kudos
Message 16 of 19
(1,593 Views)

It's very easy indeed:

SaveorStop.png

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 17 of 19
(1,585 Views)

thanks 😄 

Using LabVIEW 7.1
0 Kudos
Message 18 of 19
(1,578 Views)
You can simplify slightly by using a 2 button dialog box instead of the loop.
/Y
G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 19 of 19
(1,568 Views)