How to send different characters by one button

Hello!
I want to send  two hex string (0x02 and 0x03) to bluetooth device by pressing  and releasing button with "switch when pressed" behavior. 
I've done with sending 02 string  when i pressed button, and now i'm confused about how to send 03 string  when i release button. Most important it need to be just single sendings every time.
In code - two loops, with real device connection and with led for test.  Thank you.
Attachments:
Blink.vi ‏11 KB

Zwired1,
I think you have it backwards. Value change is exactly what the OP wants for non-latching booleans. For latch action different behaviors for on and off really does not make much sense. The transition back to the false state occurs as soon as the terminal is read, so in effect only the false to true transition can be generated by user action on a latched boolean.
Lynn
Attachments:
test On_off.vi ‏10 KB

Similar Messages

  • How to send condition types from one client to other ?

    Hi ,
    I have a requirement to send condition types (VK13) from one client to other exp : 350 to 320
    In Vk13 we have one button send condition when we press that data need to move to specified client.
    I have no idea about this please help me.
    It is very urgent plz thanks in Adv.
    Regards,
    Raj.

    Hi,
    YOu can do with ALE and EDI by configuring the systems as per the requirement.
    You can create 2 Logical systems for sending and receiving in two different clients and can continue with idocs by sending them to the clients.
    You can go thru the below links to get more info about ALE and EDI.
    http://www.sapgenie.com/ale/index.htm
    http://www.sapgenie.com/sapedi/index.htm
    regards
    Rakesh

  • How to send doc files from one system to another using XI

    Hi All,
    I have a requirement to pick the word doc files from one file system and send these word document files to ECC system place in ECC application server.Can we achieve this requirement using XI. If so how we can do this. also let me know can we convert these doc files into proxy and send to ECC?. Please let me know. Thanks.
    Regards,
    Rajesh

    Yes You Can
    XI Converts Unstructured data(That is non -XML)Type- in your case word doc and maps it to Target structure.
    You can either use content conversion
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    You can either built a adaptermodule for the same(U nedd to have Some Java knowledge)
    You can also convert without creating any objects in integration directory link for the same is
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    ***********Please Reward Points If find Helpful*********

  • How to send different type of data

    Hello, everyone,
    I am trying to send different types of data between client and server.
    For example, from server to client, I need to send some String data, using PrintWriter.println(String n); and send some other stuff using OutputStream.write(byte[] b, int x, int y). What I did is setting up a socket, then send them one by one. But it didn't work.
    I am just wondering if there is anything I need to do right after I finished sending the String data and before I start sending other stuff using OutputStream. (Because if I only send one of them, then it works; but when I send them together, then the error always happened to the second one no matter I use PrintWriter first or the OutputStream first)

    To send mixed type of data by hand allways using the same output/input stream, you could do:
    on server side
            ServerSocket serverSocket = null;
            Socket clientSocket = null;
            OutputStream out = null;
            try
                /*setup a socket*/
                serverSocket = new ServerSocket(4444);
                clientSocket = clientSocket = serverSocket.accept();
                out = new BufferedOutputStream(clientSocket.getOutputStream());
                /*send a byte*/
                int send1 = 3;
                out.write(send1);
                /*send a string with a line termination*/
                String send2 = "a string sample";
                out.write(send2.getBytes("ISO-8859-1"));
                out.write('\n');
            finally
                try { out.close(); }
                catch (Exception e) {}
                try { clientSocket.close(); }
                catch (Exception e) {}
                try { serverSocket.close(); }
                catch (Exception e) {}
    on client side
            Socket clientSocket = null;
            InputStream in = null;
            try
                clientSocket = new Socket("localhost", 4444);
                in = new BufferedInputStream(clientSocket.getInputStream());
                /*receive the byte*/
                int receive1 = in.read();
                System.out.println("The received message #1 is: " + receive1);
                /*receive the string up to the line termination*/
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                int c;
                while (((c = in.read()) != '\n') && (c != -1))
                    baos.write(c);
                String receive2 = baos.toString("ISO-8859-1");
                System.out.println("the received message #2 is: " + receive2);
            finally
                try { in.close(); }
                catch (Exception e) {}
                try { clientSocket.close(); }
                catch (Exception e) {}

  • How to send a file to one of many directories dynamically

    Hi all Good Afternoon,
    Im doing a JDBC to FILE scenario in which target system is a file.In this scenario a single file will be generated at target system and there are six target directories which are already  created.
    Now my requirement is "I have to send this file to one of the target directories dynamically."
    Can anyone tell me how to achieve the above criteria..
    Thanks in advance,
    Reagrds,
    Prajwal

    Prajwal,
    You need to use Adapter Specific Identifiers. See here for example fo changing File Name dynamically.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    You will need to manipulate File directory similarly.
    Regards,
    Jaishankar

  • How to send Chinese Characters from BPEL to SAP through JCA Adapter

    Hi All,
    We want to do a POC using a BPEL process to send Chinese characters to SAP System through a JCA Adapter.
    If anyone has implemented the similar requirement, please share your thoughts on how to achieve it? Or if there had been any problems?
    Also, please let us know which SAP API we can use to test this?
    Appreciate your quick help!

    Hi Srini,
    I am working on 9.0.3 EBS 11i.
    Now i am able to encode using the below code:
    in = new BufferedReader(new InputStreamReader(uploadedByteStream.getInputStream(),"UTF-8"));
    if(linetext[7]!=null&&!"".equalsIgnoreCase(linetext[7]))
    col8=linetext[7].toString();
    vendor = new String(linetext[7].getBytes("UTF-8"),"EUC_CN");
    Now i am able to encode to chinese character when the file is in ANSI encoding, i see the CSV data in some form(not chinese).
    But when the file is in UTF-8 , and i can see the CSV data in Chinese (when i open in edit plus) , the encoding is not proper. when i remove the encoding the chinese data is coming properly.
    The data i am printing on the OAF screen.
    Now my doubt is : What type of file shd i be uploading ANSI/UTF-8????
    When i see on the local jdev as sop's , the data is seen as ???? but on the screen its printing correctly.
    but the data has to be passed to pl/sql procedure.
    Regards,
    Roopa.

  • How to send the output of one step as input to next step

    Hello All,
                   I have a question that how to send the output of the first step as the input to the next step.
     for e.g
                  consider a test sequence as below,
      1.battery ON.
      2. read Voltage
      3. Check battery voltage.
     as initially the battery gets ON when ever the test starts. in the second step it reads the voltage. let us assume that the voltage is 11.5V,
    in the third step we r checking/validating that battery voltage in the range 11V to 12 V. . I mean if the vloltage value is  less than 11V or greater than 12V te test has to FAIL.
     so in order to check that voltage we need to send the voltage read from the second step.
    so how can I send the voltage read from the second step to the third step so that I can check the battery voltage test.
    kindly suggest me this using LabVIEW/Test stand.

    Hi,
    Why do you need the third step, if the second step is a Numeric Limit Test step type, you can setup the limits of this step for your required limits of 11V and 12V. Your result is returned from your VI to Step.Results.Numeric which will be evaluated in the Status Expression giving you a Pass / Fail status.
    Look at the example TestStand\examples\demo\..\Computer Motherboard Test\computer.seq
    But to answer your reoriginal question, some additional information is required.
    What are your inputs and outputs assigned to in TestStand, do you use the Step properties, Locals, FileGlobals?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How can i redirect to with one button to different pages!

    Hi All,
    For any application, for the first time,if a new table exists then there will no data in that table.
    based on this scenerio,in my application,i am handling apex validation staying that "you have no data. Please click here to go Reset symbol page.
    when it redirects to Reset symbol i am providing a text box and with a button. Once there enter a symbol and click on button it will inert in that table and again redirects to Home page for say-39.
    simillarly what are the functionality available in home page i had implemented same thing but only it differs page no for say-115.
    In both the scenerio's i will be redircting reset Symbol page where there can insert a symbol explained in above scenerio case.
    My problem is when i am throwing the error msg from page-39 i am redirecting to Reset symbol and when there enter symbol and click on button again i will be redirection t page -39 because the error had came from page-39.
    If the same error comes from page-115 then also i will redirecting to same Reset Symbol where there will be entering symbol and click on button, in this case it should redirect to page-115 instead of page-39 because i have got error from page-115 but not from page-39.
    How to handle the above scenerio, please help me out.
    Thanks in advance,
    Anoo.

    Hi Andy,
    Thanks for your suggestion, it is working fine..But i am facing one problem in page 115, i have two regions and both regiosn have same name but only difference is items names.. when i had tried to rediect to page-115 the umwanted one regions is showing instead of expected region. It is getting failed here bec it is rediecting to differnet region.
    Any suggestion on this!
    Thanks,
    Anoo..

  • [HTTP Sender]How to send different XML using static URL

    Hi all,
    I have a problem, my legacy system send XML messages to SAP XI by HTTP, I know that I need to use HTTP Sender adapter, the problem is that legacy system support only a static URL. I have more than one interface, how could I fix this problem?
    Can I send the XML message to SAP XI without define INTERFACE on URL? How can I handle this?
    Thank in advance,
    Daniel Torres

    Hi Srinivas,
    The legacy system is a java application, that send XML messages to SAP XI server using HTTP protocol. So I just ask to legacy system team to change the application to add <b>server</b>, <b>namespace</b> and <b>interface</b> attributes to the URL querystring.
    So for each XML message you should especify mesage interface that it belongs to. You do it by especifying on URL as message atribute for exemple:
    HTTP://[SAPXISERVER]:80[SYSTEM ID]/sap/xi/adapter_plain?service=[BS SERVICE]&namespace=[MESSAGE INTERFACE NAMESPACE]&interface=[MESSAGE INTERFACE]
    So if you have for example information belows:
    <b>MESSAGE INTERFACE</b> = MI_MYMESSAGEINTERFACE_IB
    <b>MESSAGE INTERFACE NAMESPACE</b> = urn:teste:mymessageinterface
    <b>SERVICE</b> = MY_LEGACY
    <b>SYSTEM ID</b> = 10
    <b>SAPXISERVER</b> = MYSAPXI
    Your url should looks like: http://MYSAPXI:8010/sap/xi/apadter_plain?service=MY_LEGACY&namespace=urn:teste:mymessageinterface &interface=MI_MYMESSAGEINTERFACE_IB
    You should have a different message interface for each XML that you send to SAP XI.
    Message was edited by:
            Daniel Torres
    Message was edited by:
            Daniel Torres

  • How to set different urls for logoff button for different user groups

    HI All,
    We have two different set of users in our company .when one user group clicks on the logoff button in masthead we want to redirect them to for example www.google.com and for the other group we want to redirect to www.gmail.com.
    How can we acheive this particular requirement
    Thanks
    Bala Duvvuri

    hi bala,
    For the  two user groups maintain two different desktops, two/same themes and frame work.change the headeriview jsp in masthead par file to Google and save it as masthead1 and another one with gmail as masthead2 then create iviews with that par file and assign them to different groups and make invisible the default masthead iview.then the users get the logoff based on group you can get some wikis on changing log off or redirecting log off, check these threads
    Portal logoff : Redirection or Close the Entire Window
    Portal Logoff redirection URL
    Regards
    Mahesh

  • How to use different SRIDs in one map?

    Hi, I created a map where one theme comes from a table with geometries in SRID 8307, and another theme comes from a table with geometries in SRID 82027. The tables have the necessary entries in USER_SDO_GEOM_METADATA.
    From what I read in the documentation, MapViewer is able to convert geometries if the SRID for the map request is different from the SRID for a theme. However, it does not work for me. Anybody got this working? I assume the SRID for the theme is derived from USER_SDO_GEOM_METADATA? (it's not a JDBC theme) How can I set the SRID for the map request? (MVMapView just has getSrid() and no setSrid())
    I use Oracle 10.2.0.3.0, MapViewer 10.1.3.3, and would like to create an Oracle Maps application.
    Regards,
    Markus

    I've changed my SRID from 82027 to 31467 and now it works as expected.

  • Mediathek: how to put different folders in one file? thanks

    Hi!
    how I do it when the same album but with several authors, my media library automatically creates authors have many folders as though it's the same CD
    thanks

    > > I have a simple question. I have to create digital control, where the
    > > possible entry values are determined, and are not going in equal
    > > increment. Simply saying the values which show up to the user , when he
    > > clicks on the digital control window arrows are as follows: 1, 2, 5, 10,
    > > 20, 40, 60. Is there any way to do it with digital control window? I
    > > know, I can do it with listbox, but I need it to be done with digital
    > > control window.
    > > thanks in advance,
    > > chris
    >
    > Chris,
    > there is not a simple way to accomplish this. There
    > is a hard way using a local variable and some serious
    > logic but I do not think you would like the results.
    >
    > Is there some reason you can not use a ring control ?
    > This would be much easier to use an
    d you can recover
    > the values by indexing the string array attribute node
    > and a sting to decimal function.
    Actually, since one of the rings looks just like a numeric, you can
    just let the user increment and decrement a ring with the string "1",
    "2", "5", ..., then the user will see a control that lets them do the
    right things along with selecting from a menu. You can then use the
    ring value to index an array of constants that match the strings.
    You can also use an enum if you would like instead of a ring. The
    other approach would be to use a numeric indicator and Boolean buttons
    near the indicator to let you increment and decrement. You can use
    the control editor to borrow the images from a real numeric's increment
    and decrement buttons.
    Greg McKaskle

  • How to send an object from one application to another?

    Hi all,
    I have two applications over the same server. The first application needs to send an object to the other application.
    I try to put the object as a session attribute, but in the moment that the second application tries to get the attribute, the attribute doesn't exist.
    Does anybody now how can pass an object from the one application to the other?

    You can also use JMS

  • How to send different XML using static URL

    Hi Guys,
    I have the problem, my legacy system sends xml messages to XI by HTTP, my legacy system support only a static url http://host:8000/sap/xi/adapter_plain
    I have more than one interface, how did u fix this problem. I need to send xml to XI with out defining INTERFCAE on URL.
    can anybody explain how to handle this issue, help would be really appreciated.
    Thanks,
    k s reddy

    You have two options:
    1. use enhanced receiver determination (but for that, you'll have to use java mapping from input message to receivers), it will only work from 3.0 SP16 / 7.0 SP7;
    2. use a generic interface, where you define all possible message type tags with occurrence 0...1.
    Regards,
    Henrique.

  • How can i generate ActionEvent to one button by preesing another?

    i use awt GUI , i need to prees one specific buttonand as a result generate event to onather button , (like i was preesing it) , please help me!
    [email protected]

    this is just a test for understanding feature

Maybe you are looking for

  • Jabber Cannot Control Desk Phone

    I know, I know.  A well-worn topic.  But it's just not happening for me, and I'm new to Presence 9.1  This is a new installation. Also using CUCM 9.1 and Jabber 9.2.6.  I don't even know where the Jabber error logs are. Anyway, when I try to get Jabb

  • Using one instance of a Movie Clip to load Graphics from library

    Hi all, another question... How would i go about loading a variable into a movie clip and have it pull different graphics from my library at different spots in the main timeline??? thanks! Patrick

  • Notes not syncing in last 10 days

    even before upgrading to version 4.1, my 3GS stopped syncing notes from MacMail. I used to be able to type my notes onto the computer and sync them into the phone and visa versa. Now any new notes I add to macmail notes just disappear. And I think th

  • Can't play video when it's type "TV Show"

    I've got some videos copied from TV show DVDs.  They sync to the iPhone OK, but if I have them set as type "TV Show" in the Get Info tag, they don't show up in video.  If I go in iTunes and change the type to "Movie" they suddenly appear and play fin

  • SQL Developer Data Modeler, Repository or file based?

    As announced, in a next release of SQL Developer Data Modeler it wil be repository based. Ok that is nice. But what does it mean for the current possibility to store your work in files. Will the possibility to store in files be supported in new relea