loop and multi com ports

Hello world

Store device data in Server series of STS (which has 16 com ports).

But I need to use 7 series STS server com ports. I need to read that data 7 com ports and save in a file.

Each com port has a different function (for example the reading of data or display).

My question is,

(1) can I use different while loop for each com ports (if each com port have various channels)?

(2) if I use different while loops for each com ports, will there be problems (like data layering or stacking)?

(3) using different loops can be considered as parallel processing? (if not, explain pls)

the most important is

(4) should I use a main while loop for all com ports 7?

Kind regards

You can run all ports in parallel, and as long as you don't create other dependencies between the loops, interference will not normally a problem. We do this all the time (32 ports ++), there could be a lot of incoming data on a port, or a slow response from a slave on another port... and you do not want other ports to get affected by it.

With the help of several ports with multiple loops is very rigid though (you will need to re-encode if the number of ports changes). It is best to dynamically create a VI 'port manager' for each port (open a reference to a reentrant VI, one LIVES, or create a copy of a VI on request at the opening, a reference to that - and then run with the run method with the input set to false, queue...) and use queues to get data in and out of each port/port manager.

Tags: NI Software

Similar Questions

  • change the com port assigned to the fax and scan

    I used fax and scanning for once.  I had to move my external modem to a different port.

    I don't know how to change the windows fax and scan com port manually.

    the wizard does NOT start, I guess because the fax is installed and worked until I had to change the number of COM port...  I need to change the number of pot with hundreds of research, it seems that no one knows how to change manually the Compote in windows fax and scan, unless they use the wizard.

    my assistant does not start. I guess I'm 'old school' I don't need an Assistant, I need to manually change the fax uses com port.

    :-), it's frustrating because help said only: click "fax" in the lower left corner, and they all assume the installation wizard starts and everything will be fine. :-(

    the wizard does not start. :-(

    I am desperate to get my fax work and need to know how to set the correct port number in a system that is installed and running, such as the wizard never starts.

    for anyone who goes out at the end of questions and ideas, I have a fax application stand alone who is working with the new port setting. It's just not a good app for my needs

    Please?

    Thank you

    John

    Post proposed by the moderator of the appropriate forum category

    Hi John,.

    You can follow the steps below to change the COM port for a modem:

    1. search the Device Manager.

    2 look for the Modem device, right-click on it, and then click Properties.

    • If the change settings button is present, you must click on it to make changes to the appliance. If the user account control dialog box appears, confirm that the displayed action corresponds to what you want, and then click continue.
    • If the change settings button is not present, the modem does not support the ability to change the modem settings. Refer to the documentation provided by the vendor of your modem.

    3. on the Advanced tab, click Advanced port settings.

    • If this option is not displayed, the modem does not support the ability to change the assigned COM port. Refer to the documentation provided by the vendor of your modem.

    If the same persists, we suggest that you post your query in Microsoft TechNet so that their support team will provide you in-depth assistance.

    Kind regards.

  • Matter of finding the resources function VISA after COM port disconnected

    I have an application in which I use two COM ports for communication, both only is active.

    Between testing a com port gets connected and disconnected dynamically. I am able to connect and disconnect without problem.

    Now after my com port dynamic disconnected, its not visible in device as Manager, but if I search all the com port available using VISA find resource once it disconnects, then dynamic port COM is also visible in the list.

    Name of the USB interface is USB Serial Port and the com port is dynamic which will be disconnected. VI attached

    Any suggestion please


  • COM port reading and writing

    Attached VI, a while loop executes sub 4 screws... The data read in the COM Port; Analysis of the data, prepare the response packet and send response to Port COM... It does not (I think that's not reading the data at regular intervals) to certain commands a few times... Can anyone suggest me two different ways of programming that, I thought using the queue and 2 all in loops (reading data and analysis in a loop, write in the 2nd loop analysis and Com Port)... But my class given Com Port number; Don't know how I share between 2 parallel loops for the queue.

    Kind regards

    Chandra

    My original with objects Code works perfectly with a delay in the while loop; Thank you for pointing me in this direction...

  • I can't find com ports in Device Manager. Trying to interface with a counter digital multi via a RS232 connection.

    The software supplied with the meter has enough summary documentation.  When I tried to open the software, a window pops up saying that the port com 1 cannot open. I used baud rate settings that the software manual recommends but no help. Then, I uninstalled the COM ports. Now they are gone and I don't know how to re - install.

    UPDATE: I've read elsewhere that the BIOS should have the com port activated, so I went into the BIOS and of course it was off. I suspect that it is off all the time, because the software failed to connect to it when I first installed it. As soon as I have it set to com 1 everything works.

  • My device used to be included in the device under the turbine BP & COM port section manager now it is hub USB root and I can't connect with my camera. Help

    I have a machine that uses a USB to serial connection, after I installed the driver in my computer, it finds the machine and load the device in the ports COM & LPT, but this morning for some reason, he shot my device in the USB root hub system. How to get out of there and recognized him as a COM & LPT device since it is a USB to Serial Port that I can discern the number COM port so that my computer can communicate properly?

    Hello

    1. What is the model and brand of the device?
    2. do you see any red or yellow bangs in Device Manager?
     
     
    a. in device, right-click on the Device Manager and select Properties.
    b. now in the Properties window, click on the tab General Post back the message found underdevice status.

    Thanks and greetings
    Umesh P - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • Connect pc with win 7 to an instrument THEN use the com port and the PPP protocol

    Dear all,

    I need to make a connecting series between a pc with win 7 and one instrument.

    To achieve this I have to use the com port and Protocol PPP. In win xp is possible but I'm not able to find the same in win7

    concerning

    Diego

    Hi Diego,.

    Thanks for posting your query in Microsoft Community Forum.

    According to the description of the issue, I recommend you post your query in the TechNet Forums. TechNet is watched by other computing professionals who would be more likely to help you.

    TechNet Forum

    http://social.technet.Microsoft.com/forums/Windows/en-us/home?category=w7itpro

    Hope this information is useful.

  • WINDOWS 7 allow interrupt sharing. We have a system that has several COM ports and IRQS not enough.

    Original title: some j

    WINDOWS 7 allow interrupt sharing.  We have a system that has several COM ports and IRQS not enough.  In XP Pro, there was a sharing bit interruption that you can set in the registry editor that would allow this sharing.  Sound in windows 7, but it doesn't have the same results.  Any ideas?

    Hello

    I suggest you to report this issue in TechNet Windows 7 IT Pro Forums: http://social.technet.microsoft.com/Forums/windows/en-US/home?forum=w7itprohardware

    Thank you.

  • How to change the IRQ and address of some of the COM ports

    Original title: jcertain

    No, I loaded 7 a window in one of our systems.  I want to change the IRQ and address some of the COM ports and were not too.  In the pasted, you can enter the Device Manager and click on the device, then go to the "resources" tab.  There, you can find a box that allows users to disable "USE AUTOMATIC ADJUSTMENT", which would allow you to change the IRQ and address.  But for some reason any box is not highlighted so you can not.

    Please post your request here:

  • COM ports and USB data cards?

    When I connect USB data cards windows assigns a COM port? Why is this happening? Are serieal devices USB devices? Why the COM ports assigned to the USB devices? What I know, it's USB ports and serial ports are different and they are there with a different set of standards.

    In general, Yes.
    (There are sometimes problems with things like USB adapters series converter when you use a device physically connected by a serial port, but it is a bit different).

  • Browse the COM ports

    Hey guys,.

    I'm trying to loop through my available COM ports to see what serial port my device is connected to. When I start my VI, it remains at COM1 and never goes to the following COM port. I'm at least on the right track?

    Any help is appreciated.

    Eric

    Auto-index just a loop for:

    EDIT: Given the obligation to stop once you have a connection. In this case, simply use the conditional terminal.

  • [begineer] reboot a 'while' loop reading the serial port

    Hello! I read some data from a COM port. I want to read my like this "%d S. the unit will send data continuously and depending on when I push the button run in labview, it can start to read data from the middle (%d is a four-digit number). as: 23 S 15'

    "whenever the first character of my data is not of", I need to restart playback. I read the data in a while loop. so I need to stop the while loop. From what I found on the internet, I used a case, another while loop and shift registers.

    but in some way I'm stuck inside the while loop. My VI is attached. Thanks in advance and sorry if my code is a mess!

    PS: what should I do if the bytes I get to the port is variable? use bytes to the port?

    The device sends a character at the end of the line at the end of each message?  You are currently Setup to do this by activating the stop character (currently set to end of line/10/0xA).  If this is true, then simply set the bytes to be read on the VISA to read something rediculously high.  It will stop playback when it finds this termination character.  From there, you just have to check for the correct format.  If this isn't the right format, ignore him.  Otherwise make your recording.

    I managed to clean up your code a bit on this basis.

  • How to detect the data received in the com port?

    I used NI-VISA, read to read function and tried to write and read the same data through back loop. I have read from the port, but I need to read only when all the data is in the port.how series I detects all data received in the com port? Based on the data received to write the data to the port only i need.

    Please help me

    Better it should work... just create your own port number, I used 20 com

  • How to use the shared variables to address several Watlow controllers on the same COM port

    Hello

    I am using LabVIEW 2010 to control 4 Watlow temperature controllers on a port com 3 are model 96 and 1 is a zone EZ controller. The controller has a unique modbus address and I'm trying to read from and write in the individual records (for example, setpoint closed-loop) variable shared help. I would return the data during playback (even if the data is displayed as invalid), but I am unable to change the value in the registry in writing. How can I be sure that's the Modbus server send commands to the correct controller?

    Chuck

    Hi Chuck,

    Sorry for the delay in response, I was away last week. You can create as many servers for Modbus on one COM port that you would like, the only problem you'd see is if you tried to call the port from different locations at the same time. With respect to the documentation to cross, I'd start with the tutorial below for a comprehensive manual of Modbus. There are also quite a few listed under Datalogging and supervisory control Module help topics that may be useful if you want to solve specific issues.

    Introduction to MODBUS

    Kind regards

    Peter W.

  • USB/Virtual COM port Communication problem with ESP301/LabWindows/CVI

    Hi all

    I have gone through different threads posted in this forum for similar issues and all tried, but nothing helped.

    I'm trying to communicate to the ESP 301 training monitor via a USB port configured as a serial COM port using a CR. Have it ' command is to get the version of the controller. The "write" "ComWrt" command works fine but the read command throws and error ("-99 operation e/s timed out"). I tried all the suggessions; with delays etc... who has explained (resolved by Mr. RobertoBozzolo) in the thread posted here, which explains an issue similar to that of the mine, but the help couln t.

    The code is attached.

    I am using 2012 LabWindows/Windows7 64 bit multi-hearts

    int Get_Version () {}

    comport = 3;

    BaudRate = 9600;

    parity = 0;

    DataBits = 8;

    StopBits = 1;

    inputq = 512;

    outputq = 512;

    ctsmode = 1;

    xMode = - 1;

    Timeout = 5.0;

    com_status = 1;

    char comstring [6];

    DeviceName [] = "COM3".

    Int State = 0;

    char * error;

    int bytes_written = 0;

    char Cmnd_String [50] = "";

    char Read_String [512] = "";

    strcat (Cmnd_String, "ve?")

    strcat (Cmnd_String, '\r');  Tried to 0x0d
    strcat (Cmnd_String, '\0');

    length = strlen (Cmnd_String);

    assert (Cmnd_String [length] == you? \r\0'); Tried Cmnd_String [50] = ' VE? \r\0 ".

    DisableBreakOnLibraryErrors ();

    RS232Error = OpenComConfig (comport, devicename, baudrate, parity, stop bits, inputq, and outputq data bits) ;// tried ouputq = - 1 too

    EnableBreakOnLibraryErrors ();

    If (RS232Error == 0) {}

    com_status = SetCTSMode (comport, LWRS_HWHANDSHAKE_CTS_RTS_DTR);

    MessagePopup ("Comport verified',"CTS Mode works very well");

    com_status = SetComTime (comport, timeout);

    }

    bytes_written = ComWrt (3, Cmnd_String, (Cmnd_String) StringLength);

    If (GetOutQLen (3)! = strlen (Cmnd_String))
    ComWrt (3, Cmnd_String, strlen (Cmnd_String));
      
    status = ReturnRS232Err ();      The status is 0
    error = GetRS232ErrorString (status); / / error number

    Delay (5.0); / / trying to add the time up to 20.0

    GetInQLen (3); Returns 0

    ComRdTerm (3, Read_String, 512, 13); Read from inputQ

    status = ReturnRS232Err ();               Status to return the error code '-99 '.
    error = GetRS232ErrorString (status); Error message "e/s timed Opération" out

    return the situation;

    }

    Can anyone suggest where I am doing wrong?

    Thanking you in advance.

    Another thing you should check is baud rate.  The ESP301 by USB is expected than the baud rate to 921600.  The function for OpenComConfig() group implies that it does not support this baud rate setting, but it seems to work perfectly.

Maybe you are looking for

  • 9.3 your iPad could not be activated because the activation server is temporarily unavailable.

    Downloaded the new software 9.3 on IPhone without a problem, for IPad 2, it says: your IPad could not be activated because the activation server is temporarily unavailable. Tells me to connect to ITunes to activate, when I do that, it says Apple does

  • Delete the JPEG but keep the FIRST

    I want to keep the RAW file but remove from JPEG. (I did both) Is this possible?

  • system restore points after Defender updates?

    After you have installed the latest WU V7.4.7600.226 engine-> the last 2 updates to Defender has created a restore point (I've updated via WU without defender app.)name restore points are 'windows update '.Before installing the engine last WU - he di

  • H236HL monitors do not keep brightness settings

    I have purchaced a bunch of monitors with our new computers Lenovo M73Tiny H236HL.  The tiny M73 are DisplayPort, so I use a DP to HDMI cable. I sent 2 of these systems so far and they both have the same problem: after 2 minutes after loggin, two sys

  • Clarification of NAT statistics

    We have a NAT router running with a release of NAT stats as below (change of information of ip address for security reasons). Cisco docs say that's the last stat of 68064 misses 'Number of failed allocations of the pool.'. I would be correct in think