06-28-2010 03:22 PM
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.
06-28-2010 03:25 PM
07-01-2010 03:42 PM
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.
07-01-2010 04:33 PM
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?
07-01-2010 04:35 PM
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.
07-01-2010 04:45 PM
@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.
07-02-2010 11:09 AM
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?
07-02-2010 11:20 AM
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.
07-02-2010 01:01 PM
@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.