|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Use/Conversion of Cypress Output Values
The config VI you mentioned has help that explains its purpose ...
"This VI returns sets the mode of each digital channel. All 16 channels can be inputs with configurable pull up/down resistors and can be driven as outputs. Some channels have additional capabilities as listed in the mode ring. Additionally, this VI configures the PWM and encoders for the I/O device connected to the driver station." You have the choice of doing the configuration using the dialog on the DS, or on the robot's code, whichever you think will be more predictable. You can also reconfigure during the match, via the robot code, but that would be unexpected. The other VIs in the palette allow you to configure the other types of I/O and set/get the various values. It is a dense little thingy, so feel free to ask questions if you have them. Greg McKaskle |
|
#2
|
||||
|
||||
|
Re: Use/Conversion of Cypress Output Values
Dense little thingy indeed.
How would I set the Digital Mode? Looks like I have to bundle a cluster with values attached to it, but what values? Also, would setting the Digital Mode for [9-16] to Input instead of Output allow me to extract more from the GetEnhancedDigitalInput VI? |
|
#3
|
|||
|
|||
|
Re: Use/Conversion of Cypress Output Values
Quote:
To extract data from the digital inputs, you use the Get Enhanced Digital Input VI, and it returns an array of sixteen values. There can be up to sixteen inputs. If you haven't configured a pin to be an input, then the value for that position is not all that useful and may in fact be misleading. Greg McKaskle |
|
#4
|
||||
|
||||
|
Gee thanks, but it doesn't work.
I got the CONFIG good. The INPUT array only returns from 0-8. So how will the CONFIG tell the INPUT to change its domain of values? |
|
#5
|
|||||
|
|||||
|
Re: Use/Conversion of Cypress Output Values
The Array To Cluster function creates a cluster of 9 elements by default. Right-click on it and select Cluster Size... from the popup menu to change it to 16.
|
|
#6
|
||||
|
||||
|
Re: Use/Conversion of Cypress Output Values
Quote:
Would you accept a virtual hug of graditude from me? Thanks a lot! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|