From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-31-2023 10:05 AM
Hi,
I am currently designing an MRI loading device driven by a pneumatic circuit. I use Labview to control a pneumatic regulator (giving a voltage output), a solenoid valve (as a switch) and load cells to measure the force I apply to my object. I am giving a constant voltage and I am measuring a certain load. My goal is to create a loop that when the load changes, the voltage readjusts to the original value in order to keep the load constant for the whole MRI scan. I have managed to control the regulator, the valve and the load cells separately but I am struggling to connect them in a loop. I would be open to any ideas that would allow me to connect these daqs together in a loop.
I have attached my vi.
Thank you very much.
07-31-2023 10:14 AM
You haven't provided much detail, but off the top of my head, I'd say you are looking for some kind of simple PID control?
The PID Controller & Theory Explained - NI
08-01-2023 07:48 AM
So basically, I have used information from NI website and different forums to control the voltage-pressure of the regulator, the status of the solenoid valve (on/off) and reading the data from the load cells individually, using the NI USB6008 for the regulator and the solenoid and a different NI DAQ for the load cells. What I want to do is, firstly apply a certain voltage-pressure to the regulator. This will trigger the solenoid valve to the on status and move forward and apply a force to the load cells through a loading device that I have built. Then I want to implement an if/else condition. If the load changes between a certain range, then I want to give a signal to the regulator to increase or decrease the voltage and hence the pressure. This will control the status of the solenoid and hence the load will re-adjust in the original value. Is is this more understandable and if so, do you think that a PID controller is still the solution to this problem?
Thank you very much.
08-02-2023 08:54 PM
You promised, but forgot to attach, your VIs (don't apologize -- I do this all the time, absent-mindedly). If you are using LabVIEW 2022 or 2023, please "Save for Previous" and specify LabVIEW 2019 or 2021.
Bob Schor
08-03-2023 01:20 AM
08-07-2023 05:51 AM
I attached the code.