02-23-2015 07:57 AM
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
02-23-2015 09:06 AM
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
02-26-2015 04:43 AM
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.