11-03-2006 04:33 PM
11-07-2006 10:05 AM
11-07-2006 11:23 AM
11-07-2006 12:57 PM
Rico,
I am attaching a VI that computes the length (in pixels) of a line drawn in an external display. There are many ways to do this, and this example may not be the most optimal to your application, but hopefully it will help demonstrate how to convert the data. Please let me know if this is helpful.
Chris M.
Applications Engineer
National Instruments
11-07-2006 08:00 PM
Chris,
I think what I am having the most trouble with is figuring out the type of inputs that the function "point distances" would take to give the right result. I will use the later portion of the VI you posted into my VI to see if I get what I need.
Regards,
Ricardo
11-08-2006 08:43 AM
Ricardo,
The IMAQ Point Distances VI accepts an input that is an array of clusters. Each cluster contains two integer values corresponding to X and Y coordinates. The array must contain at least two clusters (each cluster representing a point), and the output will be an array of distances corresponding the the number of line segments defined by the points. For example, if the input contains two data points, then the output will contain one number. If the input contains three data points, then the output will contain two numbers. Let me know if this helps.
Chris M.
Applications Engineer
National Instruments