LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sinusoidale motion using XPS Controller NEWPORT

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.

0 Kudos
Message 1 of 7
(3,015 Views)

Hi Sidali,

I think that to change position sinusoidally as a function off time, you'll be wanting to vary velocity sinusoidally (perhaps "cosinusoidally" Smiley Wink ) 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!

0 Kudos
Message 2 of 7
(3,002 Views)
Thank you for your help. Will test this idea at Work this monday.
0 Kudos
Message 3 of 7
(2,978 Views)

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

 

 

 

 

0 Kudos
Message 4 of 7
(2,926 Views)

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! Smiley LOL 

 

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!

0 Kudos
Message 5 of 7
(2,904 Views)

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.

 

 

 

 

 

Download All
0 Kudos
Message 6 of 7
(2,875 Views)

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.

0 Kudos
Message 7 of 7
(2,822 Views)