LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out the related Code Repository Files or visit the LabVIEW Wiki Development Environment Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> probe with timestamp
psychomanu
post Oct 11 2004, 10:52 AM
Post #1


Active
*

Member
Posts: 22
Joined: 11-October 04
Member No.: 773
LV:7.1


Hi,

I would like to have a probe with a timestamp to see when the data passes. Then I can evaluate what parts of my code take the most time. Now I'm always messing around with 'tick count.vi' before and after and have to delete it afterwards. Any ideas?

Thanks in advance,

Manu.

This post has been edited by psychomanu: Oct 11 2004, 12:04 PM


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Oct 11 2004, 10:52 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Michael_Aivaliot...
post Oct 11 2004, 04:28 PM
Post #2


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2363
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


OOh! This sound like a cool challenge. Anyone got this coded yet?

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
didierj
post Oct 12 2004, 05:35 AM
Post #3


Extremely Active
****

Member
Posts: 391
Joined: 6-February 04
From: switzerland
Member No.: 253
Using LabVIEW Since:1997
LV:7.1.1 ,6.1 ,.
Switzerland France Nothing Selected


Not quite a code challenge, I'v already done something like that, with quite some statistics (haven't the code anymore present, must have lost when I last changed job sad.gif )

Attached Image

You'll still have to wire them into your code, but less complicated than with sequences. If you make the icon footprint small (e.g. a small clock, 8x8pixel), it won't disturb your code too much.

Didier


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post Oct 12 2004, 07:24 AM
Post #4


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2363
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


I was hoping more for a custom probe a la LV7.0... rolleyes.gif

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
psychomanu
post Oct 12 2004, 08:37 AM
Post #5


Active
*

Member
Posts: 22
Joined: 11-October 04
Member No.: 773
LV:7.1


QUOTE (Michael_Aivaliotis @ Oct 12 2004, 09:24 AM)
I was hoping more for a custom probe a la LV7.0... rolleyes.gif
*


Exactly, a custom probe would be great,altough the previous suggestion is already helpful, I will try to make such a small footprint icon. Already much more convenient then what I do now. Thanks for the suggestions.

Manu.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
proximableu
post Oct 12 2004, 10:26 AM
Post #6


More Active
**

Member
Posts: 34
Joined: 4-October 04
From: Stockholm
Member No.: 744
Using LabVIEW Since:2000
LV:8.5 ,8.2.1 ,7.0
Sweden Ukraine Israel


It seems that LabVIEW makes a temporary copy of CustomProbe (which you create) when you place one, and than deletes when you remove a probe from diagram. So, if you place Probe tvice in the same diagram, there is tvo SEPARATED reentrant probes, but where them stores, i did not find.. Therefore, you cannot place SAME probe on tvo places in the same time, therefore simple "delay" vi would not work. So, probes must to share one resource, file or pipe. It is a tricky one. Or, when you place two probes, you need to "rename" (in memory? ) one of them, so both have same name.. (Talking about two instances with the same name smile.gif)
Any ideas? /ProximaBleu

--------------------
Some bugs are very small, but VE-E-ERY STINKY..


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
didierj
post Oct 12 2004, 12:07 PM
Post #7


Extremely Active
****

Member
Posts: 391
Joined: 6-February 04
From: switzerland
Member No.: 253
Using LabVIEW Since:1997
LV:7.1.1 ,6.1 ,.
Switzerland France Nothing Selected


QUOTE (Michael_Aivaliotis @ Oct 12 2004, 09:24 AM)
I was hoping more for a custom probe a la LV7.0... rolleyes.gif
*

worshippy.gif Sorry for being not up-to-date, I'm still using Lv6.1


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
xseadog
post Oct 12 2004, 12:30 PM
Post #8


Active
*

Member
Posts: 24
Joined: 5-August 04
From: Kopenhagen DeŽnmark
Member No.: 577
LV:7.0
Denmark


QUOTE (didierj @ Oct 12 2004, 02:07 PM)
worshippy.gif Sorry for being not up-to-date, I'm still using Lv6.1
*

Hi All
using cut and paste (what else) lightbulb2.gif
have strung a probe example together using Danny and Helen's previous coding.
It provides a sound when probe recieves data and also recordes actual time to text log.
It is necessary to generate you own text log before hand for it to function.
Have funny & modify to suit your own appls.
thumbup1.gif
chow
xseadog


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
xseadog
post Oct 12 2004, 12:34 PM
Post #9


Active
*

Member
Posts: 24
Joined: 5-August 04
From: Kopenhagen DeŽnmark
Member No.: 577
LV:7.0
Denmark


