I am quite new to PC-DMIS programing but understand the basics. I have a number of different diameters to measure on a part that changes from one part to another. Currently there are different programs for each part with the different diameters for each part measured in each of the programs. I would like to consolidate the different program to one where I could ask the user which part they are measuring using comments and logic and then pass an array of diameters to a routine, loop through the diameters to measure, return the results, and print the results. I could not find an existing forum that would provide a related example, if a simple example code could be provided with a loop through an array of 3 elements eg. 100mm, 120mm, and 150mm is sent to a routine that uses these as theoretical target diameters, takes 6 hits to measure the diameter, and then returns the measured diameter. Thank you.
↧