Check out the related Code Repository Files or visit the LabVIEW Wiki Development Environment Portal
Tags |
(This content has not been tagged yet)
|
![]() |
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
|
||
|
|
|||
| Ad |
Oct 11 2004, 10:52 AM
Post
#
|
||
|
|
|
||
|
|
|||
Oct 11 2004, 04:28 PM
Post
#2
|
|||
![]() Confucius say: Crowded elevator always smell different to midget 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
My Blog
My Gallery
|
OOh! This sound like a cool challenge. Anyone got this coded yet?
--------------------
|
||
|
|
|||
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 ,.
|
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
![]() 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
|
||
|
|
|||
Oct 12 2004, 07:24 AM
Post
#4
|
|||
![]() Confucius say: Crowded elevator always smell different to midget 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
My Blog
My Gallery
|
I was hoping more for a custom probe a la LV7.0...
--------------------
|
||
|
|
|||
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) 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.
|
||
|
|
|||
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
|
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
Any ideas? /ProximaBleu -------------------- Some bugs are very small, but VE-E-ERY STINKY..
|
||
|
|
|||
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 ,.
|
QUOTE (Michael_Aivaliotis @ Oct 12 2004, 09:24 AM)
|
||
|
|
|||
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
|
QUOTE (didierj @ Oct 12 2004, 02:07 PM) Hi All using cut and paste (what else) 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. chow xseadog
|
||
|
|
|||
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
|
QUOTE (xseadog @ Oct 12 2004, 02:30 PM) Hi All using cut and paste (what else) 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. chow xseadog Soory all it appears had time out on upload. Will try again
Attached File(s)
|
||
|
|
|||
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
|
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..
|
||
|
|
|||
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
|
-------------------- Some bugs are very small, but VE-E-ERY STINKY..
|
||
|
|
|||
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
|
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)
-------------------- 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
|
||||
|
|
|||||
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
|
The Probes contributed above are great.
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) *************************************************************
|
||
|
|
|||
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
|
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. .... 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) *************************************************************
|
||
|
|