LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

actuation of 2 seperate actuators with different frequencies

I need to control 2 seperate actuators using the parallel port on my laptop. The 2 actuators have to be controlled either seperately or simultaneously. The 2 actuators have to have 2 different modulation frequencies.

I have worked it out such that they can run with the same modulation frequency, but I'm at a loss as to how to program them to run at different frequencies.
Can someone please shed some light?
Thanks,
aeroengg
0 Kudos
Message 1 of 9
(3,501 Views)
Are you having trouble creating the 2 different waveforms, or sending the 2 waveforms over the parallel port?? 

You mentioned that you are able to get them both to work at one frequency but not at 2 different ones.  I am not sure what the protocol is for your setup, but does it allow you to send one command for acutator 1 and another for actuator 2??  How do you tell the actuaotr to work at a certain freq, do you send an array of numbers that correlate to a saquare wave (or some other waveform), or do you have to send data at te freq u want them to "actuate"?

I guess that we need some more information on your setup to give you some better advice.

Kenny


Kenny

0 Kudos
Message 2 of 9
(3,484 Views)
Kenny,

Thanks for your reply.

The actuators are 2 pneumatic cylinders. I have attached my VI to this message to try and answer your questions better.

Please let me know what you think.
Thanks,

aeroengg
0 Kudos
Message 3 of 9
(3,478 Views)
Looking at your vi is a little difficult without comments (in the block diagram), but I will try to make some comments.
 
One thing I noticed is that the Out Port.vi is supposed to have a 16 bit number entered in it, is there a reason that you are converting all of the numbers to U8??
 
It seems that you could create 2 subvis.  One would handle the calulations and configuration for acutator 1 and the other for actuator 2.  That would just entail you copying/selecting your sequence structure and adding a second set of controls for actuator 2 (frequency and duty cycle).  That way you could have the time delay be independent for each subvi.
 
I will try to modify your vi later today if you cannot get it to work and will post the vi if you need it.
 
Kenny
Kenny

0 Kudos
Message 4 of 9
(3,472 Views)
Kenny,

Did you get a chance to look at it? I still haven't been able to proceed.

tnx,
aeroengg
0 Kudos
Message 5 of 9
(3,457 Views)
Here is a vi that I tried to simplify rewal fast.  It will still take some tweaking by you, but it should give you a starting point.  I added a lot of comments to the vi so you should be able to follow it.  Try to work through it a bit, and see what happens.  You are your own best teacher Smiley Wink
 
If you have some more questions, feel free to post them.
 
Kenny
Kenny

0 Kudos
Message 6 of 9
(3,449 Views)
Kenny,

Could you please save it so I can open it up on Version 7.1? I think you've made the VI on 9.1 and I'm unable to open it.
Once I open it I'll look into it and go from there.
Thanks for all your help though.

Regards,
aeroengg
0 Kudos
Message 7 of 9
(3,447 Views)
0 Kudos
Message 8 of 9
(3,445 Views)
Got it!! Thanks Smiley Happy
0 Kudos
Message 9 of 9
(3,442 Views)