07-08-2010 12:11 PM
Why did this happen? I accidentally create a situation like the one in the VI and the control disappear with no error, then I fix it, but the control never got back to the original position.
Solved! Go to Solution.
07-08-2010 12:18 PM
You are doing...
Left = 0
Left = Left - 1000
So you are setting the left edge to a negative number.
All GUI postions are positive.
So LV is doing what you asked and moving the image too.... an imaginary plane?
Ben
07-08-2010 12:18 PM
You keep on shifting it left at each loop iteration.
Move the left position (read) to outside the while loop.
If you want flexibility to move it left at a different distance, either change the numeric constant to a control or inlcude buttons to reposition it.
As your code is, the control will dissappear because you are sending it "to infinity and beyond".
For amusement, run your code with Highlight Execution turned on.
07-08-2010 12:20 PM
@Ben wrote:
You are doing...
Left = 0
Left = Left - 1000
So you are setting the left edge to a negative number.
All GUI postions are positive.
So LV is doing what you asked and moving the image too.... an imaginary plane?
Ben
Ben,
Run the code in highlight execution mode. You'll see that it travels left. And without highlight, it travels very fast (nearing the speed of light.. Well, maybe not that fast.. but close. 😉
07-08-2010 12:29 PM
Are you wanting to set the picture in motion like in the attached vi?
07-08-2010 12:35 PM
@tbob wrote:
Are you wanting to set the picture in motion like in the attached vi?
NO Fair! No Fair!
You are answering the question they had in their head but NOT what was asked. Clarvioance is "right out!"
I'll let this one go for now...
Ben
07-08-2010 12:37 PM
@Ben wrote:
NO Fair! No Fair!
You are answering the question they had in their head but NOT what was asked. Clarvioance is "right out!"
I'll let this one go for now...
Ben
I'm reading your mind right now, Ben. I'll cut you some slack and not reveal your thoughts.
07-08-2010 12:37 PM
I know what I did wrong, the thing is that I w
ould expect an error or if I double click the terminal in the block diagram be able to move it back or resize it, because if you double click in the terminal then go to the front panel and select the resize menu, it says *You cannot resize the object in this dimension
07-09-2010 01:07 AM
Sorry, maybe I didn't explain myself (I'm not very good writing in english ), my question wasn't about the movement of the control, my question was why after running it I'm unable to find the control and unable to resize it or reposition it. I had to replace the control and wire all the properties nodes again.
07-09-2010 01:48 AM
Hi Rodrigo,
you are unable to find the control because you moved it to far to the left...
LabVIEW has some problems when FP elements are moved to far (in a common sense). Those problems include being not able to find/move that element or results in an object with a width of 0.
Why would someone move an element to positions of >16000 in either direction?