ADLINK Technology NEON-2000-JNX Series Manual

ADLINK Technology NEON-2000-JNX Series Manual

Hide thumbs Also See for NEON-2000-JNX Series:

Advertisement

Quick Links

NEON-2000-JNX Series
DI/O Function Library Reference
Manual Rev.:
Revision Date:
Part No:
1.1
July 15, 2021
50M-00006-1010

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NEON-2000-JNX Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ADLINK Technology NEON-2000-JNX Series

  • Page 1 NEON-2000-JNX Series DI/O Function Library Reference Manual Rev.: July 15, 2021 Revision Date: 50M-00006-1010 Part No:...
  • Page 2 Revision History Revision Release Date Description of Change(s) 2021-04-07 Initial release Remove Neon_GetDOState function; 2021-07-15 update Neon SDK installation info.
  • Page 3: Preface

    NEON-2000-JNX FLR Preface Copyright © 2021 ADLINK Technology, Inc. This document contains proprietary information protected by copy- right. All rights are reserved. No part of this manual may be repro- duced by any mechanical, electronic, or other means in any form without prior written permission of the manufacturer.
  • 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.
  • Page 5: Table Of Contents

    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...
  • Page 7: Introduction

    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>...
  • Page 9: Function Library

    NEON-2000-JNX FLR Function Library 2.1 List of Functions Category Function Device Control Neon_GetDeviceInfo Neon_GetDINums Neon_GetDONums Neon_SetDOState Neon_GetDIState Neon_SetDIO0Config Neon_GetDIO0Config Neon_SetDITriggerPolarity Neon_GetDITriggerPolarity Neon_SetDITriggerCallback Neon_SetStrobeOutEnable Neon_GetStrobeOutEnable Neon_SetStrobeOutDelay Neon_GetStrobeOutDelay Neon_SetStrobeOutPulseWidth Neon_GetStrobeOutPulseWidth Neon_SetExposureDelay Neon_GetExposureDelay Neon_SetDebounceTime Neon_GetDebounceTime Neon_SetStrobeOutInvertedPolarity Neon_GetStrobeOutInvertedPolarity Function Library...
  • Page 10: Function Library

    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] …...
  • Page 11: Dio Functions

    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...
  • Page 25: Important Safety Instructions

    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.
  • Page 28 This page intentionally left blank.
  • Page 29: Getting Service

    San Jose, CA 95138, USA Tel: +1-408-360-0200 Toll Free: +1-800-966-5200 (USA only) Fax: +1-408-360-0222 Email: info@adlinktech.com ADLINK Technology (China) Co., Ltd. 300 Fang Chun Rd., Zhangjiang Hi-Tech Park Pudong New Area, Shanghai, 201203 China Tel: +86-21-5132-8988 Fax: +86-21-5132-3588 Email: market@adlinktech.com...

Table of Contents