Dimmer control for LED lights with HTTP Requests

Hello,
I'm al little bit know with LabVIEW, but I have a problem that I can't get fixed.
For a project we control the led lights in a house with http requests (we use the http get request): this exists of a http address, the number of the light, the PWM (the brightness of the led) and the current.
Controlling the lights with the switches is easy and is working fine. Now what we want to do is create a dimmer that can be controlled with the switches in the rooms.
The following should happen: if the users clicks one time (so lets say for less than a second) than the light should just switch on. If he/she pushes the light switch and keeps pushing it than the light should dim.
So the value of the PWM (and this is a string value) should change from 0 to (lets say) 100 when pushing it once, and it should decrease form 100 tot 0 (step by step) when the user keeps pushing the button. The thing I'm having difficulties with is making a difference between just clicking once and keeping the button pushed for a few seconds in the labview software.
Any tips or ideas? Any Help is Welcome!
Thanks
CORE CVBA

CORECVBA wrote:
The thing I'm having difficulties with is making a difference between just clicking once and keeping the button pushed for a few seconds in the labview software.
It sounds like everything else is working and your problem is to detect the button action details.
Are you talking about a real physical switch or is this a switch on the LbVIEW front panel?
All you need to do is detect a off->on transition, When it occurs, place the current tick count into a shift register, then subtract it from the tick count in subsequent iterations (as long as the button is TRUE). Change your output as a function of the elapsed time until the button is released.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • Message: Enter a country for partner xyz with type 'requester'

    We are using SRM Server 500.
    I am customizing a new installation. When I create a SC in classic scenario using "Describe Requirement" I get following messages:
    "Enter a country for partner 0000000081 with type requester."
    "Enter a country for partner 0000000081 with type goods recipient."
    I didn't enter a source of supply, the partner number 0000000081 is a BP that belongs to the user in who creates the SC, as I can see in ppoma_bbp.
    All org-units are matched up in TA BBP_BP_OM_INTEGRATE.
    In TA BP I checked the address of 0000000081. Everything is ok, country is entered. What I cannot find is Partner type 'Requester' or 'Goods Recipient' in TA BP.
    I never had this Problem befor and I customized a few SRM, EBP, BBP, B2B systems. Has anybody an idea?
    Thank you for your response.

    Hi BERTRAND,
    one of our users is also facing the same issue when she is trying to cancel one confirmation in srm 7. DO you have any idea how can i check the consistency of the user in SRM7 as BBP_CHECK_USERS are not working in my SRM7 system.

  • Accessing a .exe file with HTTP Request

    Hi!
    Can I access an executable file located in a WEB page with JMeter?
    I'm tryng to use a HTTP Request:
    Server Name or IP: 111.111.111.1
    Port Number: 8080
    Path: /cliente/file.exe
    The file is in a Tomcat application.
    When I run, in the View Results Tree - Sampler Result, it shows:
    Load time: 63
    HTTP response code: 400
    HTTP response message: Bad Request
    HTTP response headers:
    HTTP/1.1 400 Bad Request
    Date: Wed, 27 Apr 2005 14:26:09 GMT
    Server: Apache-Coyote/1.1
    Connection: close
    I already had copied the link and placed it into the browser to verify
    if it was correct and i had access to the file normaly.
    What am I doing wrong?
    Thanks in advance.
    Marcelo.

    If the .exe file is publically-accessible from your web server (like other normal .html files are for example), then accessing that resource would be done the same way as accessing others (get a stream of bytes that the server would serve up, and do something with those bytes on the client end of the connection). I don't know what JMeter has to do with that.

  • Help with http request

    Please, help me with two problems I have to solve. I'm beginner in Java.
    1. Create a simple program that sends http request for index.html and shows the result.
    2. Create a simple program that gets the list of messages from a give mailbox over POP3 (server, username, pass - give as params).
    Thank you!

    But I think that I need request like this:
    GET /index.html HTTP/1.1
    Host: www.example.com
    and as a result (maybe) something like this:
    HTTP/1.1 200 OK
    Date: Mon, 23 May 2005 22:38:34 GMT
    Server: Apache/1.3.27 (Unix) (Red-Hat/Linux)
    Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
    Etag: "3f80f-1b6-3e1cb03b"
    Accept-Ranges: bytes
    Content-Length: 438
    Connection: close
    Content-Type: text/html; charset=UTF-8Well, under the covers, that will be what you have.
    It says "simple program" - do you think you are expected to connect your own socket and send a request you build from scratch yourself? Unlikely.
    As for the response - you can probably skip the headers and just display the content that follows (in your example 438 bytes).

  • Problem with HTTPS requests to host with untrusted server certificate

    Hi,
    I develop an iPhone framework which sends HTTPS requests in order to communicate with a publicly available backend server. Currently I have a big problem regarding untrusted server certificates.
    The certificate of the backend server is not signed by a trusted CA, so my first approach was to use NSURLRequest's private allowsAnyHTTPSCertificateForHost. While this worked as expected an was fine as temporary workaround, our customer demands a clean solution as final result. Therefore I wrote a method which allows to install a provided certificate from the file system in the keychain, but this method does not work as expected in the iPhone Simulator. The certificate is installed in the host machine's Mac OS X keychain instead. Unfortunately, if I call NSURLConnection's sendSynchronousRequest method, I retrieve an "untrusted server certificate" error. It seems as if NSURLConnection is not able to access the host's Mac OS X keychain to retrieve the certificate.
    Is my guess correct or did I miss something?
    Would my approach work if I ran my app on a real iPhone device instead (I do not have one available yet)?
    Does there exist a keychain in the iPhone Simulator at all?
    Is it at all possible to send HTTPS requests to a server with an untrusted certificate on the iPhone Simulator or do I have to use precompiler directives to implement different routines depending on the underlying platform (simulator or device, respectively)?
    Any help is highly appreciated.
    Thanks,
    Matthias

    Indeed this would be a clean and simple solution. But our customer is not willing to get a real certificate, for whatever reasons.
    The question that remains is if the HTTPS requests would succeed on the iPhone device itself if the server certificate was installed in the keychain by the same app beforehand.

  • Limiting or control for Residual payment with reason codes

    Hi FI Gurus,
    When we are received or making payment to customer or vendor, sometimes we need to clear the invoice by receiving or making payments with small differences through residual payment. Is there any control for limiting residual payment.
    Lets have an example
    invoice posted for 1000
    customer dr 1000
    sales       cr  1000
    Partial payment recd 500
    cash/bank dr 500
    customer cr   500
    final payment received 350 and balanace amount adjusted with residual payment by defining reason code like rounding off difference. So in this case accounting entry will be
    customer cr 350  
    rounding off diff 150
    cash/bank 500
    being final payment agaisnt invoice
    My question:   Is there any way to restrict the residual payment like 10% or 20% of total invoice i.e. 100 or 200 and not more than 20% ?  other wise sometime user may adjust any amount may be 100000 through this way by putting the same reason code, which is not fair.
    I checked SPRO setting but i did not get anyt setting relating to above case.
    If any body know, please let me know? Thanks in advance
    Regards,
    Prakash

    Hi Lawerance,
    Thanks for reply.
    But I am looking for amount adjusted through residual with reason code. I dont think there is any limitation or control in the SPRO standard setting. Tolerance is preventing user to post document for more than a specific amount. But my question is something different.
    I want to control the user for adjusting amount from residual tab with selecting reason code. In other words user should not adjust more than some limit with residual payment by selecting reason codes. Thanks.
    Regards,
    Prakash

  • Java service invocation with HTTP Request

    A simple HTTP Request containing the SOAP envelope is a valid way of calling a web service, right?
    It seems simpler and more efficient than the "traditional" ways (Axis, JAX-RPC, etc), so what are the disadvantages?
    Thanks in advance
    Pedro

    kept the jars under APP-INF/lib

  • SSL Certificate necessary for web Service with HTTPS encoding?

    Hi experts,
    I wanna create a Web Service with HTTPS. Now when I create an endpoint in Transaction SOAMANAGER, I use "Transport Guarantee Type" HTTPS. I'm a little bit confused, becuase at "Authentication Method I have different options which I don't understand.
    At Authentication Method, there are some check boxes.
    Whats the difference between HTTP Authentication and Message Authentication?
    (Why) can I use User ID/Password as Authentication Method with HTTPS? I think I need X.509 SSL Client Certificate.
    What is a Logon Ticket?
    Is there a good Documentation in the web, who explains the meaning of the different options and when to use which option?
    Thanks and regards,
    Sebastian

    Hi,
    >>>WSDL in Integration Directoryb but that WSDL containt a like staring with the HTTP instead of HTTPS! My question is how to generate a wsdl file with an HTTPS url tot he web service,
    you don't use the URL from ID - you need to create one yourself and put it there in the generator
    Regards,
    Michal Krawczyk

  • Synchronous BPM starting with HTTP Request

    Hello there,
    I have a requirement to call 3 web services, consolidate their responses, and sending back the results to the caller (a web page in this case).  The request is coming over HTTP (synchronously...the file sender scenario that is on SDN does not apply here). 
    I have tried the sync/async bridge to prototype this synchronous scenario, but I get the following error.
    "The process does not support the given synchronous interface or does not support synchronous messages"
    Since the Receive step only allows Async and Sync/Async Bridge options (which doesn't really apply here because all of my web service calls are synchronous), and off course the HTTP as well.  What options do I have to build this scenario via BPM (or without BPM)?
    Looking forward to the replies.
    Thanks

    Hi,
    I'm trying to build similar ccBPM process which processes a synchronous message sent from XI SOAP sender to a Web Service. Both sender and receiver systems are synchronous.
    Instead of going directly to the Web Service receiver, I would like the message to go through ccBPM.
    Can you give a sample for such process ?
    What receive step mode should be used - "Asynch" or S\A "bridge" ?
    I tried to receive the message using "Asynch" mode and than send it with "Synch" mode.
    A runtime error is generated:
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    <SAP:Category>XIAdapter</SAP:Category>
    <SAP:Code area="BPE_ADAPTER">SYNCHONOUS_MESSAGE</SAP:Code>
    <SAP:P1 />
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>The process does not support the given synchronous interface or does not support synchronous messages Exception CX_WAPI_DEF_PROPERTY_NOT_FOUND occurred (program: SAPMHTTP, include: , line: 0).</SAP:Stack>
    <SAP:Retry>N</SAP:Retry>
    </SAP:Error>
    Please help !
    Thanks
    Orit

  • TREX not working for e-recruiting with HTTP content server

    We have a separate e-recruiting instance where we have only e-recruiting functionality installed. In this system we are using Storate type as "http content server instead of standard setting "SAP system database" for HR_KW content repository via transaction code "OAC0"
    Following are the details
    Document Area: HR_KW
    Storage type : HTTP Content Server
    Version no. 0046 Content Server version 4.6
    HTTP server vd24cs02.sce.com
    Port Number 8080 SSL Port Number
    HTTP Script archive
    Phys. path /usr/sap/N09/SYS/global/
    Points to be noted:
    1) TREX Search functionality for Job postings etc is not
    working with this setting, however if we use HR_KW_CONT (storage type=03 SAP System database) , above mentioned functionalities work. We observed that xml files required for TREX search are also not getting created when we change the settings.
    2) We observed that when we change the storage type the indexing job is successful but application log shows some failures in reading/modifying xml files
    Please let me know what are the settings/ procedure to use a different storage type instead of standard setting delivered with the product. Anything related to the setting for above requirement

    Hi All,
    I may have a similary problem but I'm not entirely sure.
    I have been tasked with setting up a simple java servlet to authenticate against a BOXI (Business Objects) server, from my tomcat server (tomcat 5.5) on my windows XP  desk top machine. I will add more info on this shortly.
    I have been supplied with a krb5.ini file and the bscLogin.conf file as follows:
    bscLogin.conf :
    com.businessobjects.security.jgss.initiate {
    com.sun.security.auth.module.Krb5LoginModule required debug=true;
    krb5.ini[libdefaults]
    default_realm = ADF.SOMEWHERE.CO.UK
    dns_lookup_kdc = true
    dns_lookup_realm = true
    default_tgs_enctypes = rc4-hmac
    default_tkt_enctypes = rc4-hmac
    [realms]
    ADF.SOMEWHERE.CO.UK = {
    kdc = DC90.ADF.SOMEWHERE.CO.UK
    default_domain = ADF.SOMEWHERE.CO.UK

  • Need Help for  SOAP sender with HTTPS protocol

    Hi Team
    We have a scenario where the sender is a 3P system and they will be sending the message using web service.They will send the data using SSL ( HTTPS) using certificates.
    In the sender soap adapter , I have two options
    1. HTTPS with client Authorization
    2. HTTPS without client Authorization
    I think I need to use the first option. But I have doubt regarding certificates
    1. Who is going to provide the certificate? is it PI Team or the third party team.
    2. Once we have the certificate where we need to store it in NWA? is it in the TrustedCA keystore view or service_ssl keystore view.

    Hi Indrajit,
    Krupa already shared a valuable resource on how to set up on Double Stack PI, so I'll focus on what's left to deal with / open questions.
    Indrajit Sarkar wrote:
    In the sender soap adapter , I have two options
    1. HTTPS with client Authorization
    2. HTTPS without client Authorization
    I think I need to use the first option. But I have doubt regarding certificates
    1. HTTPS with client authorization means that the 3rd party would not give username / password to authenticate to your PI but present a certificate you are trusting. You can think of this as an admission ticket to communicate with your PI server
    2. HTTPS without client authorization means they will authenticate with username password.
    In both cases the caller (3rd party) would need to trust your PI server. Most commonly this trust is established by not trusting your PI server's explicit certificate but in trusting the CA that issued your PI server's certificate. This CA can very well be a company internal CA. That way, if you happen to need changing the hostname of the server some time in the future, trust situation is still valid.
    In case of 1. (HTTPS with client authorization) your PI server in turn would also need to trust the 3rd party caller. This is often done in such ways that the interal CA on your side issues a client certificate with the CN of the caller. The caller presents this certificate to your server upon making a call (see here for a picture https://help.sap.com/saphelp_nw74/helpdata/en/43/dc1fa58048070ee10000000a422035/content.htm). You will also need to back up this process on your PI server by mapping the certificate to a specific user.
    --> Option 2 is the more polished one with ability to withdraw a certificate and the like. However it does result in some overhead setting it up so I personally would go with Option 1 if there's no business need / security policy enforcing so.
    HTH
    Cheers Jens

  • Shall v maintain price control  for material type with plant specific ?

    Hai Guru,
                       In OMS2, we change HALB price control [valuation] as V or S.  whether shall v maintain this for plant specific.?
    Kindly guide
    With Regards
    Swetha

    Hi
    if you do not make the indicator Price control manadatory active then you can have different price indicator for each plant. However thsi indicator is never done plant specific. If you wish to have plant specific then you may have to have a new material type and again you need to control the MM01 creation for that particular plant by means of Authorisation control which is littel involved also but can be done.
    Regards

  • Get a URL for web service with HTTPS

    Hi,
    After deploying all required configuration for secure WS, I'm trying to generate a wsdl to give to the third party. I m using the Despay WSDL in Integration Directoryb but that WSDL containt a like staring with the HTTP instead of HTTPS! My question is how to generate a wsdl file with an HTTPS url tot he web service,
    Thanks in advance,
    Fred.

    Hi,
    >>>WSDL in Integration Directoryb but that WSDL containt a like staring with the HTTP instead of HTTPS! My question is how to generate a wsdl file with an HTTPS url tot he web service,
    you don't use the URL from ID - you need to create one yourself and put it there in the generator
    Regards,
    Michal Krawczyk

  • Is there an issue with the latest version of FF with HTTPS requests and Proxy authentication?

    I'm currently working inside a cope network behind a proxy, which requires authentication.
    When browsing to websites externally to our network I would usually only be promoted once for authentication details; after that I would never see the prompt again until after restating the browser.
    However after the latest update I've found that when visiting HTTPS sites I'm promoted for my login details. But even though I enter the correct information the prompt does not take the details and continually asks until eventually our proxy closes the connection (usually with my account now being locked).
    My other browsers (IE, GC) work fine without problems.
    Any ideas?

    It could be a regression in Firefox 18 that wasn't present in Firefox 17. The developers are known nowadays for including too many experimental changes and my bet is one of them is causing this.
    But to confirm, could you downgrade back to Firefox 17 and still see if it works well with proxy authentication?
    Download link:
    <br> www.mozilla.org/en-US/products/download.html?product=firefox-17.0.1&os=win&lang=en-US

  • Control for manual Reservation with production order

    Dear PP Guru,
                         In my business, I have more than 356 semi finished material and each material have at least 30 item in BOM. We issue material from Raw material store to shop floor store from where these are consumed on production orders and I have 5 level Material BOM for Finished materials. Due to having a number of production orders it becomes impossible to check for which material reservation have made or not.
    Give a wayout from which I can easily traced out by an application. when production orders is being created, system made automatic reservation according to BOM whether stock is available or not. just like automatic reservation, is it possible to make manual reservation without having stock of any material. so that reservation remain open till recieving new stock for material.

    Dear Muhammad,
    Do you mean to say you want to do a transfer posting?
    You can do using 311 movement with respect to the BOM in T code MB1B or else with respect to a
    production order in MF60,if you are going to do in MF60,then in global settings remove the indicator for
    stock transfer so that it moves from one production storage location to another.
    Generally once the production are in created statuis itself,reservations are generated for 261 movement
    for its components.
    Either you can do MB1A for good issue or else use even CO27 or else backflush while doing
    confirmation.
    Now check and revert back.
    Regards
    Mangalraj.S

Maybe you are looking for

  • Networking "best practice" for setting up a farm

    Hi all. We would like to set an OracleVM farm, and I have a question about "best practice" for configuring the network. Some background: - The hardware I have is comprised of machines with 4 gig-eth NICs each. - The storage will be coming primarily f

  • How to exclude the debit memo & credit memo out of COPA report (KE30)?

    As captioned, now the current KE30 default transfers all the data from sales orders interfaces (via VA01), such as common sales order, 3rd party drop shipment, credit memo and debit memo etc. Is there any idea to exclude the quantities display in KE3

  • MSI Media Center III

    I just read that the MSI Media Center III os bundled with the Mega180 Barebone. Has anyone informations about this software? Is it better than the MSI Media Center II and can it be used with a Mega651 Barebone? thx

  • Add CheckBox to JTable

    How to add a checkBox in a column of my table? I would like to add a checkbox in column 3. Where should I add the Listener to?

  • Please help me on the logic.

    Hi,   Please help me the logic below my requirement.I found one function module to calculate the age HR_RU_AGE_YEARS.But iam not able to implement the logic.Please help me. If the value in table P0021-SUBTY = 1 send 'SP' If the value in table P0021-S