How to do multiple requests/responses sequentially to same COM port?

I can read 5 different values from my instrument. Each have their own command letter for sending over the value.
How do I read these values sequentially?

I am attaching an example which demos this using the ASCII Object. The example, for simplicity, uses a loop-back on COM1. I suggest you do the same while studying the example: short pins 2 and 3 on your COM1.
In the example, values from Column A and Column B of the DataTable are packed and sent out as the "command." So, you would replace this with your intrument commands. The response (which is the same as "command" in this case because of the loop-back) is read, parsed (the number from the text) and then stored in Column C of the DataTable.
This can be easily made to run automatically using a Timer/Counter.
Hope this helps.
Regards,
Khalid :
Attachments:
simpleserdriver.lks ‏10 KB

Similar Messages

  • How to allow multiple apps to read from same udp port?

    hello all!
    when i'm trying to open the same udp socket from two different applications, i get error 60 :
    "Address in use".
    i know for sure that it is possible.
    but how i do that with labview ?
    thanks.
    guy.
    Solved!
    Go to Solution.

    I agree with Adnan that this is not really possible with the normal mechanisms. The OS needs to know which application should get the data. An exception are e.g. packet sniffers (such as Wireshark) that intercept the network traffic at a lower level and passively listen in.
    Please provide some details on what "other applications" have done this.
    LabVIEW Champion . Do more with less code and in less time .

  • How biztalk handle multiple request at a time ?

    can TCP/IP adapter or biztalk handles multiple request at a time ?
    If yes,then how it process multiple request ? 
    Can TCP/IP send ports sends multiple request ?
    Prakash

    Yes.
    It processes multiple requests using THREADS. Each Connect starts off a thread that handles the receipt of the message, submission to BizTalk, wait for the response (matching two-way subscription) and then respond back to the client.
    TCP/IP Send ports handle multiple requests by creating fresh sockets (RPC High-end ports). As an example, in your browser you open multiple tabs and access different sites, each tab results in your browser opening a fresh socket connection for the request.
    Regards.

  • How to handle multiple request in the servlet

    how to handle multiple request in the servlet...
    Example:
    java forum...
    i'm login in the java forum at this time 1000 members make login in this....how happended in servlet?
    if we use thread how to implement in servlet ?

    Serlets are already threaded. The application container instantiates the servlet, then uses this instance in a new thread for every use.
    This is the reason that you should use (almost) no instance variables in a Servlet, but rather that (almost) everything should be local to the method.

  • How to handle multiple requests to the same servlet at one time?

    Hi,
    I am new to Servlets. I have doubt regarding ... Handling multiple requests to a servlet at a time.
    If we send a single request to a servlet, as know that group of objects such as servlet, servletContext, servletConfig, request, response and etc are created in the server, And if 1000's of requests are sent to a same servlet at a time, and if server memory capacity is less, then 1000's of objects are created in a server which would be heavy burden to Server. How to handle the application and development in such situation?
    Kind regards,
    veerendra

    Hi veerendra reddy ,
    By default any web server can will have a thread pool to handle client req's.
    In your point also heavy burden to server you are telling that depends on this.
    we can configure this min & max size of this thread pool.
    by default it will be 0-1000 for tomcat server.
    I am not sure in which file this configuration will be.
    But I hope in server.xml or some xml file consists this info.
    If You what you can edit accordingly. to overcome your heavy burden to server.
    Thanks & Regards
    Nagendra

  • How to differentiate multiple aRFC calls into the same session.

    Hi experts,
    I have following problem:
    I start multiple aRFC calls in the same remote session by using the same task ID for each call and use
    KEEPING TASK when receiving the results.
    The calls are all of the same RFM (e.g get_status of obj), just calling parameters changes ( in the generic example, the parameter: obj).
    In the receive method, I differentiate to which obj the result is related by exporting the obj_id on success of the RFM.
    My problem is when the status call fails. I just get an error message explaining what the problem is. But I don't get the exporting parameters.
    Do you have any idea how to solve this problem?
    kind regards,
           Sahla

    This is actually the workaround I made to go on.
    Actually the underlying logic in the RFM for getting the status is based on a synchronous call, as to say when you get the exception you know of which request it comes from.
    Therefore the exception messages and their parameters are well defined and according to the error situation filled with necessary data explaining the exception situation.
    Unfortunately the excpetion class used is based on the message T100 interface and has the limitations of just four message parameters and each of 50 charcter length.
    I overwrite the last message parameter with the needed obj parameter, taking the risk to overwrite valuable system responses explaining the situation.
    I thought there could be a more elegant solution from the framework itself.
    kind regards,
         Sahla

  • How to load multiple HTML5 canvas on the same page (the proper method)

    Hi,
    I've been struggling to load multiple canvas animations on the same page. At the beggining I thought that exporting the movies with different namespaces and reloading the libraries in a sequential flow might work, but it doesn't. It always loads just the last animation loaded. More info here: Coding challenge: what am I doing wrong?
    Here is a sample of what I'm doing:
    1st: Publish two flash movies with custom namespaces for "lib" set in the "publish settings": "libFirst" and "libSecond".
    2nd: Edit the canvas tags in the HTML page. One called "firstCanvas" and the other one called "secondCanvas"
    3rd: Edit the javascript like this:
            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsFirst = createjsFirst||{};
                var createjs = createjsFirst;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/first.js"></script>
            <script>
                function initFirstAnimation() {
                    var canvas, stage, exportRoot;
                    canvas = document.getElementById("firstCanvas");
                    exportRoot = new libFirst.first();
                    stage = new createjsFirst.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
                    createjsFirst.Ticker.setFPS(libFirst.properties.fps);
                    createjsFirst.Ticker.addEventListener("tick", stage);
            </script>
            <script>
                // change the default namespace for the CreateJS libraries:
                var createjsSecond = createjsSecond||{};
                var createjs = createjsSecond;
            </script>
            <script src="//code.createjs.com/easeljs-0.7.1.min.js"></script>
            <script src="//code.createjs.com/tweenjs-0.5.1.min.js"></script>
            <script src="//code.createjs.com/movieclip-0.7.1.min.js"></script>
            <script src="{{assets}}/js/second.js"></script>
            <script>
                function initSecondAnimation() {
                    var canvas, stage, exportRoot;
                    canvas = document.getElementById("secondCanvas");
                    exportRoot = new libSecond.second();
                    stage = new createjsSecond.Stage(canvas);
                    stage.addChild(exportRoot);
                    stage.update();
                    createjsSecond.Ticker.setFPS(libSecond.properties.fps);
                    createjsSecond.Ticker.addEventListener("tick", stage);
            </script>
    <body onload="initFirstAnimation(); initSecondAnimation();">
    Could someone please reply with the best practice on how to do this? If possible, without the need to reload all the libraries...
    If I only need to show one flash movie at a time, would it be more efficient to cut & paste the canvas tag using jQuery in the DOM and reloading a different lib on it?
    Many thanks!
    #flash #reborn

    I was able to fix it. At the end, it was easier than I thought. Just have to publish using a different "lib" namespace for each movie, load all the scripts at the end of the <body> and then add the following to the onload or ready events:
    $(document).ready(function () {
            var canvas, stage, exportRoot;
            // First movie
            canvas = document.getElementById("firstCanvas");
            exportRoot = new libFirst.first();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libFirst.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
            // Second movie
            canvas = document.getElementById("secondCanvas");
            exportRoot = new libSecond.second();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libSecond.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);
            // Third movie
            canvas = dument.getElementById("thirdCanvas");
            exportRoot = new libThird.third();
            stage = new createjs.Stage(canvas);
            stage.addChild(exportRoot);
            stage.update();
            createjs.Ticker.setFPS(libThird.properties.fps);
            createjs.Ticker.addEventListener("tick", stage);

  • How to permit multiple workspaces to access the same schema?

    Hello,
    When creating a new workspace (version 3.2), I am getting the following warnings:
    "Warning: The requested schema already exists. Warning: The requested schema is already assigned to one or more workspaces. Please ensure that giving multiple workspaces access to the same schema is permitted by the security policies at your site before approving this request."
    How do I "ensure that giving multiple workspaces access to the same schema is permitted"?
    What are the advantages/disadvantages of doing so?
    Thanks,
    Gabor

    The correct answer to it would have been: I use manual provisioning.I didn't ask a detailed enough question. What I am wondering is how you are set up to to workspace provisioning at your site. In apex_admin, if you navigate to Home>Manage Service>Instance Settings there is a radio group like:
    Provisioning Status:      
    0 Manual - An administrator manually creates each workspace
    0 Request - Link displayed on login page enabling users to request workspaces
    0 Email Verification - Workspace created after email address is verified by the user
    The help text for this is:
    Provisioning Status:      
    Determines how the process of provisioning (or creating) a workspace works for your development instance. Options include:
        * Manual - An Application Express administrator manually creates new workspaces and notifies the Workspace administrator of the login information.
        * Request - Users request workspaces directly in a self-service fashion. Selecting this option displays a link on the Login page enabling users to request a workspace. When a user requests a workspace, each request is submitted to a queue for approval.
        * Email Verification - Works similar to Request except each user receives an initial email containing a link. Clicking this link validates the user's email address before the request is processed.
    Note: To enable users to request a workspace using a link on the Login page, you must choose Request or Email Verification. If you select Manual, no link appears on the login page.How is yours set up?
    As to the first original question (How do I "ensure that giving multiple workspaces access to the same schema is permitted"?), I still do not know.Whether it is permitted or not is a decision made by the apex site administrator who approves/declines workspace requests. Whether it ought to be permitted is a different question and is really same as your second question which involves issues you said you are now starting to understand better. So I think we've covered your original questions. If not, please elaborate.
    As to the last subject (How did the hidden workspace get created and how do I get rid of id? What happens if I don't?), this happened at work, so I can only tell you more on Monday (luckily...). Until then, here is what I remember. The work space was created, which is proven by the fact that when I want to create a new workspace with the same name, I am getting an error, which says that a workspace with that name already exists. However, I cannot delete the workspace, since it show up nowhere.No hidden workspace got created. I'm pretty sure the request is just in the queue waiting to be approved/declined. In the meantime a workspace with the same name cannot be requested.
    By the way, how do you quote some text here? I just put a '>' in the first character position before the text to quote. You can also use the " rich text icon above the text pane.
    Scott

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • How to use shared variables to address multiple Watlow controller​s on the same COM port

    Hello,
    I am trying to use LabVIEW 2010 to control 4 Watlow temperature controllers on one COM port. 3 are Model 96 and 1 is an EZ zone controller. Each controller has a unique modbus address, and I am trying to read from and write to individual registers (such as closed loop setpoint) using shared variables. I am getting return data when reading (although the data appears to be invalid), but am unable to change the value in the register by writing. How can I be sure that the Modbus server is sending commands to the correct controller?
    Chuck
    Solved!
    Go to Solution.

    Peter,
    Thanks for the reply. I have actually solved that problem. I realized that the Modbus server address has to be the same as the controller's Modbus address.
    I have, however, run into another problem. Perhaps you could help me with that. I have a system with 4 Watlow controllers, 3 are series 96 controllers, one is PID only and 2 are ramping. The 4th controller is an EZ zone. I am using RS485 for communications and the controllers are all wired in parallel for communications and power.
    I have set up 2 Modbus servers for 2 of the controllers.
    This is the first I have ever worked with Modbus based communications. I have successfully programmed using the Modbus read/write VIs, and am wanting to move to shared variables. My questions right now revolve around addressing, Modbus I/O servers and COM ports. Specifically, at this point, I know the addresses need to match up between the server and the slave device (Watlow controller in my case), how many servers can I create and use on one COM port? If the number is limited, is there a way I can specify an address that I want the server to talk to? Will the broadcast mode work to request data values from the controllers?
    I'd appreciate any information you can help me with, or if you could point me to some sort of concise 'How-To' for Modbus communication.
    Thanks.
    Chuck

  • How to implement multiple Value Helps within the same Application ??

    Dear Experts,
    I want to implement multiple value helps in the same view.For that I have declared exporting parameters of type 'wdy_key_value_table.' within the component controller for each of the value helps.While I do activate and test the application I get the following error :
    The following error text was processed in the system HE6 : A row with the same key already exists.
    The error occurred on the application server hsdnt24s11_HE6_00 and in the work process 4 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: VALUESET_BSART of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
    Method: IF_PO_VIEW1~VALUESET_BSART of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
    Method: WDDOINIT of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_DO_INIT of program /1BCWDY/9VSHJWRNR0EZPKFT3ZKC==CP
    Method: DO_INIT of program CL_WDR_DELEGATING_VIEW========CP
    Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
    Method: INIT_CONTROLLER of program CL_WDR_VIEW===================CP
    Method: INIT of program CL_WDR_CONTROLLER=============CP
    Method: GET_VIEW of program CL_WDR_VIEW_MANAGER===========CP
    Method: BIND_ROOT of program CL_WDR_VIEW_MANAGER===========CP
    I dont know how to implement multiple value helps.Need your help on this.
    Regards,
    Mamai.

    Hi
    Hint is : A row with the same key already exists it means , It is assigning the same value/Key to row and you are calling it at WDDOINIT  so it giving error at the time of initialization .
    Better way to do the coding at some event in view OR if not possible than just execute the first value help in wddoinit later clear all the value before gettig the other Value help. Code it at WdDoModify View to get its run time behaviour.
    BR
    Satish Kumar

  • How to open multiple hotmail accounts at the same time ?

    Hi,
    Seems maybe normal for some people but I coming from internet explorer and with this explorer I was able to open multiple hotmail accounts at the same time, by default firefox can't do that, is there some setup to modify to open these at the same time ?
    Thanks in advance for any help.
    (Version updated 3.6.8)
    Regards,
    Chris

    You can look at one of these if you want to sign on with different identities at the same time:
    * CookiePie: http://www.nektra.com/oss/firefox/extensions/cookiepie/
    * CookieSwap: https://addons.mozilla.org/firefox/addon/3255
    * Multifox: http://br.mozdev.org/multifox/ - Different logins at the same time

  • How to call multiple request to CRM and R/3 without BPM

    Hi all
    I have a scenario where a SOAP request will come to XI via webservice
    I then have to call an interface mapping which has Java mapping in it(the java code is basically calling an RFC in CRM) - then i'll receive the response of interface mapping and send it back to the customer.
    Step 2 :The SOAP request which i have received in the first place is to be written as a flat/xml file onto a directory for backup purpose
    Step 3: there will be a separate process where the response of rfc will be fed to an IDOC request structure and send to R/3 as a dashboard IDOC.
    All this is done without BPM.
    So my first problem is "how to write an incoming SOAP request to a file without using BPM?? "
    Second I knw that interface mapping can be directly added in Integration directory's Interface determination by making the property as enhanced but "In the Sender Service i write the Business system which contains soap comm channel and in the interface i write the outbound synchronous interface which is the SOAP outbound that hits the xi for the first time But i am not sure what service do i write in the receiver section as Interface mapping is in XI only....theres no other business system or communication channel involved in between."
    I really need help...plz help me

    Yes abhishek
    Client dont want BPM involved as it makes the process really slow
    First of all i wanna knw how to use enhanced option in an interface determination....in the ID
    as i am trying  to load my interface mapping but it says no object found
    I am giving you the structure of interface mapping
    MI_OB_SAX_MAP (outbound async source interface of interface mapping )
    MI_IB_SAX_MAP (inbound async target interface of interface mapping)
    MT_OB_SAX_MAP  (source message)
    JavaClass - test_java/sax_map (Java mapping program)
    MT_IB_SAX_MAP (target message
    Now when i am trying to configure this in ID
    BS__ (Sender business system)
    MI_OS_TEST_JAVAMAP (sender SOAP interface)
    But i dnt what receiver business system should i select in receiver service ??
    as the java mapping is calling RFC inside the code...so no other business system involved
    i m stuck.....if u could plz have a look into it

  • How to work with request, response and sessions in JSC

    Hi
    I have two Servlets ServletA and ServletB. ServletA creates a session and add some attributes to this session. Then it forwards the request to ServletB where the attributes of this session are retrieved and used in response object.
    Here is what I am doing in ServletB
    - Get the session attrribute. This attribute is of type byte[]
    byte[] mydata = (byte[]) request.getSession.getAttribute(data);
    response.setContentLength(mydata.length);
    OutputStream stream = response.getOutputStream();
    stream.write(mydata,0,mydata.length);
    stream.close();
    My question is ...
    How do I achieve this in Creator. ?
    Thanks in advance
    Srinivas

    Hi
    I have two Servlets ServletA and ServletB. ServletA
    creates a session and add some attributes to this
    s session. Then it forwards the request to ServletB
    where the attributes of this session are retrieved
    and used in response object.
    Here is what I am doing in ServletB
    - Get the session attrribute. This attribute is of
    type byte[]
    byte[] mydata = (byte[])
    request.getSession.getAttribute(data);
    response.setContentLength(mydata.length);
    OutputStream stream = response.getOutputStream();
    stream.write(mydata,0,mydata.length);
    stream.close();
    My question is ...
    How do I achieve this in Creator. ?
    Thanks in advance
    SrinivasBy "this" do you mean "how do I access a session attribute that has been placed there by another servlet?"
    The base class for all page beans has a bunch of convenience methods available. The simplest one to use for this purpose is getBean(), which searches through request scope, session scope, and application scope for a bean with the name you specify -- and, if its a managed bean, will create it for you as well. So, your code would look like this:
      String data = ...; // Name of the attribute you want
      byte[] mydata = (byte[]) getBean(data);There is an additional quirk related to what you're actually trying to do, though ... it looks like you are trying to write out binary content (perhaps an image loaded from the database or something). It is not possible to mix binary and text output in a single response.
    Your best bet for this particular purpose, then, is to continue using ServletA and ServletB just as you have been. The applications created by Creator are standard servlet-based web applications, so you can use additional servlets and all the other goodies (although you'll have to declare them yourself in the web.xml file, as usual).
    Craig

  • Simulate multiple request / response with a HTTP URL

    I need to communicate with a servlet. In the first request, the user gets authenticated and a connection is created. Now I need to use this connection to send further requests since all requests undergo an authentication check.
    However, when I try to implement the same, the second time I write to the output stream of the connection, I get the following exception:
    java.net.ProtocolException: Cannot write output after reading input.
    Please help! I need to create an application which communicates with this Servlet in the specified way

    Now I need to use this connection to send
    further requests since all requests undergo an
    authentication check.That's not how HTTP works. For each request, you have
    to make a new connection. And as for authentication,
    it's perfectly feasible for you to do the
    authentication for every single request, but (at
    least in the case of basic authentication) browsers
    tend to send an Authorization header once they have
    done the original authentication dialogue. You could
    do that too.Also, underneath it all, HTTP 1.1 tries to maintain a socket connection so you don't have that overhead to deal with each time. But as DrClap says, you need to use fresh HTTP instances each time and set the appropriate session/authentication headers.

Maybe you are looking for

  • Setting Process level Timeout in BPEL

    Hi, I am Having 2 BPEL (11g) Processes Process1 calls Process2 and Process2 calls one OSB Service.Process2 retries 3 times in case of soap fault. I want to set the time out in such a way that Process1 Timeout>Process2 Timeout >OSB Timeout. Currently

  • Adobe Camera Raw shortcut Windows vs. Mac.

    Okay, this is more of a question to see if anyone else happens to know the answer through experience. I have been using a Windows machine for the last 9 years at my full time job. They recently switched me to a Mac. (I'm not suggesting a debate about

  • Setting NAT to disabled breaks internet connection

    Hello when i set NAT to disabled my internet connections does not work. Why is that?  When NAT is disabled what attacks do i leave my self open to? My ultimate goal is to run three xboxes with open NAT setting, how do i do this? the details of my net

  • SQL 2005 with ERP2005 (ECC 6.0) Unicode

    Hi All, I need a few questions to be answered. Can anybody tell me as to what would be the initial size of the database after an installation of ECC 6.0 Unicode with database as SQL 2005. Is there any minimum hardware requirements that would have to

  • Transformation Between InfoSet & InfoCube

    Hi, Can we create transformation between InfoSet & InfoCube, with InfoSet as Source & InfoCube as Target? If it is possible also whether it gurantiees pure, correct data? Thanks, Pradip