Aquire multiple channels sensor data using image acquisition tool
조회 수: 9 (최근 30일)
이전 댓글 표시
I am using a sensor which requires 1X-2YE as the sensor geometry. I have a framegrabber Xtium2 CXP PX8 from Teledyne to grab the data from the sensor. The preview in the CamExpert from Teledyne is full resolution(13392x9528). So, I installed the hardware support dalsa to the image acquisiton toolbox and loaded the camera profile from the output of CamExpert (Ver: 8.65).
However, when I try to access the camera, I only got 13392x4764 per frame. I think because of the sensor geometry it has two channels in the output. And I only have access to one channel. I wonder how can I access data from both channels?
Any help will be appreciated!
댓글 수: 0
답변 (1개)
Isha
2025년 9월 2일
Hello,
You can check for available video sources by listing them in MATLAB:
info = imaqhwinfo('dalsa');
disp(info.DeviceInfo)
Look for multiple devices or video sources—sometimes different channels appear as separate devices or sources. To access each channel, try creating video input objects with different device IDs:
vid1 = videoinput('dalsa', 1); % First channel
vid2 = videoinput('dalsa', 2); % Second channel (try incrementing the device ID)
You can also inspect the source properties to see if you can select the channel:
src = getselectedsource(vid1);
disp(src)
If you are only able to acquire each channel separately, you can combine the images manually:
frame1 = getsnapshot(vid1);
frame2 = getsnapshot(vid2);
fullFrame = [frame1; frame2]; % Vertical concatenation
For more details, refer to the documentation:
Hope this helps.
참고 항목
카테고리
Help Center 및 File Exchange에서 National Instruments Frame Grabbers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!