The following example opens the file irvine.pix in the demo directory for read access and displays the type of each channel.
local integer tfid, i
tfid = DBOpen( GetPCIHOME() + "/demo/irvine.pix", "r" )
for i = 1 to DBChannels(tfid)
Print "Channel ", i, " is of type ", DBChanType(tfid,i)
endfor
call DBClose( tfid )
Output
Channel 1 is of type 8U Channel 2 is of type 8U Channel 3 is of type 8U Channel 4 is of type 8U Channel 5 is of type 8U Channel 6 is of type 8U Channel 7 is of type 8U Channel 8 is of type 8U Channel 9 is of type 8U Channel 10 is of type 16S Channel 11 is of type 16U
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.