LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Closed loop control in force : How to ?

Hi,

 

            I have a Compact RIO (controller 9024, Chassis 9118, modules 9514 (control) and 9237 (load cell acquisition). I want to control it in force feedback i.e. the measurement of the load cell used as a feedback by the PID control.

 

I would like to base my programm on the example Servo Interface (9514).lvprj which use the softmotion toolbox. I'm a beginner in Labview, control and acquisition so I'm not sure about how to do it.

 

Here is the step that I think :

 

1. In the FPGA VI, replace the encoder 0 (local variable) in the PID part of it (see attached file name PID control) by the 9237 I/O.

 

For the load cell part, I inspire my programmation by the exemple NI 9237 Getting started.lvprj.

 

2. In the FPGA VI, add the NI 9237 FPGA while loop (see attached file name FPGA While Loop).

 

3. Drag and drop the Data FIFO and the subVI folder from the NI 9237 Getting started.lvprj to the NI 9237 Getting started.lvprj. 

4. In the RT VI, add the Stop subVI to the case Shutdown (see attached file name Shutdown).

5. In the RT VI, add the Set data rate, Start and Wait subVIs to the case Transition to config (see attached file name Transition to config). Should I put it in the case Config?

 

Is there any mistake in my procedure?

 

For the moment, the program does not work because it seems to introduce a fault when I deploy the CompactRIO Controller. If you have any idea of the problem!

 

 

 

0 Kudos
Message 1 of 4
(3,355 Views)

From what you have described, everything seems to be fine.  You say that you are getting an error when you try to deploy the cRIO.  What errors are you getting?  Could you elaborate? 

 

Brandon Treece

Applications Engineer

National Instruments

0 Kudos
Message 2 of 4
(3,308 Views)

Hi,

 

 I have been able to compile the FPGA VI without problem but when I run the RT VI, the connection is good for 1 sec and it says not able to communicate with RT controller.

 

Mat

0 Kudos
Message 3 of 4
(3,301 Views)

It sounds like you might have something blocking your ethernet connection to your RIO.  Try disabling your firewall on your computer.  If you can not disable it, make sure that port 44525 is open.  If you could also post a screen shot of the error that says that you cannot communicate with the controller, that would be helpful.

 

Brandon Treece

Applications Engineer

National Instruments

0 Kudos
Message 4 of 4
(3,281 Views)