Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Basler 801k Communication issue

Hi,
 
I have a PCI-1428 framegrabber connected to a Basler 801k linescan camera. I can get image data back from the camera, but I am unable to send commands to the camera via LabVIEW. I have the correct icd file from ni.com/camera.
 
When I try to send a command I get an error 1074397038 'NI-IMAQ: The requested serial termination string was not found in the returned buffer'. I have tried the VI's NI provide for the Basler camera, but I'm still getting the same error.
 
I have been in contact with Multipix (Basler tech supprt) who said that the termination string should be '0x03', but if I put that into the icd file in the 'TermChars' function then I get an error 1074397037 'NI-IMAQ: The serial read did not complete within the specified timeout period'. I have tried varying the timeout, but I always get the same error.
 
The CCT+ utility supplied with the camera has always worked. I have disabled the auto refresh and set the CCT+ utility to keep the port open as recommended by other forum threads, but I'm still getting the errors.
 
Multipix told me that Basler recently changed their binary protocol from 1 to 2. I'm wondering if this is the source of the issue.
 
Can anyone make any suggestions on how to fix my problem or is anyone else having the same problem?
 
Thanks!
 
Al
0 Kudos
Message 1 of 2
(3,551 Views)
Hi Wizbit,

We have solved this problem on the phone and through e-mail, but for others that might have a similar problem with the Basler 801K camera, here is the solution.

You do not need to modify the camera file, or use the serial termination charater.
Use the 801K camera file, then instead of using the Basler VI serial commands, use the low level IMAQ functions to get and set attributes in the camera file. (See attachments Set ExSync Period.vi and Get ExSync Period.vi saved in LV 7.1)

Regards
JamesC
NIUK & Ireland
Download All
0 Kudos
Message 2 of 2
(3,541 Views)