Sub VI and controls inside it Questions

Hi

I was programming a sub vi and i have controls that are the numeric type. When i changed the data entry of one of the controls from0.0 to 0.01 that one works. But when i do this to another control of the same kind it does not work and when i select the data entry property I see the 0.01 entry from the last control even though i put it in the last one.

When i run it the first control iterates at 0.01 while the second control iterates by 1.0. Is this a bug that i found or am I doing something incorectly.

Another thing that I found was when the sub vi is running after robot main is running in the volatile mode (clicking the arrow) and when i go to the controls I can’t type in to them with numbers or even select it. Is this because it is in a sub vi of is it a bug again?? If just being in a sub vi causes this bug then no controls that virtual controls will work by typing in them like in teleop or auto.

Any advice would be appreciated.

VIs can be executed directly using the run button, or they can be used as subVIs. When used as subVIs, any controls connected to the connector pane will be passed in and out each call. Any values that you type in are temporary, and if the calls are fast, you cannot edit at all. If you are testing, you can set a breakpoint before the value is read and type in temporary values when at the breakpoint.

If you primarily want to use the controls for input, and you do not need them as parameters, disconnect them from the connector pane.

As for the first issue, is is possible that the first numeric is a float and the second an integer? LV won’t let you enter 0.1 into an integer.

Greg McKaskle

ok that is helpful but when i have these controls they are not connected to the connector pane, which i am assuming is the input output part of the symbol in the top right, are not connected to that at all. I can’t select them and type in values for example if the default value is 0 and I want to get to 100 I must hold the up arrow all the way to 100. This control is orange so real numbers should work. So decimals are legal for this control.

Another thing with last years LV I could , if i wanted type in a decimal value or any number and the orange class would take that value and it would work.

I am able to change the iteration to .01 on one of these controls in its properties panel, but I can’t on others. I can type in decimals but the iteration is stuck at whole numbers. so if I type in .25 and hit the arrow i have 1.25 entered in the control.

I can copy and paste that first control and the copy works just as the first, I can use decimal values. But that seems cumbersome.