LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

trying to use the TIMER to work out how many mS there are between triggers

I observe that the previous time indicator subVI on the front panel shows values in hundreds or thousands. I could not understand why, although the time indicator subVI on the frontal panel is fine and in seconds or mS.  Could you please guide me...

 

Kind regards

 

Hasham

0 Kudos
Message 11 of 23
(427 Views)

Not sure what is going on. Try the following.

snip.png

Message 12 of 23
(417 Views)

@Hasham622x wrote:

I observe that the previous time indicator subVI on the front panel shows values in hundreds or thousands. I could not understand why, although the time indicator subVI on the frontal panel is fine and in seconds or mS.  Could you please guide me...


The current an previous times are relative, only the difference is meaningful. I am not sure where you get mS (millisiemens). That's not a time unit.

 

If you have problems with code, attach the code!

Message 13 of 23
(411 Views)

Hi,

 

First of all sorry for late reply and same time thanks for your reply. As this code is working and now I want read run time of code without FOR/WHILE loop.

 

Kindly please guide me.

 

As I attached LV19 version code.

 

Kind regards

 

Hasham

0 Kudos
Message 14 of 23
(361 Views)

Hi,

 

First of all sorry for disturbing you all. I want to read the run time of the code without the FOR/WHILE loop.

 

Kindly please guide me.

 

I have attached the LV19 version code.

 

Kind regards

0 Kudos
Message 15 of 23
(362 Views)

Hi Hasham,

 


@Hasham622x wrote:

As I attached LV19 version code.


Even though you claim to have attached a LV2019 VI (and also named the file as such) you failed in doing so: your VI is in LV2022…

 

Please don't create duplicate posts in different threads for the very same question.

 


@Hasham622x wrote:
As this code is working and now I want read run time of code without FOR/WHILE loop.

Generic answer as I cannot open your code:

Get the timestamp at start of your VI and before finishing, subtract both timestamps. THINK DATAFLOW to define the execution order!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 16 of 23
(349 Views)

@Hasham622x wrote:

Hi,

 

First of all sorry for disturbing you all. I want to read the run time of the code without the FOR/WHILE loop.

 

Kindly please guide me.

 

I have attached the LV19 version code.

 

Kind regards


I cant see your code so I am answering with some arbitrary code : )

time.png

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
Message 17 of 23
(324 Views)

Hi,

 

Sorry for the late reply. I tried to use timestamps in the code, but I could not get any values... I attached an old version of the code, and if you don't mind, please guide me...

 

Kind regards

 

Hasham

0 Kudos
Message 18 of 23
(298 Views)

Hi,

 

Sorry for the late reply. I have attached the LV19 version of the code.

 

Kind regards

 

Hasham

0 Kudos
Message 19 of 23
(297 Views)

Hi,

 

Sorry for the late reply. I tried this example but did not get values.

I attached my code LV19 version.

 

Kind regards

Hasham 

0 Kudos
Message 20 of 23
(294 Views)