imgSessionSerialReadBytes causes timeout (re-post in appropriate thread)

Hello

I'm trying to control a device called "Cedip Titanium", it is an older version of the http://www.flir.com/thermography/eurasia/en/content/?id=11354. The following code generates a timeout error:

IMAQSession* session = 0; int result = InitializeAquisition((void**)&session);

    char* buffer = new char[8192];    buffer[0] = 0x02; // start byte   buffer[1] = 0x04; // command name size   buffer[2] = 0x00; // command name size (2x bytes)    buffer[3] = 0x43; // command name (C) buffer[4] = 0x43; // command name (C)    buffer[5] = 0x4D; // command name (M) buffer[6] = 0x2C; // command name (,) (CCM, = check communication)   buffer[7] = 0xFF; // control bit  buffer[8] = 0x03; // end byte

   uInt32 bufferSize = 9;

  result = imgSessionSerialFlush(session->Sid);  result = imgSessionSerialWrite(session->Sid,buffer,&bufferSize,2500);

    bufferSize = 11;

  result = imgSessionSerialReadBytes(session->Sid,buffer,&bufferSize,2500);

The last line (imgSessionSerialReadBytes) freezes during the time specified in the timeout (a really high timeout setting does not help) and then he returned the error code:-1074397037 (IMG_ERR_SERIAL_READ_TIMEOUT). Passage to imgSessionSerialRead results in the same error as imgSessionSerialReadBytes.

Manufacturing did not any file from camera to load in the measurement and automation, so I had to create my own following standards from the manufacturing:

"The speed of transmission of communication camera can be defined by orders. Cirrus tries to establish communication to the highest possible baud rate. There are 57000 or 115000 according to the length of the cable.

The camera is initiated to the power upward with 9600bds, 8 bits, 1 bit of high, no HW or SW control bit. »

I also tried to change some of the settings (ect buad rate) with no luck. Try to send a command using the test-thing under the series settings in the tool OR Camera File generator always returns a table (8192 bytes) containing \x00\x00\x00... (so basically, an empty array is returned). I read a few other posts on this forum, most of them indicate you should add an endpoint-char. The Protocol specifies a stop bit 0 x 03 who should be added at the end of each packet. I tried to add, but it didn't matter, and what I've read, imgSessionSerialReadBytes ignores the chariot of retirement anyway.

I use the 1427 grabber (PCI-express) card which runs under 64-bit Win2k8.

I tried to solve it by myself for a few days, but I'm out of ideas. Any help would be greatly appreciated!

Best regards, Olof

Problem solved. The baud rate should have been instead of 9600-115200.

Tags: NI Software

