How to keep the RS232 connection

Hello everyone. I have a problem with the RS232 communication. To activate the connection, I need to send the string "RS232", then the keep alive I send every second CR, but in the meantime, I have to be able to send any other strings without delay on the same port (COM7). Can someone help me?

Thank you

RS232 standard does not impose itself to be kept alive in some way, so I guess that's your remote device that requires it.

In any case, you could create a timer of 1 s and having his reminder send periodically the CR on the serial port.

To avoid conflicts between this task and in the rest of the application, you can use a lock: basically, after you have created the lock, each function that wants to access the serial port must call CmtGetLock (), work on the port and call CmtReleaseLock () afterwards. If the lock belongs to another function, other functions when trying to get access are frozen waits for the lock, so you must be careful in the design of COM function so that they are quick. If you do not want to have a function be blocked waiting for the lock, you can use CmtTryToGetLock instead of CmtGetLock. You will find some information about locks in this tutorial as well as in this chapter program ' s reference.

Tags: NI Software

Similar Questions

  • How to keep the Safari in full screen, when it opens instead of small rectangle I enlarge them with green button and how to keep the presentation of upper task bar without always having to lower

    How to open safari in its entirety in a small rectangle and then having to enlarge.  It started to happen.

    How to keep the top toolbar in view rather than having to lower whenever necessary

    Drag the bottom right and left corners of the window to enlarge it to fit the screen.

  • I made my largest site and how can keep the same size for all other sites?

    I did the 2 larger site and how to keep the same size for all pages when I re - open the web browser?

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • How to keep the Safari line at the top of my screen to disappear?

    How to keep the Safari line at the top of my screen to disappear?

    See the toolbar of Safari mode full screen?

    Launch Safari.

    Click on the Green navigation button to enter full screen mode.

    Move the mouse to the top of the screen.

    When the menu bar and the toolbar drop-down, click on 'View' in the menu bar of Safari.

    In the drop-down menu choose «Always see the toolbar in full screen»

  • How to keep the Macbook pro screen and cin on position?

    How to keep the Macbook pro screen and computer in position 'on '.  I don't want the computer shuts down or cut unless I ask him to...

    If you talk to keep your machine to fall asleep, take a look at the caffeine.

  • Satellite Pro U200 - how to activate the bluetooth connection

    How to activate the bluetooth connection?

    Hello

    First check to see if your computer supports BT
    If the laptop supports BT, then you should find a BT tag at the bottom of the unit.
    If there is no label then your machine was not equipped with internal BT module!

    If the laptop supports BT, then use the FN + F8 key to go to the BT
    Then BT should start installation and configuration.

    For more details, see this forum and this Toshiba BT Portal:
    http://APS2.toshiba-tro.de/Bluetooth/?page=FAQ

  • hp7410 does not keep the wireless connection

    hp7410 all-in-one does not keep the wireless connection. It requires to install a new driwer. so far, I have at least 16 versions of the driver. neither maintains the status of line long enough fo more than a few hours.

    Please provide the following information if anyone can help including:

    The printer model - done

    Detailed problem description-

    Operating system on the computer (including the revision of the service pack)-

    Method - USB, LAN, Wireless cable connection? -

    Brand and model of router and modem? -

    Error messages - on the screen of the printer or computer, no matter what flashing light patterns.

    If wireless, status of the blue wireless light on the printer, active, disabled or flashing? -

  • How to keep the input value after click on the back button being the ADF

    Hi expert,

    I have a case currently the adf:

    1. I put 'value' in the Label 1

    2. I click on the next button

    3. I click on the "back" button

    4. the 'value' went from 1 label.

    How to keep the 'value' of 1 tag after I click back, do you have any suggestions?

    Kind regards

    Ricky

    Hello

    Where you store the value? Try to store it in a variable pageFlowScope or a property of the pageFlowScope bean.

    value = "#{pageFlowScope.testVar} '"

    value = "#{pageFlowScope.testBean.testVar} '"

    Kind regards

    Ruben.

  • How to find the failed connection attempts at 'check' session is enabled

    How to find the unsuccessful connection attempt to dba_audit_trail when the "audit logon" is enabled.

    Filter your query against dba_audit_trail action_name = 'CONNECTION' with returncode! = 0 (returncode = 0 means that there are no errors - successful connection attempts)

  • Does anyone know how to keep the name of an image embebed in Illustrator v?

    Does anyone know how to keep the name of an image embebed in Illustrator v?

    Add the file name as a Note in the Panel. From a built-in file is just a raster image in GOT it, there is no links to follow.

  • How to keep the HTML text (i.e. Peragraph) according to the proportions?

    How to keep the HTML text (i.e. Peragraph) according to the proportions?

    Do not disturb (coming down / up) even a letter / word

    Do not disturb (coming down / up) even a letter / word

    Due to levels of zoom browser and personal user settings, there is no possible way to ensure an alignment of text on the web, unless you use images of the text.  Of course, this isn't an option because images of text cannot be indexed by search engines, screen readers or translators of language.

    Nancy O.

  • I out of the CC to my previous laptop and I can not understand how to create the link connection in my new laptop

    I out of the CC to my previous laptop and I can not understand how to create the link connection in my new laptop

    Hi Steven,

    You have the CC of Adobe desktop application installed on your machine?

    In the case is not, please see the help below document to download the same:

    Creative cloud to desktop

    Kind regards

    Sheena

  • How to keep the (update or delete, insert) triggering action in the table?

    Hello experts,
    I have create a trigger on update, delete or insert. I insert records into a table which records insert, update, or delete.
    I would also like to insert the revival of whick action the trigger as update, delete or insert.

    Here's my trigger code.

    create or replace trigger BOM_HISTORY_TRIGGER
    after update or delete or insert on BOM_HISTORY
    for each line
    Start

    insert into bom_history (BOM_MOD_CODE, BOM_ASSY_CODE, BOM_ASSY_QPS_old, BOM_ASSY_QPS, PPC_SRL_ #, ITEM_ENTR_BY,)
    ITEM_MOD_BY, MOD_DATE, ACTION)
    values(:Old.) BOM_DIV_CODE,: old. BOM_MOD_CODE,: old. BOM_ASSY_CODE,
    : old. BOM_ASSY_QPS,: new. BOM_ASSY_QPS,: old. PPC_SRL_ #,: old. ITEM_ENTR_BY,
    : old. ITEM_MOD_BY, SYSDATE, 'delete')
    END;

    HOW to keep the action in the table.

    also, there is error:
    WARNING: Trigger created with compilation errors.

    Please help to fix it.

    Thank you best regards n
    Yoann

    >
    insert into bom_history (BOM_MOD_CODE, BOM_ASSY_CODE, BOM_ASSY_QPS_old, BOM_ASSY_QPS, PPC_SRL_ #, ITEM_ENTR_BY,)
    ITEM_MOD_BY, MOD_DATE, ACTION)
    values(:Old.) BOM_DIV_CODE,: old. BOM_MOD_CODE,: old. BOM_ASSY_CODE,
    : old. BOM_ASSY_QPS,: new. BOM_ASSY_QPS,: old. PPC_SRL_ #,: old. ITEM_ENTR_BY,
    : old. ITEM_MOD_BY, SYSDATE, 'delete')
    >
    Unless I've counted wrong you have 9 mentioned columns but try insert 10 items.

  • How to keep the environment setting

    We need to set disable javascript.

    But,

    after update, it turns to activate.

    You please show me

    How to keep the environment-setting before and after the update of Adobe reader.

    Thank you

    JavaScript is enabled by default in the browsers. Turn off (disable) is a manual process, which must be done by the end user.

    JavaScript must be enabled in order to use the Adobe Download Manager.

    You can download the Installer http://get.adobe.com/reader/enterprise/ offline without having to activate javascript. But there IS NO Adobe Reader (or Adobe Updater) affecting control javascript in browsers, or disable it automatically afer a download.

  • How to keep the metadata after Correct camera distortion filter?

    Hello

    Anyone know how to keep the metadata information after you have used the Correct camera distortion filter?

    In other words:

    When I need to correct the photo with good camera distortion to the menu Filter option I can't keep the metadata to the final table.

    After correction, I cut the useful part with the rectangular selection tool, and then I chose the file, new, Image to the Clipboard.

    Either the format file that I choose to save the metadata information has disappeared.

    I tried to export the metadata from File, FileInfo, information, and then import the metadata (XMP file) but no result.

    Someone at - it an idea to solve this issue

    Thank you

    This is probably because your using the Clipboard that discards the data.

    Try to crop your photo and recording. You can always cancel the harvest after saving if you want to do something in the photo.

Maybe you are looking for