06-05-2019 02:14 AM
Dear altenbach
exactly I try to find both of them VI execution time and wire so trigger VI 2, indeed the wire should have time to trigger VI 2!
06-05-2019 02:15 AM
Dear Aziroazide
Is it possible some samples?
06-05-2019 01:11 PM
@Zourvan wrote:exactly I try to find both of them VI execution time and wire so trigger VI 2, indeed the wire should have time to trigger VI 2!
Sorry, I don't understand what you mean here. Did you look at my linked presentation and examples?
As I said, the wire just defines a data dependency, meaning VI2 cannot start until VI1 has completed. It is up to the compiler and scheduler to decide what happens after VI1 has executed and before VI2 starts, depending on what other parallel parts of your code also want to run. If your CPU has multiple cores, several things can even happen at the same time if they don't depend on each other.
Again, what are your performance requirements and concerns. Do you want to define an exact time between the two subVIs or do you just want to measure the elapsed time? Is it currently too slow? All moderns CPUs have multiple cores, several cache levels, (hyperthreading), and other advanced internal architectures that make it impossible to boil some random code down to an exact number of clock cycles. Also, don't forget that your PC also runs several hundred of other processes at the same time. Once you go to a Realtime OS, things become a bit more deterministic.
06-12-2019 12:05 AM
Dear altenbach
Excuse me for late.
OK, Let made it easier, I want just measuring the runtime of "Vi 1", In labview is possible?
06-12-2019 01:14 PM - edited 06-12-2019 01:18 PM
Basically you want something like this.
This is using the Flat Sequence Structure and the High Resolution Relative Seconds.vi
06-13-2019 12:50 PM
Dear pallen
Thank you for your answer.
but it's so bad, In visual Studio, and Intel Parallel Studio it done easy way.
06-13-2019 01:39 PM
@Zourvan wrote:but it's so bad,
You are kidding. Right? If you consider this "bad", you should not even be programming.
(most of my speed critical subVIs measure their own time and report it on an output.)
06-13-2019 02:27 PM
@Zourvan wrote:
Dear pallen
Thank you for your answer.
but it's so bad, In visual Studio, and Intel Parallel Studio it done easy way.
I have no idea what this studio is, but maybe you're looking for the VI profiler under Tools -> Profile -> Performance and Memory. Though that was not what you asked for in your original post.
/Y
06-13-2019 06:56 PM - edited 06-13-2019 06:57 PM
It only takes a few moments to create this "wrapper" code around any LabVIEW VI.
06-14-2019 03:36 AM
Dear altenbach
I work on Motion controller on EtherCAT and I need Calibration my process for "sync Message".
I need to measure real time and calibrated my code, it's not a game or test program.
you are Knight of NI, help me and let's know how can I calibrate my output (ready my output at fixed time).
Do you know about it?