LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

One button to create new file and log data

Solved!
Go to solution

Hello, 

 

The "Write to Measurement File" VI has two terminals that I'm interested in. Enable (enables the VI) and new_file (which has a latch when released action that creates a new file). I want to be able to control when data is being logged at the same time I'd like the files to be logged separately. I'm too lazy to click 2 buttons (create a new file + log data) and would like to use only 1 button. What I have in mind is a sequential process. When the button to log data is pressed, create a new file and log data until the button is released.

 

I came up with something that almost works using shift registers, but whenever I release the button, labview puts the last iteration in a new file. Does anyone have a better solution?

 

image.png

 

 

 

 

0 Kudos
Message 1 of 3
(2,181 Views)
Solution
Accepted by topic author aalansari

See if this works for you.

 

Snap49.png

mcduff

0 Kudos
Message 2 of 3
(2,149 Views)

It worked perfectly. 

Thanks! 

0 Kudos
Message 3 of 3
(2,118 Views)