LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Overlaid Cursor's Movement

Solved!
Go to solution

Hi all,

 

Scenario

 

I have a graph with 2 cursors say Cur_1 and Cur_2. Cur_1 can have any Y value and Cur_2 has a Y value that is "Num" less than the Cur_1 Y value where "Num" can be any number.

 

Example, If Cur_1 = 50 and Num = 10, Then Cur_2 = 40

 

When ever Cur_1 is moved, Cur_2 is programmatically moved accordingly. Cur_2 can be moved independently but its Y value cannot be greater than Cur_1 Y value.

 

Problem


Now the problem is when the value of "Num" is "0" then both Cur_1 and Cur_2 are overlaid. In such cases, i am not being able to move the lower cursor unless I move the upper cursor. And in my code as I expained above, Cur_2 has to move relative to the Cur_1 when ever Cur_1 is moved. So Even if i think of moving the upper cursor (Cur_1) and then move the lower one, it is not possible as the lower cursor has to automatically move according to the Cur_1 movement.

I would be glad if anyone can help me with any kind of suggestions.

Thanks and Regards,
Nitz

 

(P.S. -  Sorry for such a long description. I don't have a code to share with you all. So I had to expain it this way.)  

0 Kudos
Message 1 of 6
(2,839 Views)

Didnt totally follow but you should look at cursor events (move, grab....) and cursors can be then manipulated via property nodes.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 6
(2,836 Views)

Hi

 

How about a numeric control to enter Y. That way you could move the 2nd cursor from underneath the 1st one.

 

Regards

Florian

0 Kudos
Message 3 of 6
(2,828 Views)

Hi Florian, 

 

Numeric control is something which would prefer if there's no other solution. I wanted to grab the lower cursor somehow when both the cursors are overlaid. 

 

Hi Falkpl,

 

I tried all the events and properties, couldn't find a proper way of doing it. 😞

 

Any help?

 

Thanks and Regards,
Nitz 

0 Kudos
Message 4 of 6
(2,809 Views)

Why don't you have a check box to make the cursor 1 and 2 Visible so that you can access only the cursor you want?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 5 of 6
(2,802 Views)
Solution
Accepted by topic author NitzZ

Hi Anand,

 

Making the cursor visible or invisible wont disable it.. It will still be enabled causing the below cursor not to move. I didn't get a specific solution. So I had to go ahead with a work around. I have attached it here.. You may have a look if you wish.. 🙂


Regards,
Nitz 

0 Kudos
Message 6 of 6
(2,788 Views)