LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

detect rise in waveform

Hi Ritesh,

 

You're absolutely right, runtime is not compilation time.  I'm sorry for the confusion.  When you click the run button, LabVIEW compiles the code.  This will take longer with the Formula Node than it will for the DLL call.  I was considering "runtime" to be the time from when you click the run button to when you get a result.  Thanks for keeping me honest Smiley Wink

Message 11 of 18
(1,565 Views)

Pie56694 wrote:

 I was considering "runtime" to be the time from when you click the run button to when you get a result.


That exactly is the Runtime. 

Runtime is nothing but the time when ur program is running, i.e when u click the run button to when the program terminates.

 


Pie56694 wrote:

  When you click the run button, LabVIEW compiles the code.  


Are you Sure about it?

Because is it is, then you are contradicting your own statement which says,"LabVIEW will not generate code if the syntax is incorrect".

 

Thanks,

Ritesh

 

 

0 Kudos
Message 12 of 18
(1,560 Views)

Hi Ritesh,

 

Perhaps we are having a miscommunication.  Please elaborate your question.

Message Edited by Pie56694 on 09-18-2008 04:24 PM
Message 13 of 18
(1,556 Views)

Ok.

Runtime = Time when u press the Run Button to the time the program terminates.

And, complete compilation of the code is done before we could execute the VI.

I feel there is no compilation done during the run time. but you said in your previous post the LabView compiles the code when you hit the Run Button.

I feel that is not True as you cant run your VI until the code is free of syntax errors.

 If that is the case, then i reckon the Formula Node and DLL should take the same time as compilation of both the nodes has been done before the run time.

 

I hope my question is clear now.

 

Thanks,

Ritesh 

0 Kudos
Message 14 of 18
(1,548 Views)

Hi Ritesh,

 

 


LabVIEW evaluates the block diagram multiple times.  Several early passes check the syntax and type correctness of the diagram.  Subsequent passes organize nodes for multitasking.  A subsequent pass allocates data space.  Lastly, compiled code is generated.  LabVIEW will not generate code if the syntax is incorrect.  I hope this helps.

 



When you press the run button, LabVIEW evaluates the block diagram.  If there are syntax errors, LabVIEW reports the syntax errors and does not generate code.  If there are no syntax errors, LabVIEW organizes nodes into clumps.  Then, LabVIEW allocates program and data space for the VI.  Then, LabVIEW generates code (compiles the code).  So, after you press the run button, if there are no syntax errors, LabVIEW compiles .  If yourdefinition of Runtime = " Time when u press the Run Button to the time the program terminates" then compilation is done during runtime.  If your definition of runtime is the time that a program, i.e. your VI, is executing (running its compiled code), then no compilation is done during run time.  What I did not make clear in my above post is that this is all done after you click the run button.  I'm sorry for the confusion.  I hope this helps.

 

 

Message 15 of 18
(1,534 Views)

Hi Pie56694,

Thanks for an Excellent reply.

I always thought that LabView keeps compiling the code side by side as i enter things into the Block Diagram. I never knew LabView generates the compiles code only after i hit the Run Button.

Things are crystal clear now. :smileyhappy:

 

Thanks again,

Ritesh

0 Kudos
Message 16 of 18
(1,523 Views)

Hi Ritesh,

 

You're welcome.  I'm sure that our conversation will help others understand what is going on.  Good luck with your application Smiley Happy

Message 17 of 18
(1,514 Views)

Hi Pie56694,

thanks for all the Help!

I'll surely get back to you if i face any other problem in my application. :smileyhappy:

 

Thanks,

Ritesh

0 Kudos
Message 18 of 18
(1,488 Views)