cancel
Showing results for 
Search instead for 
Did you mean: 

Editing an existing graph

SOLVED
Rashid-Malik
Active Participant

Re: Editing an existing graph

Yes my great man, you certainly did it. Thanks a zillion!

 

Have a very, very pleasant day!

Rashid-Malik
Active Participant

Re: Editing an existing graph

Message contains a hyperlink
Thanks , for intervening on the coding style side, but he did solve my problem.
Rashid-Malik
Active Participant

Re: Editing an existing graph

Another kudos for you, my mentor!
Knight of NI

Re: Editing an existing graph

Message contains an image Message contains an attachment

Based on your description of (3) I don't see why you can't simply use a cursor for this. That's what they were designed to do. In fact, you don't need to do any of the code that Cory showed. All you need to do is this:

 

 

Message Edited by smercurio_fc on 01-19-2009 10:39 AM
Cory_K
Active Participant

Re: Editing an existing graph

Smercurio, your solution moves the cursor to the location the same way my VI did.

However, you did nothing to check if it was near a maximum.

Cory K
Knight of NI

Re: Editing an existing graph

The maximum of what? The user didn't specify any "maximum" restriction. What was requested was to select the "vertex" (i.e., data point) closest to the click, and if clicking someplace else, move to the "vertex" that's closest to that. What does maximum have to do with this?
Cory_K
Active Participant

Re: Editing an existing graph

Message contains a hyperlink

smercurio_fc wrote:
The maximum of what? The user didn't specify any "maximum" restriction. What was requested was to select the "vertex" (i.e., data point) closest to the click

Look up the word vertex in the dictionary. The vertex, by definition, means the highest point of something, ie the maximum
Cory K
RavensFan
Knight of NI

Re: Editing an existing graph

Message contains a hyperlink

Cory K wrote:

smercurio_fc wrote:
The maximum of what? The user didn't specify any "maximum" restriction. What was requested was to select the "vertex" (i.e., data point) closest to the click

Look up the word vertex in the dictionary. The vertex, by definition, means the highest point of something, ie the maximum

I have to disagree here.  If you look at the definition, you'll also see that "node" is a definition and is the common meaning if you are dealing with any type of geometrical or mathematical context.  If the original poster wanted the maximum, the he would have said either "maximum" or "peak".

Rashid-Malik
Active Participant

Re: Editing an existing graph

Message contains a hyperlink

Kudos to you ! Now that is ,indeed, a more elegant solution. Loads of thanks to you, my guru.

 

Have a very pleasant day.

Rashid-Malik
Active Participant

Re: Editing an existing graph

Yes Cory! That definition does ,indeed, fits my needs.