LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

Tags
This content has not been tagged yet
 
Reply to this topic Start new topic
> Graph Cursor XY Position Bug, X postion in time may not locate right
JackHamilton
post Apr 15 2005, 03:34 PM
Post #1


Very Active
Group Icon
***

LAVA Host
Posts: 124
Joined: 17-January 03
From: Southern California
Member No.: 37
Using LabVIEW Since:1988
LV:8.0.1 ,. ,.
United States United Kingdom Nothing Selected


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... frusty.gif

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. lightbulb2.gif

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


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Ad
post Apr 15 2005, 03:34 PM
Post #















Tags
This content has not been tagged yet
Go to the top of the page
Quote Post
Michael_Aivaliot...
post Apr 15 2005, 03:40 PM
Post #2


Confucius say, Man with tight trousers is pressing his luck.
Group Icon
*****

Admin
Posts: 2322
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


Jack, could you post an example VI for this?

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


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
JackHamilton
post Apr 25 2005, 02:06 AM
Post #3


Very Active
Group Icon
***

LAVA Host
Posts: 124
Joined: 17-January 03
From: Southern California
Member No.: 37
Using LabVIEW Since:1988
LV:8.0.1 ,. ,.
United States United Kingdom Nothing Selected


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 wacko.gif

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


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
malef
post 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
Germany Nothing Selected Nothing Selected


Jack,

please just answer a simple question:
Are you working with absolute or relative time in your Waveform Graph?

Greetings

Manfred


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
fjharris
post 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 ,. ,.
Nothing Selected Nothing Selected Nothing Selected


QUOTE (JackHamilton @ Apr 15 2005, 07:34 AM) *
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)
Attached File  XY_Graph_Cursor_Bug.zip ( 141.76K ) Number of downloads: 118
 


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
Rio C.
post 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
us_utah Nothing Selected Nothing Selected


QUOTE (fjharris @ Jan 23 2008, 05:36 PM) *
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


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post
thols
post 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
Sweden Nothing Selected Nothing Selected


Did some frusty.gif with the same bug in LabVIEW 8.5.

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 Image Attached Image
 

Attached File(s)
Attached File  lvBUGCursor.zip ( 51.03K ) Number of downloads: 6
 


Tags
This content has not been tagged yet
Go to the top of the page
+Quote Post

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   0 BienEntendu 2408 25th December 2003 - 01:55 PM
Last post by: BienEntendu
No New Posts   0 Bryan 1850 13th May 2004 - 03:34 PM
Last post by: Bryan
No New Posts   0 websid 1957 31st May 2004 - 10:29 AM
Last post by: websid
No New Posts   0 JohnRH 1427 13th May 2004 - 08:03 PM
Last post by: JohnRH


Reply to this topicStart new topic

 




Time is now: 10th October 2008 - 11:13 PM