LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Select multiple lines for line profiles in CVI/Vision

Hello,
 
I'm using LabWindows/CVI together with NI Vision and want to let the user select multiple lines to show the line profiles.
 
By using imaqConstructROI2 I can't select multiple lines.

By using imaqSelectLine, I can draw multiple lines with the line tool in the modal window, but it seems like Vision only saves the first selection.
 
In Vision Assistant it is possible to select multiple lines, and the line profile of all of them is shown.
 
How can I do this in CVI?
 
Regards
 
Marc
0 Kudos
Message 1 of 3
(3,230 Views)
Hi Marc,

please look on the following example on your harddisk:
C:\Programme\National Instruments\CVI80\samples\Vision\2. Functions\Analysis\Line Profile.prj
(For more than one line press the Ctrl button)

BR,
ThSa
0 Kudos
Message 2 of 3
(3,210 Views)

Hi Thomas,

thanks for your reply. But this sample doesn't solve my problem. I want to select multiple lines in an image, save each in a different array and show the profiles in different plots. This doesn't work with your example, only the last selected line is shown in the profile and saved in the LineProfile structure, though multiple lines are shown on the image.

Right now, in my program I'm calling imaqSelectLine several times. So the SelectLine-window opens several times and I select one line each time. But I would like to do this just one time in one window, if it is possible. Do you understand what I mean?

Regards

Marc

0 Kudos
Message 3 of 3
(3,180 Views)