Page 4
Conventions Take note of the following conventions used throughout this manual to make sure that users perform certain tasks and instructions properly. Additional information, aids, and tips that help users perform tasks. NOTE: NOTE: Information to prevent minor physical injury, component dam- age, data loss, and/or program corruption when trying to com- plete a task.
NEON-2000-JNX FLR Table of Contents Revision History..............ii Preface ..................iii 1 Introduction ................ 1 Setting Up the Neon SDK ............ 1 2 Function Library ..............3 List of Functions..............3 Function Library ..............4 2.2.1 Device Control Function ..........4 2.2.2 DIO Functions.............
Page 6
This page intentionally left blank. Table of Contents...
NEON-2000-JNX FLR Introduction The NEON-2000-JNX Function Library Reference provides neces- sary API details for functions that can used to develop applications in C/C++. When the NEON-2000-JNX driver is installed, functions can be directly called with the Neon SDK (the driver is pre- installed at the factory).
Page 8
4. Build Neon_Setting Sample: #cd /usr/src/Neon/Sample/Neon_Setting #make 5. Build Neon_ListenTrigger Sample: #cd /usr/src/Neon/Sample/Neon_ListenTrigger #make 6. Run Neon_Information Sample: #cd /usr/src/Neon/Sample/Neon_Information #sudo ./NeonInformation 7. Neon_Setting Help: Execute the application with no parameters. #cd /usr/src/Neon/Sample/Neon_Setting #sudo ./NeonSet 8. Neon_ListenTrigger Sample: The program will receive a trigger event via a callback function. Use <Ctrl>+<c>...
2.2 Function Library 2.2.1 Device Control Function Neon_GetDeviceInfo Retrieves device information. Syntax C/C++ int Neon_GetDeviceInfo (char* sVersion, int iSize) Parameter(s) sVersion: An allocated buffer must be assigned to read the device version. The device information format is: [Device1 Name]:[Version] [Device2 Name]:[Version] …...
NEON-2000-JNX FLR 2.2.2 DIO Functions Neon_GetDINums Retrieves the number of DIs. Syntax C/C++ int Neon_GetDINums (unsigned int* iCounts) Parameter(s) iCounts: Returns the number of DIs. Return Code Returns true if successful, otherwise returns COMMON_ERROR. Neon_GetDONums Retrieves the number of DOs. Syntax C/C++ int Neon_GetDONums (unsigned int* iCounts)
Page 12
Neon_SetDOState Turns DO on or off. Syntax C/C++ int Neon_SetDOState (unsigned int iIndex, int iState) Parameter(s) iIndex: Sets the Index of the DO; zero-based. iState: Sets the state of the DO: 1 is on, 0 is off. e.g. Neon_SetDOState (1,1) -> Sets DO channel 1 to on Return Code Returns true if successful, otherwise COMMON_ERROR.
Page 13
NEON-2000-JNX FLR Neon_SetDIO0Config Sets the DIO0 config type. DIO_CONFIGTYPE_DIGITAL means the DI0 and DO0 are the same as the general DI and DO. DIO_CONFIGTYPE_SNAPSHOT means the DI0 and DO0 are for triggering the camera and strobe out. Syntax C/C++ int Neon_SetDIO0Config (int iCfg_type) Parameter(s) iCfg_type: The config type value can be 0 or 1.
Page 14
Neon_GetDIO0Config Gets the DIO0 config type. DIO_CONFIGTYPE_DIGITAL means the DI0 and DO0 are the same as the general DI and DO. DIO_CONFIGTYPE_SNAPSHOT means the DI0 and DO0 are for triggering the camera and strobe out. Syntax C/C++ int Neon_GetDIO0Config (int* iCfg_type) Parameter(s) iCfg_type: The config type value can be 0 or 1.
Page 15
NEON-2000-JNX FLR Neon_SetDITriggerPolarity Sets the DI trigger polarity. (Default is 0) Syntax C/C++ int Neon_SetDITriggerPolarity (unsigned int iIndex, int iPositiveTriggerPolarity) Parameter(s) iIndex: Sets the DI Index; zero-based. iPositiveTriggerPolarity: The trigger polarity. Refer to DI_TRIGGERPOLARITY. enum DI_TRIGGERPOLARITY DI_TRIGGERPOLARITY_FALLING=0, DI_TRIGGERPOLARITY_RISING, DI_TRIGGERPOLARITY_BOTH, DI_TRIGGERPOLARITY_MAXIMUM Return Code Returns true if successful, otherwise COMMON_ERROR.
Page 16
Neon_GetDITriggerPolarity Gets the DI trigger polarity. (Default is 0) Syntax C/C++ int Neon_GetDITriggerPolarity (unsigned int iIndex, int* iPositiveTriggerPolarity) Parameter(s) iIndex: Gets the DI Index; zero-based. iPositiveTriggerPolarity: The trigger polarity. Refer to DI_TRIGGERPOLARITY. enum DI_TRIGGERPOLARITY DI_TRIGGERPOLARITY_FALLING=0, DI_TRIGGERPOLARITY_RISING, DI_TRIGGERPOLARITY_BOTH, DI_TRIGGERPOLARITY_MAXIMUM Return Code Returns true if successful, otherwise COMMON_ERROR.
Page 17
NEON-2000-JNX FLR Neon_SetDITriggerCallback Sets the DI trigger callback function. When the DI is trig- gered, the callback function will be executed. Syntax C/C++ int Neon_SetDITriggerCallback (NEON_DITRIGGER_CALLBACK callback) Parameter(s) callback: The NEON_DITRIGGER_CALLBACK function pointer. typedef void (*NEON_DITRIGGER_CALLBACK) (unsigned int index, int currentState); index: The trigger index of the DI.
Page 18
Neon_SetStrobeOutEnable Enables/disables the strobe out trigger when DIO0 is set as DIO_CONFIGTYPE_SNAPSHOT. Syntax C/C++ int Neon_SetStrobeOutEnable(int iEnable) Parameter(s) iEnable: 1 = enable, 0 = disable. Return Code Returns true if successful, otherwise COMMON_ERROR. Neon_GetStrobeOutEnable Gets the enabled state of the strobe out trigger when DIO0 is set as DIO_CONFIGTYPE_SNAPSHOT.
Page 19
NEON-2000-JNX FLR Neon_SetStrobeOutDelay Sets the delay time of the strobe out in microseconds when DIO0 is set as DIO_CONFIGTYPE_SNAPSHOT. Syntax C/C++ int Neon_SetStrobeOutDelay (unsigned int iMicrosecond) Parameter(s) iMicrosecond: The number of microseconds for the strobe out delay. (0 - 4294967295, map to 1 - 4294967296 μs) Return Code Returns true if successful, otherwise COMMON_ERROR.
Page 20
Neon_SetStrobeOutPulseWidth Sets the pulse width of the strobe out in microseconds when DIO0 is set as DIO_CONFIGTYPE_SNAPSHOT. Syntax C/C++ int Neon_SetStrobeOutPulseWidth (unsigned int iMicrosecond) Parameter(s) iMicrosecond: The number of microseconds for the strobe out pulse width. (0 - 4294967295, map to 1 - 4294967296 μs) Return Code Returns true if successful, otherwise COMMON_ERROR.
Page 21
NEON-2000-JNX FLR Neon_SetExposureDelay Sets the delay time of the exposure in microseconds when DIO0 is set as DIO_CONFIGTYPE_SNAPSHOT. Syntax C/C++ int Neon_SetExposureDelay (unsigned int iMicrosecond) Parameter(s) iMicrosecond: The number of microseconds for the exposure delay. (0 - 4294967295 μs) Return Code Returns true if successful, otherwise COMMON_ERROR.
Page 22
Neon_SetDebounceTime Sets the debounce time when DIO0 is set as DIO_CONFIGTYPE_SNAPSHOT. Syntax C/C++ int Neon_SetDebounceTime(unsigned int iNtimes40ns) Parameter(s) iNtimes40ns: The number of microseconds for setting debounce time. (0 - 16777215, 0 is bypass; others (1 - 16777215) * 40ns) Return Code Returns true if successful, otherwise COMMON_ERROR.
Page 23
NEON-2000-JNX FLR Neon_SetStrobeOutInvertedPolarity Sets the inverted polarity of Strobe Out. If set to 1, the out- put polarity will be inverted. (Default is 0) Syntax C/C++ int Neon_SetStrobeOutInvertedPolarity(int iIn- vertedPolarity) Parameter(s) iInvertedPolarity: Invert the polarity of strobe out. (0 is normal open and 1 is normal close) Return Code Returns true if successful, otherwise COMMON_ERROR.
Page 24
This page intentionally left blank. Function Library...
NEON-2000-JNX FLR Important Safety Instructions For user safety, please read and follow all instructions, Warnings, Cautions, and Notes marked in this manual and on the associated device before handling/operating the device, to avoid injury or damage. S'il vous plaît prêter attention stricte à tous les avertissements et mises en garde figurant sur l'appareil , pour éviter des blessures ou des dommages.
Page 26
Never attempt to repair the device, which should only be serviced by qualified technical personnel using suitable tools A Lithium-type battery may be provided for uninterrupted backup or emergency power. Risk of explosion if battery is replaced with one of an incorrect type;...
Page 27
NEON-2000-JNX FLR BURN HAZARD Touching this surface could result in bodily injury. To reduce risk, allow the surface to cool before touching. RISQUE DE BRÛLURES Ne touchez pas cette surface, cela pourrait entraîner des blessures. Pour éviter tout danger, laissez la surface refroidir avant de la toucher.
Need help?
Do you have a question about the NEON-2000-JNX Series and is the answer not in the manual?
Questions and answers