Similar Questions

  • Can not post response to thread unique iMessage

    In a thread of iMessage instant message which lasts about 6 months, with two other people, I can is no longer a 'box' answer - there is no place for me to respond to messages. I can answer on my iPhone but not on my Macbook Pro. I can answer (the answer will appear) in other threads.

    I restarted the program and then I rebooted the computer. It happened yesterday also, then he ceased to occur. And then he started again. Any ideas? My chat with my friends is not essential, but it's nice. It would be nice to be able to keep it going on my Macbook Pro and my iPhone.

    The system version: OS X 10.10.5 (14F1509) Yosemite, 8 GB memory, 2.2 GHz Intel Core i7, Late 2011 MacBook Pro

    Caryn

    Are balloons of message in the cat blue or green?

  • Sansa Fuze does not turn. * Officially solved! See post 7 in thread for answer! *

    OK, so I put a video that I made using the Sansa Media Converter. I made the video in one. AVI using SUPER and put the file in SMC. I waited on hidden. I'll be back and conversion was hung and stopped at 74. It wasn't a huge deal. It's happened before. I decided to come back in a bit to see if it continues the conversion. When I came back, my drive was off and the percentage bar had not moved. I removed the player and tried to turn it on. It turned on and "refreshed media." Immediately after, however, it stops immediately. I tried a soft reset (button / waiting for 15-60 seconds) and he came for a few seconds only to stop again. More funny thing is though, it actually stopped by itself. He even went to the screen 'goodbye'. Now it won't even turn. He lights and turn off by itself. Sometimes I can turn on soft reset, only that it is black screen. Even when I plug it to my computer, it will be either turn on, black screen after a few seconds or not at all.

    Player: Sansa Fuze 8 GB

    Computer OS: Windows XP SP2

    Firmware: 1.01.15

    Please, I beg you. This will be my second player perfect condition which has out crapped on my Sansa. I had an e2600 who had a hard drive failure after only 8 months. If I have a solution that States "buy a new player", I'm afraid I have to leave Sansa.

    Any help will be greatly apprieciated.

    Very well. I think I finally found the problem of this. The problem seems to lie in the SCM. It seems very harmful effects if during a conversion process, the computer transfers to virtual memory. An update of the firmware seems to correct this problem. Again, I will never video convert on this computer.

    I'll give this time, Sansa. Is not your fault.

    thread

  • Why a lot of these posts in this thread? I don't understand

    MOD.

    There is a lot of confusion out there, a large number of new messages every day and for the same things and so the info is here and there and you don't understand how to fix something if all the info is in 3 mln jobs...

    Is this normal?

    Hi, you will always get that I have fear or someone add a new question on an old NET that pushes just that thread up... it is easier for some people to ask a question rather than seek a simiar one or do a search...

  • My post has been merged and said even customer same question and this post that has been merged had nothing to do with questions, I asked in this thread or elsewhere and is no answer. Can someone please would divide him regularize?

    Hi, at this link:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/5468b6de-46BF-496F-b9e3-dc8a1bf36345

    The post at the 3rd position starting with Dear Kevin merged by microsoft personnel, but the post has nothing to do with the other post in this thread, or any other question I posted.

    Can we please split it out for me.

    The title should read Attn: Kevin Hau - about your post on 25 August, microsoft updates.

    Thank you very much
    :)

    Hi Michelle,

    Welcome to the Microsoft Answers site!

    I've divided your son and responded to them respectively. You can find both threads in the below given links.

    Attn: Kevin Hau - about your post on 25 August, Microsoft updates

    http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/07a9978c-3464-46DA-83b0-2118e932e106/

    Windows update does not update windows defender and so tried to update via windows defender that shows also no update

    http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/5468b6de-46BF-496F-b9e3-dc8a1bf36345

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Monitor poster No. signal then goes to sleep

    I don't know if I write this problem in the right category but that's.

    Lately, whenever I turn on my computer (Pavilion Elite m9291d), my (HP w2207h) display will show a message "not - no Signal, HDMI - VGA signal". "." Then the monitor goes to sleep and blackens. I have to restart 8 times or more, and only by chance I could access my computer.

    Yesterday, I managed to go to the HP online support and to go to the control panel (in Classic view), go to the option to, and click "NEVER" in the screen and the computer advised to sleep options. Then after you save the settings, I'm supposed to go to Device Manager and disable the mouse and keyboard. After that, I have to restart my computer.

    Some can please help me and enlighten me with a few questions:

    (1) why didn't I go to "Classic view" and not the normal display of Vista?

    (2) if it is the problem of the screen, then why do I have to uninstall the keyboard and mouse?

    (3) Will cause the Vista Live Update upset to the setting of the computer?

    I have not tried the above steps again because today, I managed to get into the computer by chance. Help, please.

    Hi all

    If your screen is black when leaving "sleep" mode, this is the thread to follow: follow black after coming out of sleep mode

    Please let me know your results. If the steps above do not work, please provide the following information:

    1 the model number of the computer. If you need help to find this information, please see this site: Product Guide to find your mobile phone number

    2. the operating system. If you need help to find this information, please visit this site in order to determine the Windows operating system.

    3. This involved on some programs or all programs?

    4. have you installed new software or drivers on this computer, before the problem appeared?

    5. what measures have been attempted from my first post on this thread, and what were the results?

    Mario

  • trying ad new thread on sourceforge forums shareaza, firefox problem loading page gives, I completely turned on cookies

    When I try to post a new thread in any forum of shareaza at sourceforge.net, firefox 3.6.10 on xp + sp3 gives me

    "The page is not redirecting properly".

    Firefox has detected that the server redirects the request for this address in a way that will never end.

       *   This problem can sometimes be caused by disabling or refusing to accept cookies."
    

    I completely turned on cookies. The address referenced when I tried to send a https://sourceforge.net/apps/phpbb/shareaza/posting.php?mode=post & f = 2 & sid = 22ac067ee9e50a7115ac4f3b57e4b6ee
    After clicking on a new topic on
    https://sourceforge.NET/apps/phpBB/Shareaza/viewforum.php?f=2 & sid = 22ac067ee9e50a7115ac4f3b57e4b6ee

    See:

  • State authorization of catalyst C6509 aaa post = error

    Worm of GBA: 5.2

    L3 Switch: C6509

    IOS version: s72033-ipservices_wan - mz.122 - 33.SXI7.bin

    All C6509 has the following aaa config:

    cisco-admin privilege 15 secret 5 username #$% ^ & * gfnEhts$ 5678 #.

    AAA authentication login default group Ganymede + local

    the AAA authentication enable default group Ganymede + activate

    AAA authorization config-commands

    AAA authorization exec default group Ganymede + local authenticated by FIS

    15 AAA authorization commands default group Ganymede + local authenticated by FIS

    AAA accounting exec default start-stop Ganymede group.

    orders accounting AAA 1 by default start-stop Ganymede group.

    orders accounting AAA 15 by default start-stop Ganymede group.

    RADIUS-server host xx.xx.xxx.12

    RADIUS-server timeout 15

    RADIUS-server application made

    RADIUS-server key bonnefin

    DSW4 remote session, note the prompt:

    User name (local user name request)

    DSW3 remote session, note the prompt:

    user name (right off the bat, I know that's asking on behalf of Ganymede)

    DSW2 remote session, note the prompt:

    user name (right off the bat, I know that's asking on behalf of Ganymede)

    I can ping my ACS server or DSW.

    AAA authorization results of debugging:

    DSW4

    16:47:32.660 March 5: AAA/AUTHOR (915254943): permission post = ERROR

    16:47:32.660 March 5: tty1 AAA/AUTHOR/CMD (915254943): method = LOCAL

    16:47:32.660 March 5: AAA/AUTHOR (915254943): position of authorization = PASS_ADD

    DSW3 and DSW2

    5 March 08:44:26.475 of the Pacific: AAA/BIND (000003E3): link i / f

    5 March 08:44:26.475 of the Pacific: AAA/AUTHENTIC/LOGIN (000003E3): choose method list "by default".

    5 March 08:44:32.411 of the Pacific: AAA/AUTHOR (0x3E3): choose method list "by default".

    5 March 08:44:32.415 of the Pacific: AAA/AUTHOR/EXEC (000003E3): treatment AV cmd =

    5 March 08:44:32.415 of the Pacific: AAA/AUTHOR/EXEC (000003E3): treatment AV priv-lvl = 15

    5 March 08:44:32.415 of the Pacific: AAA/AUTHOR/EXEC (000003E3): successful authorization

    Hundreds of other ASW I manage have the same configuration and authentication problems through Ganymede.

    I was digging through community support forum to see if everything matches my problem, no luck.  Any input is highly appreciated.

    Thank you.

    You wrote that you already checked the keys in your post in another thread, however, debugs always complain of bad keys. Could check you it again. During configuration of key, do not copy and paste.

    15:19:17.629 18 Apr: TAC +: Invalid AUTHOR/START packet (check keys)

    In addition, I see not a mistake of the ACS. Please add that also if you problem.

    Kind regards

    Jatin kone

    -Does the rate of useful messages-

  • I asked question 1 on 17 August and confirmed my a/c link in email to post the question. where can I find answers?

    I asked my 1st ever question about Firefox for Mobile re: bookmarks on 17 August and confirmed my account link in the email to post my question - where can I find the answer now? "Where can I find the answer" has been asked before and the answer chosen is:

     * At the top of the support site, mouse over your user name and choose View Profile from the menu
     * From the main questions page, find My Contributions in the filters list
    

    This does not work for me. It is not a page of questions only a question. I used advanced search to find my Contribution and could find nothing. It is too painful to browse all relevant response messages, I just want to stop smoking.

    How can I delete my original question anyway? No rude answer or I'll report it as abuse, thanks in advance.

    These are two different directions.

    The first can be used on the pages of the forum if you have connected and your user name displayed (instead of connection) with a drop-down list that appears if you click your name.

    The second direction works for pages to index forum having my Contributions link in the drop-down list sort and filter (second column: Show > my Contributions).

    I see only this question and answer that you have posted in another thread. There is no second question asked on 17 August.

  • How can I post a reply to a question, that I initiated?

    I asked trying to get firefox to start yesterday. Got a post that does not solve the problem for me. Whenever I go to post a reply, I am told to select a topic, which I guess means clicking on radio buttons, but no matter what that one I hit post will not send.

    I tried to send a response

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB0.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729; NET4.0C)

    Try to use Firefox when posting to a thread in this forum, there seems to be some problems if you use IE8.

  • How can I stop the last post showing when I want to send this person a new Imessage.  I have an Iphone 5s

    How can I stop the last post showing when I want to send this person a new Imessage.  I don't want an old conversation appears constantly when I am a Messenger contact.  I have an Iphone 5s

    I don't know, but let me see if I understand what you're asking. You do not want to see the thread you have with a particular contact when you go to send them another message? The only way to do this is to remove the previous message thread. If you send a message to someone that you already have a thread of conversation with, it will continue to post in this thread. There is no such thing as having multiple threads with the same person. All conversations with the same person would remain in the same thread, unless you remove the previous discussions. If you delete your previous conversation, when you go to start a new conversation, he won't have any of the other answers.

  • No more change option post?

    Hello.

    Is it me or is change it your own post option now missing? I know there was a time limit before it goes away, but I noticed, that it is not there just after that I have post.

    Thank you in advance.

    editing window of 15 minutes. In the original post in a thread access you it through the gear/Actions at the top icon right rather than change the link in the message itself.

    TT2

  • Cannot get SetEndOfFile (or whatever it is in kernel32.lib) to post a link

    I'm looking for truncating a file using the SDK SetEndOfFile function. Basically, I try to recreate the code that RobertoBozzolo has posted in this thread. I use CVI 2015 and 8.1 SDK.

    I have consulted the SetEndOfFile of Microsoft documentation and I realized I needed to include fileapi.h, so I did. According to this page and the help topic "Availability of the SDK" CVI, SetEndOfFile figure in kernel32.lib. I've added this library to my project and then tried to build. Unfortunately I started having connection errors:

    error: Undefined symbol "_SetEndOfFile", a reference (as well as the symbols not defined for _CreateFileA and _GetLastError)

    All these functions must be in kernel32.lib. The CVI help topic also lists these functions as being in mincore.lib, so I tried to add to my project. Still no luck with the two mincore and kernel32.lib or only mincore.lib. It seems that everything which is supposed to be available in kernel32.lib does not work.

    So I decided to try and add EACH lib in "C:\Program Files (x 86) \Windows"... all 450 of them. After that the CVI has frozen for a good 20 seconds, all libraries have been added and these symbols were still undefined.

    I'm not quite foreign with Java SDK. This same exact project is successfully using a bunch of functions of WinInet.lib without problem, the same exact path. I feel that I am probably doing something stupid, but I can't understand what it is.

    Figured it out. It was a problem of command include, associated with the Toolbox. This order did not work:




    But this one related and ran perfectly:




  • Can't post the images/JPEG to WordPerfect10

    Power outage: WordPerfect10 accepts only 75% of the image. The other 25% is blackened to jet black. We have resized the image 12 times / 12 different sizes without change for the better. The problem is "intermittent" Monday it will work once every 20 attempts and Tuesday it won't work at all.

    Also: We took a page to post on this thread. Got the HTML code. Stuck in the prompt Script, but here's your quick Script is not no longer works (we are not here for that, we don't care only and we do not have the time as we have lost a lot of time to productivity with the question of the power failure, because they are legal documents, we prepare for the people low-income seeking legal representation against the bad companies associated with cases of unethical practices to) Ethics).

    Open the photo in Paint and go... File / save as...

    Open the menu "save in", then choose a backup folder.

    In the 'name' of the file field, enter a name for the file.

    In the field 'Save As Type' open the window menu and choose PNG...

    Left click on the Save"" button.

    Now... try the PNG image version in your document.

    ---

    Looks like the real problem is Word Perfect 10... It's
    released in 2001 I think... have you considered installing
    a more current program?

    If nothing else... the freeware... Open Office can be worth a try.

    Why OpenOffice.org
    http://www.OpenOffice.org/why/

    Good luck...

  • (Redirected) Post new topic

    It seems I can only post a new thread to the host community.  I would like to publish on laptops but don't see the button new message.  How can I post in another forum group?

    Charlie

    Hi cwirth,

    The Forum of the laptop you will see on the left near the top of the page material, Audio and video. Click on the particular name that you need, and the next page will be this particular forum. You see then the button.

    This link will take you to general Hardware forum.

    http://en.community.Dell.com/support-forums/laptop/f/3518

Maybe you are looking for