LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter/Timer

Hiii, Everbody
 
              Can anybody please modify my for the counter/timer,here this vi is working perfect for the timer of 1 sec, but i want it without while loop, so can anybody modfiy that the timer remains still of 1 sec, but it must be without while loop.
 
Thanks,
Nishant

 

0 Kudos
Message 1 of 4
(2,958 Views)

Nishant,

I'm confused about what you are trying to accomplish with your VI. It appears that you are simply using it to create a wait or to keep track of elapsed time in your program; is this true? If so, I would recommend simply using the Wait.vi and Elapsed Time.vi that are included in LabVIEW's function palettes. Is there a reason why you are not using them, and if so, explain why you have written your VI the way you have.

Kind Regards,
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,931 Views)

Hiii, Sulzer

        Sorry for the delayed reply, but can you please post the example for that? here i am explaining u wat i am doin and wat i requires....

                      Actually i am doing a trigger function, in which once the trigger comes i have to write the data into the excel file and after the user specified time, i have to stop the trigger, which automatically stops writing the file,so i want the timer which calculates the time in seconds, specified by user, and i ll code the way, as if trigger comes, i ll use that timer, to stop the trigger, mean after that much time (in seconds, of course) i ll stop the trigger, can you please help me that way? can you post a vi which gives me some ideaSmiley Indifferent, the vi which i ve posted in the last post were doing the same thing but as they are while loop, they are not stopping their execution after once, they are running continuosly, but i dont want that, i want this loop to execute only once at a time.

Thanks,

Nishant

0 Kudos
Message 3 of 4
(2,907 Views)

Hi Nishant -

What you described doesn't sound anything like the VI posted, but nevertheless, I have attached an example that implements what you described. It is simply a modified version of the example that ships with LabVIEW called "Write to Text File.vi". All I did was add the Elapsed Time.vi to it and connect "Time has Elapsed" output to the stop terminal. All the file writing was already part of the example.

Kind Regards,
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,878 Views)