LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

time elapsed for ' write to measurement file.vi'

Hello I am trying to find the time elapsed during writing a file: using express vi-> 'write to measurement file. vi' I want like a stopwatch to measure for how long the express vi is being used and develop a logic to stop it after 'say- x seconds'. I am attaching my vi and a picture for further clarification: Thanks in advance for all your valuable advices
Download All
0 Kudos
Message 1 of 7
(3,447 Views)

Your code is currently displaying the time elapsed one time per itteration of the loop.  The quick and dirty method of displaying the time to run the write file is put it is a sequence (yes I hate sequences too) get the time in the frame before the file io call and one time after the io and calculate the difference (t2-t1).  You can also use the vi profiler but I find it harder to use\understand the results.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 7
(3,443 Views)
Hi Thanks for replyig. I have set up the sequence structure but I dont know how to start the clock 1 when data collection starts. Please advice me about the same. An example would be highly appreciated. Thanks in advance. Vaibhav
0 Kudos
Message 3 of 7
(3,439 Views)

Hi vaib,

as i said already here, http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=332115#M332115 i think you can´t stop the writing process. If you start them, then you have to wait til the vi is ready. To measure the time you can use the "Tick count" function. See the attached picture.

Mike



Message Edited by MikeS81 on 06-17-2008 03:34 PM
0 Kudos
Message 4 of 7
(3,428 Views)
Hi Thanks a lot for the reply. I understand that using the normal file inp/outp. would be far lot messy. However i am asked by my supervisor to use this express vi, as the code is almost done. and have no options. Please advice how can move round this, at least get the work done is now the main objective. I made the same branch as you have attached in your message. But it gives some random numbers and not the time difference between the start of the writing process and end of the same. Could there be a wring problem?? Thanks again for all your most valuable advice. Kindly help be a bit further to get out of this tricky situation. Vaib.
0 Kudos
Message 5 of 7
(3,419 Views)
Please keep the same discussion to the same thread.
0 Kudos
Message 6 of 7
(3,415 Views)
Kindly follow the other thread as mentioned be Mr smercurio_fc for more on this thread. Thanks Vaib
0 Kudos
Message 7 of 7
(3,406 Views)