Tips for the TCP wait of asynchronous Messages with non-standard expression tanks

Hi all

I have a PITA instrument that I need to communicate with in a system of greater control.  This instrument communicates via RS232 to a server running on the PC OEM application.  In order to communicate with the instrument, I have to use the TCP protocol on a specific port on Localhost - So far so good as long the protcol is answer command.

The problem is that the instrument sends several messages asynchronously of different sizes with a double newline as a tank of termination (there are many CR/LFS all these messages so that they cannot be a MOE) and I am struggling to find a way to manage receive asynchronous messages of variable length with a cusom CHARACTER term. without having simply a fast dedicated for TCP loop reads trying to catch these asynchronous status messages.

I wish the functions VISA TCP has worked with the local host, given that the properties that can be set to change the chariot of non-standard term.

Open to suggestions-

Thank you

Ronin

Yes, I'll be streaming in my own string buffer and then to choose the messages out of the buffer when you find the stop character.

A technique to improve performance, rather than reading a single byte at a time is to use the "immediate" on reading TCP mode and use a high value for the "bytes read" - in this way, it will return all of the data that is there without waiting for all the specified bytes or the time-out. He will wait only the full timeout if 0 bytes are received (which you can ignore) - set to a low value such as 100ms.

Tags: NI Software

Similar Questions

  • 'Open the drawer out press ok' message with the tray open output and pressed OK.

    'Open the drawer out press ok' message with the tray open output and pressed OK. Seems that the device does not believe that the drawer is open. This has happened directly after deletion of a paper jam.

    Sometimes a small part being out of alignment can make a sensor turn off inside the printer, so make sure you put everything back together right first.  Although you to act this way, looks at the printer closely for any broken pieces.  If you do not see what has obviously broken, try to do a hard reset.  Instructions that are below.  If the hard reset does not clear the error, the output bin sensor may be broken.  If this is the case, you will need to get a new printer, as the sensor is not repairable.

    To do a hard reset:
    1. make sure that the printer is turned on.
    2. pull on the power cord from the printer.
    3. pull out the power cord from the wall.
    4. wait for 30 seconds.
    5. plug in the printer and turn it on.

  • Type of license for the use of Veritas Backup exec with the unit?

    Nobody knows the type of license (or order number) for the use of Veritas Backup exec with the unit?

    The customer is already using the product widely in their networks, which is the license includes?

    Thank you.

    HI -.

    We use Veritas for the backup device. You will need to contact your representative of Veritas for license information - it is not provided by Cisco. Since the unit running SQL (or MSDE 2000), you will need SQL Veritas agent to back up OPEN files. We do not use dirt, but only for the backup device before performing the upgrades. And we also to break the mirror set beforehand. http://www.Cisco.com/en/us/customer/products/SW/voicesw/ps2237/products_maintenance_guide_chapter09186a0080443809.html#wp1073824

    Ginger

  • I can't install my AD018640672 order number because you ask for the previous issue. Adobe came with my computer I don't have that. Can you help me!

    I can't install my AD018640672 order number because you ask for the previous issue. Adobe came with my computer I don't have that. Can you help me!

    Hi bobj39626549,

    We could certainly help you.

    If she asks for the previous version number, then you could acquire a version upgrade.

    You must purchase the full Acrobat version so that it can be installed and activated with the serial key.

    Hope that helps.

    Kind regards

    Ana Maria

  • Hello.. I have adobe document cloud free 5 GB of storage. I added documents inside. But I don't see them in Adobe acrobat reader section of cloud for the DC document. I connected with the same ID

    Hello.. I have adobe document cloud free 5 GB of storage. I added documents inside. But I don't see them in Adobe acrobat reader section of cloud for the DC document. I connected with the same ID

    Document cloud does not work in some locations of Acrobat Reader. So I used this method.

  • How to convert merge documents and mailing for the docs individual pdf and each with a field record in the merge?

    How to convert merge documents and mailing for the docs individual pdf and each with a field record in the merge?

    What is an actual field or just a piece of static text somewhere? Whatever it is, you can't do this using the Split Document command. You will need to use a script custom read the value of this 'field' and use it during extraction of pages in the file.

  • Tips for the replacement of DVD burners on Tecra series

    I think I need to replace my DVD burner. I used a carpet * a UJ-811 t came with the laptop, but it is no longer Burns correctly, although he continues to play well. Initially, I thought it was a problem with Nero (calibration error), but it doesn't matter what burning program I use. I spent a weekend through various forums looking for a solution: I ran a lens clean and updated drivers, looked for the firmware updates (nobody seems to be able to find for the carpet *, including on the Firmware Page), tried the brands of different media (although I initially using Sony and TDK in any case). All with no luck. So I think that he has reached the stage that I need to replace the burner itself.

    So, advice on brands and type? I want something that is internal and easy self-installation. I would like to also buy online and get fast shipping (I'm leaving Ireland in about a month) so also website suggestions welcome. Please keep your relatively simple tips; I am a relative novice who learns quickly.

    Thanks in advance.

    Hello

    It's a shame! It of always frustrating when the player no longer works!
    But there is not much to do! You said that the calibration error message appears.
    Well, it seems that the drive cannot calibrate the lens correctly and this leads to problems of engraving!
    As you already assumed the replacement drive is required!

    Usually, the user that was preinstalled on your laptop manual should provide some compatible readers and supported!
    Check it! My user manual contains this info!

    But if you don t find anything, I recommend you contact the ASP in your country for the disk drive!
    You should know that not all readers are compatible because of the master/slave/c-salt settings.
    If the drive supports bad settings of the BIOS does not correctly recognize this device!

    So, make a call to the service provider and ask for more details! Good luck

  • HP 15 J8X12UA #ABA: what is the size of tip for the power adapter for laptop HP 15

    Can anyone provide the specifications for the tip of the HP 15 laptop power adapter? I'm looking for more details on the size.

    Thank you.

    Bill

    Reference number:

    45 W HP Smart AC adapter (NFPC, RC, 3-wire, 4.5 mm) 741727-001. 19.5V 2.31 HAS 45W

    Here is a picture with the dimensions of the cutting edge. If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • Satellite A60-142: Tips for the new laptop

    Hi all

    I think to buy a new laptop.
    I currently have a Satellite A60-142 and I only am not too thrilled about this model since the fan makes me crazy... It is constantly running and compared to my old laptop (Satellite 1410-304), it makes a lot of noise...

    So, I want to get a new laptop which is quieter...
    I need basically for email/surfing/Online games/digital still camera.

    Thanks for the tips!
    Ellen

    Hi Ellen

    Well, it is a known issue that, often, the fan works. If you play games or use other applications, the laptop works at high performance and the parts of the device as the processor or graphics card produce a lot of heat. In this case, aeration run also at high speed. It is a simple fact.
    As far as I know, you can try to change the settings of cooling in the power utility.
    In addition it is not easy to say which model of laptop runs more quiet. In the notebooks of high performance fans are bigger and louder by contrast office books are ineffective but easier to cool.

    It's not easy to make a choice

    Good bye

  • New icon for the application of new incoming message after...

    Hi guys! I did the application that receives electronic messages. How can I change the icon of the application on the incoming message to my icon 'unread '? My application is started automatically when the device is turned on. And second entry point to start my application manually (with GUI). Auto-start, fixed it successfully icon and icon Overview:

    HomeScreen.updateIcon (icon, 0);

    HomeScreen.setRolloverIcon (icon2, 0);

    but on the message inbound (FolderListener.messagesAdded start), these functions generate an exception:

    I tried change index 1,2,3... BU result is the same... Where is my problem? Maybe there is another way to change the icon at this time? Help, please. Thanks in advance.

    Do not forget that in the file listener, you actually in the mail app not running your application.  You need get this change is made in your application.  The best way to proceed is to use GlobalEvents, that fire in your listener and deal with it in your Application to change the icon.

    See below for more details:

    What is - world events and global event listeners
    Article number: DB-00145
     
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800332/800620/...

  • I wanted to buy Muse CC 2015, but before that I wanted to check the trial version, so I downloaded the trial version. When I was installing the product at the halfway point for the installation process. an error message will appear saying "need help."

    I wanted to buy Muse CC 2015, but before that I wanted to check the trial version, so I downloaded the trial version. When I was installing the product at the halfway point for the installation process. a pop error message saying "we met the following problems Installer failed to initialize. "Please download Adobe Support Advisor to detect the problem" I click on 'Get Adobe Support Advisor' and then I get here. Can you help me? I use the Mac operating system. I also run Adobe Photoshop CS6 unistall and cleaner, but now when I try to install it again it gives the same message

    Hi Ashish,

    Please follow the solution 2 in the link below.

    Error: "unable to install". Creative cloud office

    After that, you can install the application by following the instructions on the link below.

    Download and install Adobe Creative Cloud apps

    Hope this will solve your problem.

    Kind regards

    Hervé Khare

  • Some tips for the Windows Live Mail 2011 0x8E5048 fixing error code?

    Live Mail not keep open, indicating that my calendar is corrupted.  Above the error code

    Hello EugenePressman,

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • Tips for the uprgrades to HP Pavilion 500-281

    I would switch to another power SUPPLY and a better video card and 4 GB of ram. What should I know about the upgrade of each party and to ensure that it works with other parties?

    Bob, welcome to the forum.

    Here is the memory upgrade information for the computer:

    • Dual channel memory architecture
  • JOINT-2: Tips for the initial configuration of the network?

    Hello team:

    I was asked to do a very basic configuration of a whole new JOINT-2 on a CAT6500. According to the documentation, once in the Supervisor´s CLI, I run a 'session' command to the location where the METHOD.

    Once, I follow the wizard to add the IP, mask and gateway. Having this configured, the management interface of module´s should be visible from the rest of the network, but I do not see how this happens, because the module must use one of VLAN switch´s and I haven´t found how it is configured.

    Question: how will this link JOINT itself for layer 3 engine switch´s? I don't see how its layer 2 will correspond to any VLAN available in the host LAN switch...

    Any help will be greatly appreciated

    Rogelio Alvez

    Argentina

    I think what you need to add a command on the 6500 that puts management of JOINT-2 port in a vlan individual.  For example:

    intrusion detection module 9 management access port - vlan 101

    This places the management for the joint-2 card port 9 slot vlan 101.  The host IP that you set on the map of JOINT-2 itself then be valid for that vlan.

    Steve

  • Tips for the custom transformation script change the Associations of FK table

    Hello

    I try to write a transformation script that will scroll through tables in a large model and change some
    FK associations to change the remote table at CF. By the way, the reason is that our logic model
    the logical entities that represent many areas of codes of small research. However, our relational and physical model has a
    utility single physical filing table of codes that contains all areas of these codes. Therefore, a part of the transformation
    our logic model for the relational model is to swing all FK associations for these areas of research codes
    in the table of common code. Then the paintings representing the research areas can be removed from hard.

    In any case, I'm looking at the

    oracle.dbtools.crest.model.design.relational.FKIndexAssociation

    or the

    oracle.dbtools.crest.model.design.relational.Index

    to see if one of them can be manipulated to perform the transformation I want to accomplish.

    When I perform the equivalent process manually via the property sheets there are several ways to address this problem.

    (a) the method more jolise seems to change the FK in place by clicking on the FK in the relational schema and changing
    the property called ' PK / UK Index'. Change that to the pharmacokinetics of utility code repository table that replaces the original
    table (which represents the research field). A side effect of this translates into CF mapping
    columns being nulled out. They must be remapped to original columns (which are kept).
    So in two stages, the existing FK is detached from the original, attached table to the new table, and then
    FK columns are reused in place for new CF mapping.

    (b) the brute force method is to remove the original FK and then create a completely new FK to the new table. There are
    several dialog boxes that allow you to keep the original FK columns and use them in the new FK.

    I realize, this is a somewhat complex transformation, but I would like a few algorithmic advice on which path to take
    to try to achieve. In particular, there is a script that is equivalent to that of the first process above?

    I don't even know if the CF which is represented on the relational schema is represented by the FKIndexAssociation or Index
    class in the script object model. In other words, I have to loop through the tables in the relational model what would be my
    starting point:

    FKS = table.getFKAssociationsList ();

    or

    fkIndexes = table.getAllInds_FKeyInds ();

    or something else. The names of the properties in the user interface are always with the properties of scripts not so
    It's a little difficult to understand such things.

    Once I have access to the object that is equivalent to the FK in the property/diagram worksheet, which
    is the best way to handle via script. How can I change the end of parent and away from CF to point to the new table.
    Or if I have to delete the original CF and then re-create - is there a way to save the original FK columns and reuse them
    While creating the new FK?

    ********************

    Another question. What is the best way to remove tables from a relational model. I note that there is a remove() undocumented (?)
    a method that is available on the Table. It's probably a superclass to remove other things as well.

    When I try to use this method in a loop the script throws up to dialog boxes that are similar to dialog boxes that are displayed during the execution of a removal
    manually through the user interface. Is it possible to intercept and answer dialogs programmatically?
    So for example if I get a window of dialogue as

    You want to remove generated columns of FK 'FOO' in the table 'BAR '?

    is it possible to intercept this dialog in the script and then answer Yes or no it via the script?

    ***************

    If it is too difficult to perform this type of transformation with the help of script
    is to do the transformation on the generated DDL file. But it would be cleaner to
    to do the transformation in the relational model DM if possible.

    All advice appreciated.

    Rgds, BP

    When I try to use this method in a loop the script throws up to dialog boxes that are similar to dialog boxes that are displayed during the execution of a removal
    manually through the user interface. Is it possible to intercept and answer dialogs programmatically?
    So for example if I get a window of dialogue as

    You want to remove generated columns of FK 'FOO' in the table 'BAR '?

    is it possible to intercept this dialog in the script and then answer Yes or no it via the script?

    It's in the preferences - "Data Modeler > model > relational > remove FK column strategy."

    I don't even know if the CF which is represented on the relational schema is represented by the FKIndexAssociation or Index

    Is a pair of two - FKIndexAssociation, that's what you see the pattern, but it is hidden in the table index - isFK() returns true for this type of index and you can take FK with getFKAssociation()

    Once access to the object that is equivalent to the CF in the property/diagram worksheet

    table.getFKAssociations () - returns an array of the foreign keys;
    You can get to them from the relational model:
    model.getFKIndexAssociationSet () .toArray () - FK all model

    How can I change the end of parent and away from CF to point to the new table.
    Or if I have to delete the original CF and then re-create - is there a way to save the original FK columns and reuse them
    While creating the new FK?

    There should be no problem if you use the same number of columns with the same data type and order:

    get the current FK columns
    columns = fk.getColumns ();
    newRefKey is the new key question; referred and child columns must match the data type and the order in the keys - you do not ask how to get
    fk.changeKeyObject (newRefKey, columns);

    function setting in preferences, you will get the question on the columns of FK.

    Therefore, a part of the transformation
    our logic model for the relational model is to swing all FK associations for these areas of research codes
    in the table of common code. Then the paintings representing the research areas can be removed from hard.

    You can create the hierarchy of entities with the root attribute (and PK identifier) KP holding entity and entity - your look-up - empty child relationships will be these entities of the child. With the help of the transformation of the "unique Table" you will get what you are trying to achieve now with script.

    Philippe

Maybe you are looking for

  • Hotwire HAVE-> switch-> AEBS gig ZTE a 10 unit max limit

    Hi, have fun trying to get my previous network config to work with the new service provider broadband. pretty standard installation with hotwire as the ISP form the outside inward: (1) ALU 7342 Ontario (supposedly as a bridge) (2) switch GigE ZTE wit

  • Satellite A300D-17F runs slower than expected

    Satellite A300D-17 F Hi friends Since I bought this machine, I am not happy.There is a problem: he works so slow than other laptops and they have inferior properties.I don't understand. I almost have to break. I've done all the tips (uninstall tempro

  • Intel Pro 2200BG has problems with stay connected

    I recently bought our laptop, and we have an Intel Pro Wireless installed BG2200. When I connect to broadband with the network cable I have no problem, but as soon as I swop on the wireless, I have big problems. The wireless to connect and disconnect

  • MT G1 400 proDesk (Midtower): (need help) graphics card upgrade

    I'm looking to improve my 4600 ProDesk of Intel to a Nvidia GTX 970 graphics.  I understand that this will also necessitate upgrading the PSU aswell, I was thinking of a 650-700 watts model. Here is a link to all the specifications of the desktop com

  • Location of the song lose Windows media player

    Every month or two, whenever I try to play a few songs, Windows Media Player will give me an error saying it can't find the file. I have not moved one of my songs and I know exactly which folder it is in and how to get there. The most annoying part i