![]() |
Changing default values
I am having problem with changing default values!
I right-clicked on the constant and chose Make the current value default but it seems it doesnt work. |
Re: Changing default values
1 Attachment(s)
I'm not sure what your talking about maybe take a screenshot. What I think is happening is that you need to put a constant coming off of whatever port your using.
|
Re: Changing default values
Quote:
It seems when I run the code I couldnt do that because just one of the motors works! |
Re: Changing default values
Quote:
|
Re: Changing default values
1 Attachment(s)
Quote:
I double click on one of the victors and change its PWM channel and set that as the default value from that window. Also the other victors PWM default value changes. How can I solve this problem. |
Re: Changing default values
Quote:
|
Re: Changing default values
Quote:
|
Re: Changing default values
Your code looks perfect. There's no reason to make the values "default", wiring up constants is fine.
(You might want to have your motor names be more description than "motora" though) |
Re: Changing default values
Quote:
What you need to do is set these values to constants in your Begin.vi, in the same manner that the Default Framework does. |
Re: Changing default values
Oh! Thanks, David, now I see what he's talking about.
To change the PWM channel assigned to a Victor, you don't mess with anything inside the Motor Open vi. You change the value of the constant wired to its PWM channel input terminal. Hover the cursor over the constant until it turns into a hand icon, then you can use the constant as a popup menu and select the channel you want to use. As a general rule, you should never be changing anything inside the library VI functions. |
Re: Changing default values
Quote:
|
Re: Changing default values
Quote:
|
| All times are GMT -5. The time now is 09:22. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi