How to use a boolean to log time?

Hi all,
In my application, I want to use a boolean to log a time on continuous bases. When boolean gets 1, it logs system time. When boolean gets 0, it logs system time...& the cycle goes on.. We can use push button for changing boolean value...
Please guide me,,
Thank you,
Vaibhav Gandhi
B.E. Instrumentation & Control,
INDIA
Solved!
Go to Solution.

Hi vaibhav,
 I created a switch control,whenver its state is changed..that particular time is logged...Check the attachment..
Thanks and regards,
srikrishnaNF
Attachments:
Example_VI_BD.png ‏12 KB

Similar Messages

  • How to Use a Boolean Vector To Index an Array

    Say I have an array A = [1 2 3 4 5 6 7 8 9 10].
    I also have a boolean array B = [1 1 0 0 0 0 0 0 0 1].
    I want to use the boolean array B to pick out elements in A, creating a new array C = [1 2 10]. In MATLAB, I would just type C = A(B).
    I'm scratching my head trying to figure out how to do this. One solution would be to run through a for loop, querying B(i), and deleting A(i) if B(i) = 1. But this would change the size of A, so that the second time I did this, my index would be wrong.
    Anyone know a clean way of doing this?
    BONUS: If I have a 2D AA, with multiple columns, it would be nice to use B to pick out multiple columns of AA (in MATLAB, this would be CC = AA(:,B).
    Solved!
    Go to Solution.

    This can be done with auto-indexing with conditional tunnels.  The same approach could easily be applied to a 2D array, as well:

  • Java mapping how to use com.sap.tc.logging

    Hi I would like to know how to use logging within a java mapping.
    I know i have to use theese classes : Location, Category, ConsoleLog but i dont know how.
    1) How to load the P1, P2, P3 and P4 tags in the Error tag of the SOAP header watched in SXMB_MONI
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">STREAM_TRANSFORMATION_EX</SAP:Code>
      <SAP:P1>SwissMedical/Interfaces/IFI002/LiquidacionMapping~</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Java mapping of application triggered an exception</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    2) How to load and activate log in the DIAGNOSTIC tag of the SOAP Header.
    - <SAP:Diagnostic xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:TraceLevel>Information</SAP:TraceLevel>
      <SAP:Logging>Off</SAP:Logging>
      </SAP:Diagnostic>
    Thanks!!

    As already suggested, you can display custom messages using AbstractTrace.
    trace = (AbstractTrace)param.get( StreamTransformationConstants.MAPPING_TRACE );
                        trace.addInfo("G1-CYCLE is missing");
    For more on coding front refer:
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/StreamTransformation.html
    To get this trace seen in MONI, set parameter TRACE_LEVEL in SXMB_ADM to 2.

  • How to use alternate payee at the time of P.O

    Hi SAP Experts,
    Could you please tell me how to use alternate payee for vendors. At my clients place User wants to make alternate payee for some vendors. I have made Alternate payee as optional entry in vendor master data but i would like to know if i have to make any settings because the user wants to see the alternate payee for vendor when they create a purchase order. Anyone please let me know the detailed steps in defining the alternate payee.
    Kind regards
    Leoni

    alternative payee option are available in two ways which are defined in master level at General data (for corporate decisions) or at company code data level (for individual company decisions)
    1.You have option to fix one as default always - only one
    2. Alternatively - you have option to select at Doc level - you will be able to define selective few within which u can select at document level.
    As payment is linked to Finance level and nothing to do with PO, this will not be available at PO.
    Hope it is clear.

  • How to use a structure at run time....

    Hi gurus,
    I am confused on how to use the structure in our report..why do we need it...Please help me with that...
    Thanks
    Cheers:Jim

    Or you could simply use a structure in your program to group like fields together.  So that you could maybe clear them all at one shot.
    For example, say that you have a structure with fields a - z.
    data: begin of structure,
            fielda type c,
            fieldb type c,
            fieldc type c,
            fieldz type c,
            end of structure.
    So in your program, it is now important for you to clear these fields, if you would have defined them one by one without the structure, you would have to list them all in your CLEAR statement, but instead, since you have them in a structure, you can some say....   CLEAR STRUCTURE.
    Regards,
    Rich Heilman

  • How to use one boolean button to control many boolean buttons?

    I would like to create a LabView control interface with boolean buttons.
    As my attachment picture shown, there are four boolean buttons.
    The button1 is the main power, if I press ON button1, other three
    buttons also turned to ON at the same time.
    How do I build up the LabView program in the block diagram?
    What should I do???
    Attachments:
    booleans.bmp ‏722 KB

    Controls and indicators function as variables. In a text based language, you could just write the name of the variable again. In LV, since each control only has one terminal, you need local variables to do this. To create a local variable, right click on the control and from the popup menu select Create>>Local Variable. You can have a local as read or write. Create a local for each of the buttons and wire the data coming out of the first button into the locals.
    There is something that is very important to understand here - when you use locals, you can disrupt the dataflow nature of LV and create race conditions. For example - if, after fixing your code, you were to click on one of the buttons, to set it to F, it would immediately be set back to T by the running code. This can be very dangerous. Also, I see you're using the continuous run mode. You should use a loop instead. Try looking for some LV by searching google for "Labview tutorials. Also, here's one you can start with.
    Try to take over the world!

  • How to use j2se 1.4 logging features with j2ee 1.3

    Hi,
    We have developed an EJB that will run in the j2ee 1.3 container of weblogic 5.0
    We would like to use the logging features of j2se 1.4 in our ejb.
    Can this be done ?
    How do I install and use j2se 1.4 a long side of j2ee 1.3 ?
    Is this a recognised configuration ?
    Many Thanks,
    Mark.

    Is it possible to install j2se 1.4 on the same machine
    that is running weblogic with j2ee 1.3 ? Yes.
    If it is.... How do we do it ?Just install it in different directory - the installer will do this for you by default anyway.
    How do we protect our code running in the j2ee 1.3 container from
    mistakenly using the classes provided with j2se 1.4 ?Thats what PATH and CLASSPATH environment variables are for. Read the tutorials on the left there for more information.
    Do we end up with 2 separate VMs one a implementing
    j2ee 1.3 and one a j2se 1.4 ?You end up with as many as you run.
    Every time you run java (java.exe on windows, just plain java on UNIX) you run the version of the VM that's on your PATH.
    It's quite normal to have (on the same machine) a 1.3 VM running Weblogic and a number of 1.4 VM's as clients of that Weblogic installation.
    I think I'm right in saying that 1.4 VM's are (in some cases) regarded by BEA as supported clients of a Weblogic server running in a 1.3 VM, but you'd have to check their e-docs site for exact details.

  • How to use sy-ucomm in one time in the report

    Hi guru,
    I developed a z report when i am executing the report one screen is didplaying and here and here i have to delect some check boxes (update) and then click the click the toolbar stage (which was created using sy-ucomm) and we are getting some output.
    Now the requirement is when user second time clicking the  botton stage the report shaould not execute it self.How to do it means how to restrict .Please help me .May be it is easy for you but I am facing a severe probleam to achieve this.
    needs yours cooperation and patience.

    Hi subhassikan
    I am not very clear about what you want to say.
    1. you want the sy-ucomm to be executed once right, then you can use a flag in that case.
    one it executed first time
    make flag = 'X'.
    and next time check the value of flag if it is 'X' then the code under sy-ucomm should not be executed.
    2. Secondly is there some buttton or something that you click, check function code for only that button and should not execute for any other button and function codes must be different.

  • How to use same dynamic text, multiple times in a Movie

    FLASH CS5.5
    How can a dynamic text field be used multiple times, on any
    frame, in any new layer during a Movie?
    ~~
    A number of unique dynamic text fields are being used.
    The intent is to use them each, many times during a Movie.
    (i.e. a users first name)
    They are successfully being "ExternalInterfaced" from a PDF form field.
    (the SWF is displayed within the PDF as a RMA)
    This all works well, IF I only use one instance of the dynamic text field.
    (one use of each unique text field)
    If I try and use that same dynamic text field, again, in a new layer, later in the SWF,
    all of that said, duplicate dynamic text fields do not display.
    ~~
    Stumped!!!
    Thanks in advance for your advice / comments!
    D-

    Thanks Ned,
    I always welcome learning something new.
    I did not know creating a new keyframe,
    creates a new instance.
    Yes, I had used the same dynamic text field instance name in
    numerous, new layers (great observation).
    With the objective to display the User's name throughout
    the timeline (on and off)...
    I'll attempt to paraphrase your solution;
    Use a single layer to display the dynamic text field.
    Extend this layer's timeline throughout the movie, or end use of the dynamic text field.
    Help with this one ??
    Set the visible properties to true or false as need through out the timeline.
    ( Does require an AS3 ? )
    I'll give that a try.....
    ~~
    Side of effect of using the above solution;
    The SWF in it's attempted state, uses the dynamic text field instance, in
    different places, different text sizes, on the stage, throughout the Movie.
    (i.e. the User's first name appears in different sentences...)
    Per the solution above,
    I believe I will be limited to One location, one format setting.
    Is this assumption correct?
    I can make this work from a display / Movie point of view.
    However, your first VAR concept, noted above, might be
    worth exploring should more flexibility be required.
    Thanks for making the time to coach...
    D-

  • How to use Message FIlter to log postfix authenticated sender header

    I'm trying to log the username from the postfix authenticated sender header information.
    Here is an example of the header:
    Received: from [123.123.123.123] (client.domain.edu [234.234.234.234])
    (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client
     certificate requested) (Authenticated sender: [email protected]) by
     postfix.domain.edu (Postfix) with ESMTPSA id DE8A3E9429 for
     <[email protected]>; Thu, 12 Jun 2014 12:16:56 -0700 (PDT)
    And here is the message filter I'm working on:
    if (recv-int == "OutboundIP") {
    if(header('Received') == '\\(Authenticated sender: .+@ad\\.domain\\.edu\\)') {
    log-entry("Authenticated Sender: '$MatchedContent'");
    Everything is working except for the $MatchedContent variable.  It is creating the custom log entry but it is only showing as "Authenticated Sender: "
    Does anyone have any ideas on how to get the $MatchedContent variable to work or another way to log that username?

    Try taking out the ' from around your '$MatchedContent'...
    My example:
    dictionary_match:
    if (dictionary-match('not_allowed_words')){
    edit-header-text ("Subject", "^", "Notice Content Matched on: $MatchedContent");
    log-entry("#---# This email had: $MatchedContent #---#");
    notify('[email protected]');
    Sent an email with a known "secret" in the email body... and "secret" is in my "not_allowed_words" dictionary... so it'll trip my "dictionary_match" message filter...
    Mail logs --->
    Thu Jun 12 23:10:46 2014 Info: New SMTP ICID 181 interface Management (172.16.6.165) address 172.16.6.1 reverse dns host unknown verified no
    Thu Jun 12 23:10:46 2014 Info: ICID 181 ACCEPT SG UNKNOWNLIST match sbrs[none] SBRS rfc1918
    Thu Jun 12 23:10:46 2014 Info: Start MID 105 ICID 181
    Thu Jun 12 23:10:46 2014 Info: MID 105 ICID 181 From: <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 105 ICID 181 RID 0 To: <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 105 Message-ID '<[email protected]>'
    Thu Jun 12 23:10:46 2014 Info: MID 105 Subject 'This email has an issue'
    Thu Jun 12 23:10:46 2014 Info: MID 105 ready 561 bytes from <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 105 Custom Log Entry: #---# This email had: secret #---#
    Thu Jun 12 23:10:46 2014 Info: Start MID 106 ICID 0
    Thu Jun 12 23:10:46 2014 Info: MID 106 was generated based on MID 105 by notify filter 'dictionary_match'
    Thu Jun 12 23:10:46 2014 Info: MID 106 ICID 0 From: <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 106 ICID 0 RID 0 To: <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 106 DomainKeys: cannot sign - no profile matches [email protected]
    Thu Jun 12 23:10:46 2014 Info: MID 106 DKIM: cannot sign - no profile matches [email protected]
    Thu Jun 12 23:10:46 2014 Info: MID 106 ready 970 bytes from <[email protected]>
    Thu Jun 12 23:10:46 2014 Info: MID 106 queued for delivery
    Thu Jun 12 23:10:46 2014 Info: MID 105 matched all recipients for per-recipient policy mygmail_inbound in the inbound table
    Thu Jun 12 23:10:46 2014 Info: MID 105 queued for delivery
    Thu Jun 12 23:10:46 2014 Info: New SMTP DCID 53 interface 172.16.6.165 address 173.36.13.143 port 25
    Thu Jun 12 23:10:46 2014 Info: New SMTP DCID 54 interface 172.16.6.165 address 173.36.13.143 port 25
    Thu Jun 12 23:10:46 2014 Info: Delivery start DCID 54 MID 105 to RID [0]
    Thu Jun 12 23:10:47 2014 Info: DCID 53 TLS success protocol TLSv1 cipher RC4-SHA 
    Thu Jun 12 23:10:47 2014 Info: Delivery start DCID 53 MID 106 to RID [0]
    Thu Jun 12 23:10:47 2014 Info: Message done DCID 54 MID 105 to RID [0] 
    Thu Jun 12 23:10:47 2014 Info: MID 105 RID [0] Response '2.0.0 s5D3Aobe022251 Message accepted for delivery'
    Thu Jun 12 23:10:47 2014 Info: Message finished MID 105 done
    Thu Jun 12 23:10:47 2014 Info: Message done DCID 53 MID 106 to RID [0] 
    Thu Jun 12 23:10:47 2014 Info: MID 106 RID [0] Response '2.0.0 s5D3AoFH012632 Message accepted for delivery'
    Thu Jun 12 23:10:47 2014 Info: Message finished MID 106 done
    Thu Jun 12 23:10:52 2014 Info: DCID 54 close
    Thu Jun 12 23:10:52 2014 Info: DCID 53 close
    I hope this helps!
    -Robert
    (*If you have received the answer to your original question, and found this helpful/correct - please mark the question as answered, and be sure to leave a rating to reflect!)

  • How to Use a boolean function in a process

    Hi,
    I created a boolean function named change_pwd with 3 varchar2 parameters : login_name, old-pwd and new_pwd. I would like to use it in a process but I can't, this is how I do it :<br><br>
    select change_pwd (
    v('P12_Login'),v('P12_Old_Pwd'),v('P12_New_Pwd')) from dual;
    <br><br>
    Benn

    I got this error : <br><br>
    ORA-06550: line 2, column 8: PLS-00382: expression is of wrong type ORA-06550: line 2, column 1: PLS-00428: an INTO clause is expected in this SELECT statement
    <br><br>
    and here is my function :<br><br>
    create or replace function "CHANGE_PWD"<br>
    (p_username in VARCHAR2,<br>
    p_old_password in VARCHAR2, <br>
    p_new_password in VARCHAR2)<br>
    return boolean<br>
    is<br>
    l_count number;<br>
    l_password varchar2(4000);<br>
    l_stored_password varchar2(4000); <br>
    l_idcontact number;<br>
    begin<br>
    -- Check to see if the user is in the user table<br>
    select count(*) into l_count from CONTACTS where MATRICULE = p_username;<br>
    if l_count > 0 then<br>
    -- take the stored password<br>
    select u.MOTDEPASSE, u.IdContacts into l_stored_password, l_idcontact from <br>UTILISATEURS u, CONTACTS c where u.IdContacts = c.IdContacts AND c.MATRICULE = p_username;<br>
    <br>
    -- apply the cash function<br>
    l_password := user_hash(p_username, p_old_password);<br>
    <br>
    -- compare the hashed password with the stored password<br>
    if l_password = l_stored_password then<br>
    -- change password<br>
    update UTILISATEURS set MotDePasse = user_hash(p_username, <br>p_new_password) where idcontacts = l_idcontact;
    return true;<br>
    else<br>
    return false;<br>
    end if;<br>
    else<br>
    return false;<br>
    end if;<br>
    end;<br>

  • How to use the mirrored and log shipped secondary database for update or insert operations

    Hi,
    I am doing a DR Test where I need to test the mirrored and log shipped secondary database but without stopping the mirroring or log shipping procedures. Is there a way to get the data out of mirrored and log shipped database to another database for update
    or insert operations?
    Database snapshot can be used only for mirrored database but updates cannot be done. Also the secondary database of log shipping cannot used for database snapshot. Any ideas of how this can be implemented?
    Thanks,
    Preetha

    Hmm in this case I think you need Merge Replication otherwise it breaks down the purpose of DR...again in that case.. 
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How do I initialize boolean indicators each time I run a program

    I am measuring voltages on protoypes and would like to be able to place a prototype in a fixture and hit "run" and see all my boolean leds go blank then either teh pass or fail light up accordingly as each test runs. This works fine the first time I open and run teh program, however if I hit run again the leds keep there old value until the test runs again instead of going blank first. They all have "off" as their default value, however hitting run does not make them go to thier default value. Is there a way to do this?
    Thanks

    I don't understand how to do this, can you give me an example please? I'm attaching my VI, could you just sow me 1 example .
    Thanks
    Ringo
    Attachments:
    Falcon_Automation_testing2.vi ‏677 KB

  • How shall i do it ? Complex question about how to use the airport express or time capsule ?

    Hello All,
    Right now i have an access point:
    1/ A mercury router (cheap and old)
    2/ Airport Express
    Do you advice me to use it to replace my cheap old router (mercury) or to pair it with this main old router ? (however i tried to without any success)
    3/ Time Capsule
    Can i use it to relay the signal from the Airport Express to extend the range  of the wifi?
    Can i use it to stream music to my B/W M1 speakers directly ? (I will connect by USB the BW M1 to the time capsule) and would like to be able to play music this way. Is this in anyway possible ?
    Many thanks for your reply !

    ok, i might be wrong but here goes:
    you should attach your modem to your time capsule: your time capsule will act as not only your time machine but also your main wireless transmitter.
    you set it up using "Airport Utility" which is inside the "utilites" folder, which is inside your applications folder.
    this connects your mac wirelessly to the internet.
    to stream music to your speakers you then set up the airport plug to (a) join the existing network (which you set up on the time capsule) and then (b) set it up to stream music to your speakers. again, this is done using "airport utility". do it AFTER you have set up the time capsule.
    you will then be able to use itunes to stream music to your speakers. from itunes on your computer you will be able to chose from the bottom right hand side of the window whether you play the music on your computer or wirelessly into your B+W speakers...
    some notes:
    1. you won't be able to connect the airport plug by USB to your speakers as the airport plug doesn't have a USB output. It has only analogue and optical.
    2. although your time capsule has USB you cannot stream music into it or through it. there's some basic guidance here:
    http://www.apple.com/wifi/
    3. you may find that the sound quality [if you are playing apple lossless files or wav files) isn't as good as if the speakers were connected directly to your mac via USB.  this should be especially noticable because your speakers are so good!
    if the music you play is only mp3 or the stuff purchased from itunes then it shouldn't make too much of a difference.
    4. keep an eye out on the B+W website: there may come a time when you won't even have to use the airport plug, and you will be able to stream music straight to the speakers. i know that B+W have just done that with the new Zepellin speaker that they make.
    hope this helps...

  • How to use removeFromSuperView and dismissModelViewController same time ?

    I have a UIViewController *view1. By using
    [self presentModalViewController:view2 animated:YES];
    I added UIViewController *view2 to view1.
    I have a UITableViewController *table1;
    I added table1 to view2 by using
    [self.view addSubview:navController.view];
    Now I want to return back to the view1. I used removeFromSuperView, dismissModelViewController but I could not go to first view ?
    How should we use them ?
    Thank you.
    Message was edited by: srikanthrongali

    It shouldn't be necessary to use removeFromSuperview unless you wish to display view2 again, before returning to view1. To return to view1, dismissModelViewController must be sent to viewController1. The address of viewController1 will be found in viewController2.parentViewController. Thus, to return to view1 from the table view, it might be easiest to store the address of viewController2 in the table view controller.
    For example, add an instance variable called 'previousViewController' to your custom table view controller @interface. Assuming the table view controller is created by viewController2, pass the address like this:
    // ViewController2.m
    MyTableViewController *tableViewController = [[MyTableViewController alloc] init];
    tableViewController.previousViewController = self; // <-- save my address
    UINavigationController *navController = [[UINavigationController alloc]
    initWithRootViewController:tableViewController];
    Assuming you don't want view2 to appear again, return directly to view1 from the table view like this:
    // MyTableViewController.m
    [self.previousViewController.parentViewController dismissModelViewController];
    If you've navigated to other view controllers from the root table view controller, that controller's address will be found at position zero in the nav controller's stack.
    Btw, instead of adding the nav controller's view directly to view2, I would recommend presenting the nav controller as a modal controller from viewController2. You can "stack" as many modal view controllers as you want this way. You could then "pop" all the modal view controller's and return to view1 by sending dismissModelViewController to viewController1.
    Hope that helps!
    - Ray

Maybe you are looking for

  • How do i register my Ipod to a different account

    I registered my ipod to my itunes account. I then gave the ipod to my grandson. How do I delete it off my account a register the ipod to his account on a different computer?

  • My phone is not working properly help

    hello people i got my cuz's old phone which is the curve 8900 and it totally lost all signal and i couldnt get it back until i asked a professional about it and i got it back. she said i should update the software but it i cant find a update for it.

  • Example for ALV interactive report

    Do you have any example of interactive ALV report? My requirement is: First I have to display all sales orders on a ALV output. Then if the user clicks on a particular sales order among these, it will go to another ALV output containing the details r

  • ITunes continues to crash, even after following ALL of the suggestions offered here. Now what?

    iTunes opens properly, but will shut down (crash) after approximately one minute, whether it's playing something or not. I have uninstalled and reinstalled (even with the help of Apple tech people to ensure I have done it properly). I have followed a

  • What Features are provided by Software Packs 8.6.1, 2 and 3

    We have a UC560 customer with Software Pack 8.2 installed and they are wondering what, if any advantages there are if they upgrade to Software Pack 8.6.2. I thought there was a good feature Matrix published at one time, but I have been unable to find