07-02-2022 08:05 AM
Hello,
Im a student at Trier university of applied Science and i'm currently working on a project that uses PCI-6221. In my project, i need to design a controller with matlab that regulates the displacement of an oscillating Hardware. The displacement is measuerd with an accelerometer.
My approach was that i generated data continously by queuing the data continually and useing the listener to generate the output data in background (i also did the same thing with preload and "RepeatOutput"), but now im facing the problem that i can't change the magnitude of the signal while it's running. I need to generate a sine wave with changeable magnitude value that continous to run until it's stopped manually.
My Question is: is it possible to do a Real-Time Control with the continous data generation?
I would be very happy if you can help.
Regards
Ali Al-Baidhani
07-18-2022 04:30 PM
This really has nothing to do with "signal conditioning" (not sure why you posted here) and MATLAB is of course not an NI product.
Not really sure about it, but a more appropriate place could be e.g. "Real-Time-Measurement-and-Control " or "Motion-Control-and-Motor-Drives ", but you need to be much more specific. For example what is the timescale of the oscillations (microseconds? Hours?). What is your OS? What are your programming skills?
The PCI-6221 is a "mature" product, i.e. basically obsolete. When things need to occur in parallel and deterministic, LabVIEW RT (or maybe even FPGA) is probably a better choice.
If you have a MATLAB specific question, there is probably a better place completely elsewhere.