10-25-2012 02:25 PM
We need to bypass the NI Vision Acquisition/IMAQ serial level and access the CameraLink serial layer directly for a custom baud rate.
The clsernat.dll is present but cannot locate documentation for the exposed functions in clsernat.dll. NI did not include a .h file or documentation regarding the typedefs for the following functions :
clFlushPort
clGetErrorText
clGetManufacturerInfo
clGetNumBytesAvail
clGetNumSerialPorts
clGetNumSerialPortsAtIP
clGetSupportedBaudRates
clSerialClose
clSerialInit
clSerialRead
clSerialWrite
clSetBaudRate
( Reasoning- IMAQ will occasionally validate the camera file and change the baud rate. The end result is missmatched baud rates corrupting the serial data channel.)
Any assistance would be appreciated.
Steven.
10-27-2012 03:56 PM
Hello Steve,
I have begun looking into documentation regarding the expected parameters for these functions. You mentioned that IMAQ will validate the camera file and change the baud rate, is this because the camera file being used is not configured correctly? If so, you could consider editing the camera file using the NI Camera File Generator.
Cheers,
Joel
10-27-2012 04:53 PM
10-29-2012 06:22 PM
Hello Steven,
Unfortunately the only supported method for this communication would be using the NI IMAQ software and using the Baud rates that are configured in the camera file.
The supported baud rates are:
I will continue to look into this, however I think that it is unlikely that I will be able to provide any additional information regarding this communication.
Cheers,
Joel
10-29-2012 07:48 PM
10-30-2012 10:04 AM
Joel,
Appologize for the earlier typos. (Was responding through a browser on a touchscreen phone.)
The baud rate in this particular case is 57.6K.
The camera link cl serial interface will work fine all day communication at 57.6K using the MFG's test utility (when the camera file has the default baud rate of 9.6K.) The NI document which also confirms this is a viable speed for the 1428 is http://digital.ni.com/public.nsf/allkb/359CC1956ABBB6F3862575A500674FEC and 57.6K is a listed speed for the 1433 board.
What is strange is other manufacturers provide the c++ header files, libs, and the required dll but NI only includes the dll in the IMAQ package. (Especially since NI provided an early implementation to the Camera Link working group with these files.)
Thank you,
Steven.
11-05-2012 11:44 AM
Joel,
Could you provide an update on your progress?
Thank you,
Steven.
11-07-2012 01:25 PM
Still waiting on a response...
11-08-2012 06:32 PM
Hello Steven,
The only additional information that I have found regarding calling into this dll is a community example which implements some of the functionality that you are looking for.
Send Serial Command To Fram Grabbers in VBAI
https://decibel.ni.com/content/docs/DOC-25042
cheers,
Joel
11-08-2012 07:36 PM