LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PID tuning array instance


@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...

0 Kudos
Message 41 of 65
(1,336 Views)

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

0 Kudos
Message 42 of 65
(1,326 Views)

@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.

0 Kudos
Message 43 of 65
(1,323 Views)

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

0 Kudos
Message 44 of 65
(1,316 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 45 of 65
(1,302 Views)

Hi Gerd

 

 

What version of LabVIEW did you use?

 

AndrewIons01_0-1627478699801.png

 

0 Kudos
Message 46 of 65
(1,303 Views)

Hi Andrew,

 

I used LV2020.

 

Now I converted to LV2017…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 47 of 65
(1,299 Views)

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

0 Kudos
Message 48 of 65
(1,293 Views)

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. 

AndrewIons01_0-1627483375880.png

 

0 Kudos
Message 49 of 65
(1,287 Views)

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?

AndrewIons01_0-1627900846159.png

 

 

Best Wishes 

Andrew

0 Kudos
Message 50 of 65
(1,249 Views)