|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
Re: Changing default values
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.
|
|
#3
|
|||
|
|||
|
Re: Changing default values
Quote:
It seems when I run the code I couldnt do that because just one of the motors works! |
|
#4
|
|||||
|
|||||
|
Re: Changing default values
Your description doesn't seem to be giving us enough information. Can you attach a copy of your vi, or at least show us a picture of your program so we can look at it?
|
|
#5
|
|||
|
|||
|
Re: Changing default values
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. |
|
#6
|
||||||
|
||||||
|
Re: Changing default values
I only see one victor open in the begin.vi you posted. Maybe that's why only one victor works.
|
|
#7
|
|||
|
|||
|
Re: Changing default values
Sorry I uploaded the wrong code! We figured out that one of the victors was burnt out.
|
|
#8
|
||||
|
||||
|
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) |
|
#9
|
||||
|
||||
|
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. |
|
#10
|
|||||
|
|||||
|
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. |
|
#11
|
||||
|
||||
|
Re: Changing default values
Quote:
![]() |
|
#12
|
||||
|
||||
|
Re: Changing default values
And FYI, this was the clue.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|