I am using LabVIEW to do a complete coding for a test rig that has heavy connected loads like 30kW DC drive, an array of hydraulic and pneumatic solenoids, inputs from a variety of stuff like user Push buttons, limits switches and such. Barring the DAS and plotting stuff, this is a job tailor made for a PLC. However I am doing it solely with a PCI6229 card and LV 7. Results are good.
As part of the sequence I have to capture / plot four analog channels ( rpm, flow, pressure, temperature ). And all four channels would qualify as DC signals. The maximum slew rate would be on the rpm which can go upto 1.0V/sec. What I have done is this :
- Have a master timed loop in the Main.vi running at 50ms capturing 1 sample / channel and storing this in a global variable. And plotting is done with a 10 sample moving average.
- The AutoMode.vi has another timed loop also at 50ms but with an offset of 10ms. This is coded as a state machine with a UI16 variable called "AutoStatus" which keeps track of the current state of the sequence.
- As of now things are fine with the plot also appearing quite normal. ( a typical screen shot is attached )
My question is this :
1. Is this the right approach in such sitautions where DAS is handled as part of machine control? Is LabVIEW the right choice or whether machine control is left to a PLC and LabVIEW does only DAS with a handshake with PLC ?
2.In my setup, suppose I want to increase the acquisition rate to 50 samples or 100 samples per channel and use the mean value instead of the single sample( to increase accuracy ) how do I do it ? And will there be any tangible benefit in doing it ?
3. If what I am doing is wrong, then what would be the right way ?
Thanks
Raghunathan
Raghunathan
LabVIEW to Automate Hydraulic Test rigs.