LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using LabView to serial interface my microscope how I make a user interface to make the stage move by pressing buttons?

I'm sorry to trouble you but I have LV 8.6 is there a way you could create a backwards compatible Vi? Please and Thank you.

0 Kudos
Message 11 of 19
(1,229 Views)

Sweetness worked out flawlessly. Thank you tbob.

 

Alright now, I had a question on how on the same project, but now I'm attempting to have an indicator to report the position of the stage on my microscope in the x,y,and z axis. I want it to automatically show up instead of pressing a button. Just whenever I have the program on it should report the position, when I move the stage by command, or by button, or by joystick. Basically attempting to set it it up where its on  at the same time the microscope is.

The while statement is the best I came up with. If you have any hints you can give me that would help. Please and Thank you.

0 Kudos
Message 13 of 19
(1,158 Views)

Ok, I'm close to figuring this out I think I have it now where I'm able to get numbers x,y,z everytime I move the stage but now I need to convert the string to numeric. To be shown on the numeric indicators. How can I do this?

0 Kudos
Message 14 of 19
(1,147 Views)

How is the value of X, Y, and Z changed?  Maybe by the buttons labelled Back Left, Backward, etc..?  How much does it change by?  You will have to have 3 shift registers, one for X, one for Y, and one for Z to hold their current value.  When the axis is changed, update the value and pass the new value to the shift register.  The best place to do this is in the event structure.  This is where the movements are captured.  As an alternative to 3 shift registers, you could bundle the 3 axes into one cluster and use one shift register for the cluster.  Then when one axis changes, unbundle that one element, change it, then rebundle.\

 

On your event, X-AXIS, Y_AXIS, Z_AXIS Value Change, since the values will be changed programatically (not by a user pressing an x-axis button) you will have to change the event to value(signaling).  Use value(signaling) whenever the program changes the value rather than a user changing a control value by clicking on a control or button.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 15 of 19
(1,146 Views)

@HumanCondition wrote:

Ok, I'm close to figuring this out I think I have it now where I'm able to get numbers x,y,z everytime I move the stage but now I need to convert the string to numeric. To be shown on the numeric indicators. How can I do this?


Look in the palette called String - String/Number Conversion.  There are lots of conversion functions there.

- tbob

Inventor of the WORM Global
0 Kudos
Message 16 of 19
(1,140 Views)

 


tbob wrote:

 

On your event, X-AXIS, Y_AXIS, Z_AXIS Value Change, since the values will be changed programatically (not by a user pressing an x-axis button) you will have to change the event to value(signaling).  Use value(signaling) whenever the program changes the value rather than a user changing a control value by clicking on a control or button.

 


On my event structure value(signaling) isn't an option it might be because I'm on LV 8.6. The problem is solved now, but not the way it should be I'm interested in the value(signaling) but it isn't an option should I just stay on what I have or find a better way?

 

0 Kudos
Message 17 of 19
(1,110 Views)

No.

 

Value(Signalling) is the property node you write to of a control or indicator (as opposed to just Value, or writing to the control's local variable) in order to have the Value Change Event of that control get fired.

0 Kudos
Message 18 of 19
(1,107 Views)

 


@Ravens Fan wrote:

No.

 

Value(Signalling) is the property node you write to of a control or indicator (as opposed to just Value, or writing to the control's local variable) in order to have the Value Change Event of that control get fired.


I didn't explain it very well.  Brain fart moment.  Thanx for clearing it up RF.

- tbob

Inventor of the WORM Global
0 Kudos
Message 19 of 19
(1,093 Views)