LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save Label by clicking

Hi all !
I'm trying to save labels of a clicked LED along with some data (please see the attached files).

Let say you click LED 1, 3, and 7. When you click  "OK"  the first time, a txt file  with the header Channel_1 should be created. When you click the second time, another txt file with the header Channel_3 should be created and finally when you click the third time, a third txt file with the headr Channel_7 should be created.
How can I implement that?
Thanks for your help.
 
Best regards
Kabanga 
Download All
0 Kudos
Message 1 of 4
(2,633 Views)
First of all if you want to end up with three files. Each filename should be unique, so you should add a uniqueness factor to the filename. Second if an existing file should be overwritten you should keep the option "open / create".
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 4
(2,622 Views)
Hi André,
each file should be unique.
How can I add this unique factor to the file name. Could you give me some idea?

Best regards
Kabanga
0 Kudos
Message 3 of 4
(2,615 Views)
Just create the name of the file programmatically and then use Build Path to create a full path. Your file path control would just be to indicate the directory where to save the file, rather than the full path to the file.



Message Edited by smercurio_fc on 05-02-2008 09:52 AM
0 Kudos
Message 4 of 4
(2,586 Views)