|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: Shooter Aiming with Tables
@Turing'sEgo Thank you!
@Ether That is my plan. Sometime this week we'll be able to begin testing with our actual shooter. I am not actually sure how to write code to reference a lookup table. I was going to start looking for related Labview documentation. If anyone has a link they can post here I'd appreciate it. Thanks, Benjamin |
|
#17
|
|||||
|
|||||
|
Re: Shooter Aiming with Tables
Here is an example of lookup tables from the NI developer community:
This one is good for use with a spreadsheet. https://decibel.ni.com/content/docs/DOC-14653 It may need a bit of updating to LabVIEW 2015 (what we're using for FRC 2016). A little less complex is something like Interpolate 1D Array found in the palettes under Programming->Array or maybe Search Ordered Table.vi found under Mathematics->Interpolation & Extrapolation Last edited by Mark McLeod : 06-02-2016 at 17:24. |
|
#18
|
|||
|
|||
|
Re: Shooter Aiming with Tables
Mark beat me to it, but I generally use the Interpolate 1D function.
Your lookup table is an array of number. They can be typed into a constant or be read from a file as a 1D array. Be sure to run the subVI and enter some values by hand and ensure that the output values make sense. Greg McKaskle |
|
#19
|
|||
|
|||
|
Re: Shooter Aiming with Tables
So I'm looking into using the Interpolate 1D Array. How can I convert my spreadsheet into the 'array of numbers or points' that the function requires? Also, should I store the file in the project folder?
Thanks. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|