07-07-2011 11:02 AM
Hello there, I have recently made a program for the PMC-100 Piezo Motor Controller. I am using subVIs provided by micosHowever the program stops running everytime I make a command, so that I have to click run which triggers the selector panel for each command. How can I tweak the program so that the program will be constantly running and have both STOP and EXIT button, where STOP terminates the current movement, and EXIT will exit the program. Do I need a while loop for checking STOP inside a while loop for checking EXIT? Thanks for your time!
07-08-2011 05:41 PM
Hi there j49sun,
It would be best to have the outer while loop based on the exit button condition. You could set up an inner while loop to stop and re-enter different commands, but then you would need a way to start that loop back up again. This could be done more efficiently with a case or event structure triggered by these button presses. Let us know if you have any questions on implementing this.
Thank you,
Deborah Y.
07-12-2011 09:16 AM
Hi Deborah,
Thanks for your insight! I have another question. I have a labview program that scans and produces frequency on to a graph, my job is to implement the piezo stage into the program so that it moves according to the scanned frequency. My prof said the piezo will start somewhere in the middle and will then fluctuate left and right depending on the frequency scanned. I am really confused on how to start this task as a novice coder and was wondering if you can give me some ideas to start off with. I would really appreciate your help!! Thanks.
Derek
07-15-2011 09:27 AM
Hi Derek,
With a limited idea of your entire application, here are some suggestions. Can you explain just a bit more what this will look like? The graph will be frequency vs. what? Are you planning to display this piezo stage position on the same graph? Here's an example for multiple plots and scales on one graph. Since the sub VI's are third party I'm not sure what communication protocol they use to actually move the physical stage. You could grab the scalar frequency value and move the stage right for values above x threshold and left below it. Hope this helps!
Thank you,
Deborah Y.
04-22-2013 04:17 AM
Hi...
I am quiet new to the LV platform,,Right now,,,am doing one project....I need to control the Piezo stage which has x and y axis,,,For example,,, while moving X axis ,,for every axis step size movement,,there must be a time delay...which can be adjusted by the user...
How to delay the movement for every step size?
Can anyone help me in this thing..
Thanks and Appreciated...
04-23-2013 10:31 AM
venkish,
I would recommend creating a new thread as your question is different from the original question on this thread. I would also recommend posting some screenshots, etc to provide a little more information about exactly what you are trying to do.