02-27-2015 09:54 PM
Hello
I want to do an hamonic measurement with Lta HS actuator controled wih XPS q8 controller nwport.
My QUSTION is : how to make a sinusoidale motion using the Xps controller ?
Thank you in advance.
02-28-2015 01:06 AM - edited 02-28-2015 01:15 AM
Hi Sidali,
I think that to change position sinusoidally as a function off time, you'll be wanting to vary velocity sinusoidally (perhaps "cosinusoidally" ) as a function of time.
Use the XPS Jog mode to change the stage's velocity while stage is moving.
Of course you'll want to keep velocities within stage-limits.
In order to have more direct control over position while changing velocity, you could have a loop rapidly poll position and set velocity based on position. That way you could easily shift the middle of sinusoidal motion.
Hope it helps!
02-28-2015 05:21 AM
03-03-2015 10:38 AM
Hello
I have tested your ideas but the probleme is that in Jog motion, the velocity is cost. and it is impssible to connete sinus wave vi to the jog VI ?!
If it is possible, sent me screen about your solution.
thank you very much
03-04-2015 10:08 PM - edited 03-04-2015 10:09 PM
Hi sidali,
I'm sorry but don't have the hour(s) it would take to generate an example for you.
If by "screen about your solution" you mean a screen-shot of my existing code, it would be impractical to share; you'd need many screen-shots to see all the relavant pieces. What I have is (much) more complicated than what you need.
.
... but you should be able to get something working!
Build this project "incrementally", start by building a VI that follows "Jogging" example-flowchart in XPS Programmers Manual:
1) Opens connection
2) Kill Group
3) Initalize Group
4) Home Group
5) Enable Jog Mode
6) Change velocity "GroupJogParametersSet"
7) Wait ms
😎 Change velocity "GroupJogParametersSet"
9) Wait ms
10) Change velocity "GroupJogParametersSet"
11) Wait ms
12) DIsable Jog Mode
13) Close TCP Connection
Next, modify this VI to execute a For Loop after "Enable Jog Mode"
In the ForLoop, send each velocity from an array of velocities (you assign velocities to achieve sinusoid).
Disable/Close after For Loop.
Next, modify the VI to execute a while loop after "Enable Jog Mode"
In the while loop, read position and set velocity according to position.
Wire a "Quit" boolean/button to the While-loop "Condition" terminal.
Cheers!
03-06-2015 11:26 AM
Hello
Thank you very much for your replay.
I have preparing somme VI ( Jog) ( ATTACHED) but all of them dont work.
In the first one, I send each velocity from an array of velocities and accelérations. the GroupJogParametersSet read the first line only.
In the second VI (JOG2), I send the velocities and accelérations for 20 GroupJogParametersSet (I assign velocities to achieve sinusoid), I have error 9 or 17
I the last one i used the structure seance in order to séparate the GroupJogParametersSet.
Where is the probleme ?!!!
Thank you in advance.
03-09-2015 10:42 PM - edited 03-09-2015 10:43 PM
Hi sidali,
Sorry for late reply. I thought I would install LV2014 last weekend (to see your code) but never got around to it.
If you want to back-save to LV2013, it would make it easier here.
Cheers.