Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

actuator and Fan

Hi Guys,

 

I am trying to control an actuator and using the output from the actuator to control my DC fan. I want my actuator is at 0V the fan will stop and when the actuator is at 10V the fan should turn on. I have attached a copy of my code. Please can someone direct me as I am running out of time to complete this task, thanks.

 

Regards

 

0 Kudos
Message 1 of 5
(5,734 Views)

Hi Manni,

 

How far have you got in getting this working? I'd recommend you try and get one part of the code working first. I noticed there's a broken wire in the False case of your DC fan case structure.

 

Have you managed to get the Actuator working separately from the DC fan? I've spotted that you'll need to use the "Daqmx Start task" function in order to kick the task off and running in order to output data.

 

I'd give the example files a look by going to Help>>Find examples>>BrowseTab>>Hardware Input and Output>>DAQmx and then choose the type of signal you'd like to create.

 

I'd also recommend using a digital output if you have one that goes to 10V if you just need a flat 10V DC and 0V. This will make the coding a lot easier.

 

Thanks

James

James P
0 Kudos
Message 2 of 5
(5,657 Views)

Hi James,

 

Sorry for late reply, I have the actuator and the fan working. Howevger, I want to add my temperature VI measurement using RTD to the VI. I am using a PID controller, I want to use the voltage output from the PID controller to drive the actuator and the fan. So basically I wanto tune my PID so that it can give 0V to 10V. Please can you look at me VI that I attached and help me out with how to tune and implement this. Looking forward to hear from you soon, thanks.

 

 

Download All
0 Kudos
Message 3 of 5
(5,627 Views)

Hi Manni,

 

On your create daqmx virtual channel for the resistance, you can left click and select analog input, temperature and then RTD which might make it a bit easier.

 

Just to work out how it's working. It looks like you're taking the RTD measurement and then performing some maths on that in the funcion node. That's then passed into the PID function with your setpoint and the gain values for P, I and D to give you your output?

 

What exactly are you trying to do with the PID? Ie.... what are the inputs and what is the desired output meant to be?

 

Thanks

James

James P
0 Kudos
Message 4 of 5
(5,616 Views)

Hi James,

 

I was trying to tune my PID so that I can generate 0v-10v. I have been working on it and can I have achieved what I was trying to do.

 

Regards

0 Kudos
Message 5 of 5
(5,590 Views)