Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Camera File (.icd) for Dalsa Piranha 4 (P4-CM-08K070)

Solved!
Go to solution

Hi Sebastian,

 

Thank you for your fast response.

Your camera file includes the following settings for the serial interface:

 

      Serial {
         Baud (9600)
         SerialDisabled (No)
         Databits (8)
         Parity (N)
         DTR (High)
         RTS (High)
         Stopbits (1)
         TermChars (>)
      }

 

If you use the same and it works,our problem wont be there(We thought, it could be the termination character....).

In general we are using C++ Visual Studio Express.

But at the moment, were not even able to set any attribute by using the NI Automation Explorer.

 

Thanks and

Best Regards,

 

Sven

0 Kudos
Message 21 of 23
(1,869 Views)

Hi Sven

 

It's been a while, since I last worked with that camera.

I definitely never used the MAX to change any settings in the camera, and I am not sure any more whether it worked with the Camera File Generator.

 

You can try what happens if you set "\r\n" as termination character. But I have always added those manually in my program.

Note also that you have to send an ESC character as the first thing in order to switch the communication protocol from GenCP to ASCII Three-Letter-Codes.

 

Unfortunately, I cannot tell you how to access the serial camera interface under C++, but the manual mentions some libraries (clallserial.dll and clserxxx.dll) for that.

 

 

Regards,

Sebastian

0 Kudos
Message 22 of 23
(1,845 Views)

Hi Sebastian,

 

I think its working now.

 

The ESC-character was the key.

The problem was, we needet the Camera File Generator to use the included serial interface.

In this interface its only possible to dispaly the ESC-key as HEX (0x1B). Otherwise it will not work.

 

Thank you for your help!

 

Sven.

0 Kudos
Message 23 of 23
(1,819 Views)