Skip to main content
Submitted by Paul on Tue, 01/06/2015 - 13:27

Comments 1

AndrewS on 01/12/2015 - 15:20

Hi Paul,
For Accelera controllers and the DMC-41x3, we have an added feature to the JS command that allows the program to pass up to 8 parameters to be used as local variables. This allows the user to create functions such as an average function for arrays. Galil recently added an example program that uses a subroutine called by JS to fill an array with analog input reads and return the average value for that array.

http://www.galil.com/download/dmc-code/analog_input_array_average.html