Tags |
(This content has not been tagged yet)
|
![]() |
Apr 15 2005, 03:34 PM
Post
#1
|
|||
![]() Very Active Member Posts: 124 Joined: 17-January 03 From: Southern California Member No.: 37 Using LabVIEW Since:1988 LV:8.0.1 ,. ,.
|
I discoverd this bug after a few hours of checking and rechecking a peak detection algo - using cursors to display the 'found' peaks in a graph. However, my algo was find points just before or after the peaks...
Well my algo was correct - I was chasing a bug in the graph cursor XY position property. As bewildering as the properties are there is a property under cursors a cluster called "Cursor.Position" who's elements are X,Y. I was wiring the data to that property only to find that although I input the X value of 0.0476 (in units of time - it's a waveform graph) LabVIEW was putting the cursor on the 0.477 index !?!?!. It can't be a rounding issue the number I input is much closer to the proper value then the one the graph choose on its own... Even reading back the Cursor properties immediately after setting it - showed it simply ignored my input value and choose the next X axis point over. However, there is ANOTHER property called "Index" expressed as integer for the X axis - wiring the index there - DOES cause the cursor to actually locate to the desired point. This is one of those times where a stupidly simple 'cute' features burns time like an x-wife on her spouses VISA card. Sheeze!!! Jack Hamilton This post has been edited by JackHamilton: Apr 15 2005, 03:34 PM
|
||
|
|
|||
| Ad |
Apr 15 2005, 03:34 PM
Post
#
|
||
|
|
|
||
|
|
|||
Apr 15 2005, 03:40 PM
Post
#2
|
|||
![]() Confucius say: Crowded elevator always smell different to midget Admin ![]() Posts: 2367 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
|
Jack, could you post an example VI for this?
--------------------
|
||
|
|
|||
Apr 25 2005, 02:06 AM
Post
#3
|
|||
![]() Very Active Member Posts: 124 Joined: 17-January 03 From: Southern California Member No.: 37 Using LabVIEW Since:1988 LV:8.0.1 ,. ,.
|
Mike
I would, but I burned so much time on that project 5+ hours on the cursors. I just can't bring myself to go there again! I did learn that the problem really is with wfm datatypes passed to the graph and the X axis being in time. As we all know X-axis time plotting has always been whacky You have can't pass the X position value as an integer, you have to take the index and / dt value to get the 'time' position on the x axis. If I run into it again I'll holler. PS: They made some changes to this in LabVIEW 8 Regards Jack Hamilton
|
||
|
|
|||
Apr 25 2005, 10:40 AM
Post
#4
|
|||
![]() More Active Member Posts: 42 Joined: 15-October 04 From: Germany Member No.: 831 Using LabVIEW Since:1995 LV:8.2.1 ,7.0 ,5.1.1
|
Jack,
please just answer a simple question: Are you working with absolute or relative time in your Waveform Graph? Greetings Manfred
|
||
|
|
|||
Jan 24 2008, 12:36 AM
Post
#5
|
|||
|
I've come back for more. Member Posts: 2 Joined: 23-January 08 Member No.: 10564 Using LabVIEW Since:2006 LV:8.5 ,. ,.
|
I discoverd this bug after a few hours of checking and rechecking a peak detection algo - using cursors to display the 'found' peaks in a graph. However, my algo was find points just before or after the peaks... I've reproduced this bug (?) in Labview 8.5, with an XY graph doing much the same as Jack. The attached zip file contains a stripped down version of my program (originally written by my coworker, Andrew MacDonald). Run "RENA3 Data Viewer.vi" and follow the instructions. As Jack said, changing Cursor.PosX to Cursor.Index solves the problem. Fraser This post has been edited by fjharris: Jan 24 2008, 12:36 AM
Attached File(s)
|
||
|
|
|||
Jul 8 2008, 11:40 PM
Post
#6
|
|||
|
4 more posts to go! Member Posts: 6 Joined: 8-April 08 Member No.: 11233 Using LabVIEW Since:2006 LV:8.5 ,8.2.1 ,7.1.1
|
I've reproduced this bug (?) in Labview 8.5, with an XY graph doing much the same as Jack. The attached zip file contains a stripped down version of my program (originally written by my coworker, Andrew MacDonald). Run "RENA3 Data Viewer.vi" and follow the instructions. As Jack said, changing Cursor.PosX to Cursor.Index solves the problem. Fraser I have run into this issue when trying to set the cursor position in a waveform graph of an FFT. I was always getting a result that was just under the value I was trying to move the cursor to programmatically. I found that if I made the graph very large ~2000 pixels on the horizontal I would get the correct result. Another thing is the graph has 131072 points. I didn't want to keep my graph that large so I resorted to using index, which worked. However, that means I have to throw in some extra calculations because the indices are not the same as the x-axis values. Rio Christensen
|
||
|
|
|||
Aug 22 2008, 12:07 PM
Post
#7
|
|||
|
Active Member Posts: 21 Joined: 11-August 05 Member No.: 2740 Using LabVIEW Since:1999 LV:8.2.1 ,6.1 ,8.5
|
Did some
BUG: The Cursor value is ignored and another value, many indices earlier in the array, is used Hint: If I zoom in on the graph, the set cursor is more accurate.
Attached image(s)
Attached File(s)
|
||
|
|
|||
![]() ![]() |
| Time is now: 2nd December 2008 - 04:48 AM |