Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

position control of motor using time

Hi everyone

 

I am making control in LabVIEW to Reset/increase/decrease the width of a cavity.

In order to control the depth, I am using time as the variable to increase, decrease or reset cavity. (for example, if cavity takes 10second to reach its maximum position, and I need it set it at half position, I use time of 5s)

 

I am doing it using sbRIO-9627 with digital outputs of RMC board.

Please see my Host FPGA file – which has three enum – Reset, Expand, Contract  (connected to case structure). Which opens respective files of VI on FPGA, provides a necessary output signal to DIO and closes.

Now I want to implement a variable, which keeps track of the position of cavity depth. For example, if I expand the cavity to 2 seconds, it tells me the cavity is placed at 2s. Later if I contract cavity by 1 second, it minus the value of 2-1 and give me 1 as an answer and so on. (In case of Reset logic it show that cavity is at 0 positons)

I am having a hard time thinking about logic.

Please see attached pictures to get a better understanding of my case. I think of a preliminary implementation (not right at the moment), please kindly tell me how can I implement that.

 

Download All
0 Kudos
Message 1 of 2
(2,080 Views)

Hi Satoo,

 

Sorry about the late reply on this post too! If you are still wondering about this, have you considered using an FGV and simply calling this to create a counter? 

FGV Counter.png

Thanks,

Nick

 

0 Kudos
Message 2 of 2
(1,986 Views)