Results 1 to 6 of 6

Thread: Unique name and serial number

  1. #1
    Join Date
    Jul 2011
    Posts
    4

    Question Unique name and serial number

    Hi,

    I'm using the C++ Wrapper, and the serial number from IC_GetSerialNumber don't match with the serial number in the unique name (for the same camera, of course)
    From IG_GetSerialNumber: 554762870
    Serial number in the 'unique name': 21110276 (from 'DFx 72BUC02 21110276')

    It must be the same, no ?

    How I can do to convert it ?

    Thanks !
    Benj

  2. #2
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,898

    Re: Unique name and serial number

    Hi,

    Before I start checking on my own: do you pass a char* to IC_GetSerialNumber()?
    Code:
    char Serial[10];
    strcpy( Serial,"");
    IC_GetSerialNumber(hGrabber,Serial);
    printf("Serial is : %s",Serial);
    Best regards
    Stefan
    IC Imaging Control Support

  3. #3
    Join Date
    Jul 2011
    Posts
    4

    Re: Unique name and serial number

    Hi,

    Yes, I pass a char* as in your code.

    Thanks.

  4. #4
    Join Date
    Jul 2011
    Posts
    4

    Re: Unique name and serial number

    Hi,

    I answered, but my message isn't here...

    Yes I pass a char* as in your code, and the same string is always returned.

    Thanks.

  5. #5
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,898

    Re: Unique name and serial number

    Hi,

    your answer is here. However, I found the solution:
    Code:
    char szSerialNumber[20];
    int TempSerial;
    IC_GetSerialNumber(hGrabber, szSerialNumber);
    TempSerial = atoi( szSerialNumber);
    sprintf(szSerialNumber,"%08X",TempSerial);
    printf("Serial is : %s",szSerialNumber);
    For some reason the serial number is returned as decimal and must be converted.
    Best regards
    Stefan
    IC Imaging Control Support

  6. #6
    Join Date
    Jul 2011
    Posts
    4

    Re: Unique name and serial number

    Hi,

    Great, it works fine !

    Thanks very much!

Similar Threads

  1. Serial Number of Camera
    By vzv55 in forum IC Imaging Control .NET
    Replies: 1
    Last Post: August 16, 2010, 16:27:41
  2. DFG/1394-1 serial number?
    By Unregistered in forum IC Imaging Control C++ Class Library
    Replies: 1
    Last Post: December 3, 2004, 15:00:26
  3. How cn I get the Serial Number From Device
    By webmice in forum IC Imaging Control C++ Class Library
    Replies: 4
    Last Post: July 29, 2004, 11:07:01
  4. I lost Serial Number and ID.
    By Unregistered in forum IC Imaging Control ActiveX
    Replies: 1
    Last Post: October 14, 2003, 07:29:15
  5. IC 1.3 serial number
    By Unregistered in forum IC Imaging Control ActiveX
    Replies: 1
    Last Post: April 30, 2002, 14:02:25

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •