07-28-2021 03:41 AM - edited 07-28-2021 03:41 AM
@AndrewIons01 wrote:I will send you the PID vi
Please post here. If the problem is with the PID, isolate that and skip the images. We only need to know what's absolutely necessary. The more you post, the fewer people will look at it and the more risk of getting comments that are not related to the problem.
@AndrewIons01 wrote:
What is OO?
I have never heard of this term before?
A technique called object orientation.
It's what you're doing. You treat the camera as an object. But that's just the beginning...
07-28-2021 04:39 AM
Hi Wiebe
I will then post the PID vi as soon as I can.
At the moment I am trying to get a transformation matrix made (or it will be useless). I am working remotely at the moment so it may take a little longer.
Just so i am clear, what do I need to do to make this run for you. I have replaced all inputs with controls or constants with sensible values (other than the transformation matrix). what else needs to be done?
Best Wishes
Andrew
07-28-2021 04:46 AM - edited 07-28-2021 04:47 AM
@AndrewIons01 wrote:I will then post the PID vi as soon as I can.
At the moment I am trying to get a transformation matrix made (or it will be useless). I am working remotely at the moment so it may take a little longer.
Don't worry, we'll take things as they come... Or not (we have pain work and time off too).
@AndrewIons01 wrote:Just so i am clear, what do I need to do to make this run for you. I have replaced all inputs with controls or constants with sensible values (other than the transformation matrix). what else needs to be done?
We'd need all sub VIs too. Or at least the sub VIs that are not shipped with LabVIEW.
You can Save As... the VI (right click the VI in the project or by menu) and select "Duplicate hierarchy to new location". Then zip that location. That should include everything needed.
07-28-2021 06:32 AM
Hi
Here is the PID vi and its dependencies, it is called untitled project 3.
Have a look and see how you get on, if anything is unclear please contact me.
Best Wishes
Andrew
07-28-2021 08:20 AM
Hi Andrew,
@AndrewIons01 wrote:
Here is the PID vi and its dependencies, it is called untitled project 3.
Have a look and see how you get on, if anything is unclear please contact me.
You have a "funny" understanding of "put all into one folder"…
See the attachment for some changes to your code and folder layout.
Your VI(s) miss default values: please provide typical values in all frontpanels! As long as there are a lot of empty arrays non of your PID calls will produce any reasonable outputs…
07-28-2021 08:25 AM
Hi Gerd
What version of LabVIEW did you use?
07-28-2021 08:41 AM
07-28-2021 09:00 AM
Hi Gerd
Thank you for your reply. I see that the code is much less of a headache now. Thank you so much.
I have now replaced default values in the code for all front panels. Would you be happy to try to run it and see if anything happens. The PID input parameters are similar to he ones i was obtaining when i was trying to tune it some time ago.
Best Wishes
Andrew
07-28-2021 09:45 AM
Hi All
Im currently tuning loop 1 and seem to have some success so far. I will proceed with loops 2,3 and 4 and let you know if I run into difficulties. The plots called (loop 2 3 and 4) are showing movements as a result of the mathematics used to produce the voltage outputs.
Fingers crossed that they work as expected now.
08-02-2021 05:40 AM
Hi Wiebe
I hope that you are well.
I am reading the OO approach to this code and am stuck. I have made an object called "Camera Data in" which contains the IMAQdx session, error and camera activate.
I would then like to open the camera session. I see this at the moment, what do I do?
Best Wishes
Andrew