QUOTE (xseadog @ Oct 12 2004, 02:30 PM)
Hi All
using cut and paste (what else)  lightbulb2.gif
have strung a probe example together using Danny and Helen's previous coding.
It provides a sound when probe recieves data and also recordes actual time to text log.
It is necessary to generate you own text log before hand for it to function.
Have funny & modify to suit your own appls.
thumbup1.gif
chow
xseadog
*


Soory all it appears had time out on upload.
Will try again
Attached File(s)
Attached File  Probe_test.zip ( 681.48K ) Number of downloads: 176
 


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
proximableu
post Oct 12 2004, 01:26 PM
Post #10


More Active
**

Member
Posts: 34
Joined: 4-October 04
From: Stockholm
Member No.: 744
Using LabVIEW Since:2000
LV:8.5 ,8.2.1 ,7.0
Sweden Ukraine Israel


BTW, I have did some probes project, for debugging applications, using Queries. It is working fine, have "console" debuging window, and works in DevSys as well in RunTime.. i had posted it in OpenG, but nobody was interested. Does someone will want to look at it? Works in LV6.1 too.
/PB

This post has been edited by proximableu: Oct 12 2004, 01:27 PM

--------------------
Some bugs are very small, but VE-E-ERY STINKY..


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
proximableu
post Oct 14 2004, 12:13 PM
Post #11


More Active
**

Member
Posts: 34
Joined: 4-October 04
From: Stockholm
Member No.: 744
Using LabVIEW Since:2000
LV:8.5 ,8.2.1 ,7.0
Sweden Ukraine Israel


here it is..

Attached File  LVDEBUG.zip ( 240.1K ) Number of downloads: 248

--------------------
Some bugs are very small, but VE-E-ERY STINKY..


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
mballa
post Oct 17 2004, 08:15 AM
Post #12


Extremely Active
****

Premium Member
Posts: 372
Joined: 6-August 04
From: Gurnee Illinois
Member No.: 584
Using LabVIEW Since:1997
LV:8.5 ,8.2.1 ,7.1
United States us_illinois us_michigan


Attached Image
Attached Image
Here is a custom time probe I created to help me see how much time a vi used up.
the first one attaches to an error cluster and the second uses a variant to attach to any data
type.

The probe has a enum selector with 3 choices Start, Time and Cycle
Start: starts the timer
Time: takes a time reading
Cycle: takes a time reading and restarts the timer

The probe will use a different timer for every ID number used.
(see demo.png).
Attached File(s)
Attached File  mballa_time_probe.zip ( 84.72K ) Number of downloads: 189
 

--------------------
If you are interested in Time saving programming
tools created in LabVIEW then download my
Icon Editor Updated July 7th 08 and my
SubVI Helper Updated Jan 7th 08


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Mike Ashe
post Oct 19 2004, 03:21 PM
Post #13


Instant Human, just add coffee
****

Premium Member
Posts: 889
Joined: 31-January 03
From: Waterford, CT USA
Member No.: 45
Using LabVIEW Since:1992
LV:8.2.1 ,7.1 ,8.0.1
United States us_connecticut us_washington


The Probes contributed above are great. worshippy.gif

I think it would be good to combine some of this with the Universal Probe that Jim Kring developed:

http://www.openg.org/tiki/tiki-index.php?p...iversal%20Probe

Combining timestamping with universality and a queued logging mechanism would be very useful.

--------------------
*************************************************************
"Always listen to the experts, they'll tell you what can't be done, and why.
Then go do it."
~The Notebooks of Lazarus Long (by Robert Heinlein)
*************************************************************


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Mike Ashe
post Jan 2 2005, 02:26 AM
Post #14


Instant Human, just add coffee
****

Premium Member
Posts: 889
Joined: 31-January 03
From: Waterford, CT USA
Member No.: 45
Using LabVIEW Since:1992
LV:8.2.1 ,7.1 ,8.0.1
United States us_connecticut us_washington


QUOTE (Michael Ashe @ Jan 1 2005, 09:16 PM)
Okay, here is the initial code. As I said, it is ugly, a hack and very minimal, but it gets the ball rolling and gets it out of my hands.  ....
clock.gif Anybody got a little time to add a few features?

beer_mug.gif Cheers
*

On another thread in the forums we ended up getting into some of the same stuff here. I don't like to cross-post, but I felt it might help a few more people see and also avoid some duplication.

Is there anyway to consolidate two topics into a single topic if their material has started to converge significantly? (Good question for the other Michael)

--------------------
*************************************************************
"Always listen to the experts, they'll tell you what can't be done, and why.
Then go do it."
~The Notebooks of Lazarus Long (by Robert Heinlein)
*************************************************************


Tags
(This content has not been tagged yet)
Go to the top of the page