ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PID tuning array instance

silly question but how can I stick an input for the class type?

 

The create control option does not work here? XD

 

Best Wishes

Andrew

0 Kudos
Message 61 of 65
(1,436 Views)

@AndrewIons01 wrote:

silly question but how can I stick an input for the class type?

 

The create control option does not work here? XD


I don't know what that means.

 

You can create class controls.

 

If you expect a cluster, than that's not possible. By design. You can only unbundle\bundle the elements in the class.

0 Kudos
Message 62 of 65
(1,432 Views)

When i create a control, i only see a grey square like this, how do I create a control where i can give the user control over which camera is which and which ones can be activated. 

AndrewIons01_0-1627917055275.png

 

 

Best Wishes 

Andrew 

0 Kudos
Message 63 of 65
(1,428 Views)

@AndrewIons01 wrote:

When i create a control, i only see a grey square like this, how do I create a control where i can give the user control over which camera is which and which ones can be activated. 

AndrewIons01_0-1627917055275.png


Those are class controls, so you can't change the data directly.

 

Make a VI that sets the camera.

 

This could be the init. So the init would have a numeric, string or whatever, and pu tit in the class's private data.

 

Init Class.PNG

 

 

 

0 Kudos
Message 64 of 65
(1,425 Views)

Hi Wiebe 

 

I am making progress with the OO version of the code and it seems to be coming along very nicely. 

 

I do have another question however?

 

I was trying to tune my PID controller again and ended up sending the beams off of the screen, I am aware that the method I am using will cause some degree of movement in the other motors but I don't see why I should be causing the beams to go off of the screen. 

 

I have a feeling its could be a problem with the transformation matrix. This is supposed to be a matrix that relates change in position with change in voltage/ number of steps. 

 

Would anyone be able to check to see if this matrix is built correctly?

 

Best Wishes 

Andrew 

0 Kudos
Message 65 of 65
(1,412 Views)