Time-Dependent Function

I need to create a triangle wave that will be time-dependent. In other words, if the time is between 00:00 (midnight) and 12:00 (noon) I want my function (temperature) to increase linearly from the minimum at 00:00 to the max at 12:00. Then, from 12:01 to 23:59 I want my function (again temp) to decrease linearly from max at 12:00 to min at 00:00.
Ideally, whenever I initiate the program LV would know what time it is and determine the target value for temperature.
IS THIS POSSIBLE IN LABVIEW???
Is there any way to convert those ridiculous seconds into meaningful time???

Most of the things you can think of is possible in G, just as in other languages.
Check out the attached example on how to solve your problem, run it and it will give you an output based on the time you ran it and the output specified in the lookup table.
(It's difficult to see sometimes but the use of seconds is there to *make* things meaningful;-)
MTO
Attachments:
TimeBasedOutput.vi ‏53 KB

Similar Messages

  • Time dependent communication data.

    Hi,
    I would like to create a time dependent communication data in the standard Business Partner transaction ( Tcode - BP ).
    Scenario : A customer might call in to inform that for the coming 2 months he'll be away and wants all the communications be sent to a differnet address for this two months.
    Standard SAP documentation says that the the Business Address Service which currently handles the address managemnt does not support time dependent data.
    http://help.sap.com/saphelp_470/helpdata/en/12/ad797a5c5811d3b4ea006094192fe3/frameset.htm
    Any workarounds to this problem? Anyone who has ever faced such a requirement? Appreciate any ideas on this.
    Thanks, Debasish

    Hi Debasish,
    Workarounds, 2 spring to mind both with pros and cons:
    1. Maintain the customer in another client (an exact copy of the customer), and then use ALE to time the change. This would allow you to store up to 1 time dependent change in the future.  So, when you knew a change was coming you could change the customer in the other client, and then schedule the ALE job to process the idoc on the date that the change was due to take place.  The pro of this work around is there is no development to do, the cons are that it means keeping your customer data in another client, and that you can only store one change into the future and its not so user friendly.
    2. Build your own time dependent function for communication data.  Build a dynpro which called the standard address handling screens and then store the data in the standard address tables linked to your own custom tables for date/time of change etc.  Then schedule a batch job every day (or hour, or as required) to look through your scheduled changes and then call a bapi or idoc or function to update the customer with the stored addresses.  This should be great from the user friendliness point of view and will allow any number of future changes of address for each customer, but will require some development effort (although not a huge amount as you will be using standard functions a lot).
    Hope that helps.
    Brad

  • Time dependent extraction from ODS to masterdata datatarget type

    Hi Guys,
    I have a model with a ODS that replicate to a infobject defined as dataprovider.
    From the ODS I am sending the date_from and date_to; as 0calday, the values taked for the masterdata are 0calday for datefrom and dateto.
    In the master data there are 2 navegationals characteristics and these are time dependent.
    When I do a selection in a infocube, the values for this navegational time dependent filled with a ODS to the master data is the current value, always.
    I have somes ideas of the situation as:
    1.- The replicate from ODS to masterdata infoprovider type deactivate the time dependent functionality.
    2.- The navegational attribute in infocube hasn`t a referential key date. In teh selection I am putting the 0date.. from-to.  The values is the current value not time dependent value.
    Any comment is very important.
    Regards,
    Jeysi

    The ODS treatment for time dependent and master data datatarget is different to treatment to the direct master data.
    Basically, the automatic control is lost when the master data is filled from other datatarget.

  • Functional Location Field In AS02 (Time dependent)

    Hi All,
    I need to know if it is possible to add or show functional location in time-dependent tab(tcode AS02), because i found TPLNR(functional location) in table ANLZ. Fyi, ANLZ is the source table of time-dependent tab in tcode AS02.
    Really appreciate your help
    Thanks

    Dear:
              First see  layout assigned to your class through OAOA and then go to the path SPRO....Financial Accounting...Asset Accounting...Master Data....Screen Layouts...Define screen layout for master data...select layout...logical field group...select time dependent data...field group rules.. There you will find 89 (functional area)... Make its status optional or mandatory whatever you require.
    This will show the field in AS01 for data input.
    Regards

  • Is there existing open Java APIs for time dependent ShortestPath function or routing on NDM Model?

    According to slides here (Page #44-46), there should be some API for that purpose.
    But when I focus on that sample and the open API provided here , I cannot find such function that realize it.
    Could someone briefly describe the time dependent SP APIs for that purpose?
    Thank you.

    According to slides here (Page #44-46), there should be some API for that purpose.
    But when I focus on that sample and the open API provided here , I cannot find such function that realize it.
    Could someone briefly describe the time dependent SP APIs for that purpose?
    Thank you.

  • Creation of Time Dependent Hierarchy in R/3

    Any ideas on how to create a time dependent Hierarchy in R/3?
    Do we have any existing functionality we can leverage in R/3 for creating and maintaing time dependent hierarchy or through ABAP coding in R/3?
    Any ideas or documentation will be helpful.

    Hi Jasmine,
    check this documents/links to get an idea how to set up hierarchy extractor in R/3
    [How to Create a Hierarchy Extractor for Employees and their Department Managers|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20a709c1-0a8e-2a10-21b4-f779728c63bf]
    Re: Build Hierarchy with ABAP
    How to create datasource for hierarchy
    Double post: Creation of Time Dependent Hierarchy in R/3
    Regards
    Andreas

  • Thought Experiment: Variable Number of Parallel Time Dependent Systems

    Hi all, 
    I'm just going through a thought experiment before beginning a new major project and am trying to figure out the best way this code could work. We have a new project coming up that is going to be based out a single computer, this computer is then going to control a number of identical iterations of measurement devices, at present the number is 20 but this could change depending on mechanical failure etc during trials. All of these devices need to be running at the same time and are relatively time dependent, each device has to:
    Record measurement data at 1Hz (0.05s Active Time)
    Respond to inputs and undertake longer tasks (0.5s Active Time). Inputs occur at random intervals greater then ~10s
    As all of these systems must run in parrallel I am looking at the number of different ways LV handles the parallel instances to try and determine a reasonable design pattern before beginning anything. The current ways that I am looking at it are:
    Standard Multiple VI parallelization
    Build a SubVI, place multiple instance in block-diagram, run.
    Pros:
    Simple, Build a Sub-VI that can run the device plop X instances.
    Cons:
    Scalability, Not able to easily change number of instances without re-editing code, rebuilding moving etc.
    State Machine parrallelization
    Build a state machine for the Device, run X instances in a parrallelized For Loop, for all longer tasks run start them and then check progress each time you come back into the state machine.
    Pros:
    Programmatically scalable
    Standard State Machine Architecture.
    Cons:
    Less control over long tasks
    More complex programming and control.
    I am looking forward to what the community has to say, I have a feeling I should probably be looking at OOP for this but I have never done any in LV before and I am a little worried how long the learning curve on that would add to the project without resulting in a much improved outcome.
    Let me know your thoughts on the best way to continue.

    As Mike said, you can launch multiple instances of a reentrant VI similar to launching a single instance of a VI - it's all in how you get your reference / what your reference actually is.
    If you use the Open VI Reference function with a parameter of 0x80 or 0x100 on a preallocated clone reentrant VI, a clone is allocated and the reference is a reference to that clone of the VI (you can check this in testing using a property node and checking the name, which will have the clone number after a colon, and/or Is Clone VI).  At that point, anything that you do with that reference is being done to that clone.
    What I did recently for a similar design was defined my class (or just a cluster if not using OOP) to have all of the information to define a single identity - TCP connection ID, queue refs, etc., and the reference to a clone.  A constructor would be called like a "regular" SubVI to create everything it needed, including allocating a clone for itself to run in, and return a Data Value Reference to the resulting object (cluster).  A launcher could then be used that would take the clone reference and Start Asynchronous Call on it, passing into one of its controls the DVR to the object.  Now the clone is running and has everything that it needs to identify itself and operate, including responding to connections like you might have for displaying detailed information about one process all on its own, and my main application still holds onto the reference to the object so that it can do things like be a common server to give new clients the list of TCP ports that each clone is available at.
    As for some items in the original post:
      An object oriented approach is usually great for managing these kinds of designs.  If you have knowledge of object oriented design and just aren't familiar with LabVIEW's OOP support, then the learning curve should be very shallow, but it is a good idea to start with a small project or a single module first.  You don't want to be in the, "It's supposed to work this way, but I've never actually done it, and that coercian dot on a child being passed into a parent terminal is making me nervous..." boat for a critical project, even when it does work how you think its supposed to.
      I believe that the Actor Framework (which requires LabVIEW OOP to work with) is made for this type of stuff.
      I must say, I hadn't ever considered or seen using a parallel-enabled for loop with a SubVI in it to do this kind of thing, and I thought it was a cool idea.

  • Hierarchy with time-dependent structure

    Hello, collegues,
    Im attempting to build a report on payrolll data using DS 0HR_PY_1_CE.
    There is a time-dependent structure hierarchy which changes very often (new departments are created\dispatched) on 0ORGUNIT.
    The data granularity in infoprovider is Calmonth.
    To build a report we need to use a derivation either for the beginning or for the end of month.
    In case of a new department creation with derivation set for the last day of month  - new department will show up in the report asigned to the right place on organizational strucure tree.
    If a department being disbanded during the month (since the derivation is set for the end) - the amount will go into not assigned hiearachy nodes which is unaccetable for the business.
    The same thing happens vice versa.
    Any ideas will be highly appreciated.

    hi,
    we have faced the same problem with closed-org units some orgunits get closed over a period of time and they will be in the un assigned nodes in bw.
    its the structure thats maintained in the source and we only get them from the source as it is and we are only loading to bi based on the standrad extractor and its does not pick closed org units.
    my idea would be we need to build a custom extractor based function module which would read the hirarchies based on version and and based on time and keep them in the relevant nodes according to the bussineeds and we can load it to org unit and build hirearchy node variables on them in the report.
    hope this helps.
    Thanks
    krishna.y

  • Color Map not showing time-dependent change

    I am using the latest Sound and Vibration Measurement Suite in Signal Express.  I have a Spectral Map step in my program, which includes a Color Map.  I am recording an accelerometer's transient response to an impact, and want to see the time-dependent frequency intensity changes as a function of time, so a color map should be perfect.  I have no problem recording the accelerometer's transient response in a time graph, and I also see the power spectrum in another graph.  While the color map indeed shows various frequencies at different intensity levels, I don't see the intensity of any of the frequencies change over the course of the 200 ms that I'm recording, while the time graph clearly shows the decaying waveform.  Why doesn't the color map show a decrease in intensity of the respective frequencies as time progresses through the transient?  I have everything set up to display and record the first 200 ms of the impact.  At the end of this period, the intensity should go to almost zero.
    Please see the attached .seproj file to review the parameters I have set.
    Also, with the same .seproj file, I will occassionally get a Buffer Overflow error.  From this file, can you tell me what setting I need to change.  But I need to make sure that all data both displayed and recorded, is for the 200 ms timeframe specified (10 ms before the trigger and 190 ms after).  The ADC I'm using is an NI 9234 in a cDAQ-9172 chassis.
    Thanks,
    --Tim
    Attachments:
    golfclub_200ms_test.seproj ‏258 KB
    Log files.zip ‏200 KB

    Tim,
    I am trying to figure out where this would be able to recognize the changes since the data would be taken from an analysis of one .2 second signal. Have you tried to analyze more than the one signal taken in? When I ran this project I got the display on the bottom right to show one signal as having been read which makes sense when looking at the data. If you wanted to see the changes over the 200 ms timeframe I would have it run continuous DAQmx acquires for that timeframe. It appears the analysis that we see stays static because it is doing analysis of only one data set that came in. I would think that the change in time that you want to see would have to have analysis done on multiple sample sets to notice the differences from one set to the next. 
    Frank,
    National Instruments
    Staff Software Project Engineer

  • Determine key date at runtime for time-dependant hierarchies

    Hello all,
    I have to develop a query based on time-dependant  and version-dependant hierarchy.
    I have selection variables for -
    Fiscal year
    posting period
    version
    and hierarchy .
    I want to achieve this -
    First I want to enter Fiscal Period and posting period and version as user input.
    Once this input is done I want to determine the key date based on fiscal year and posting period.
    Once the key date is determined i want the hierarchy variable dropdown to show only correct hierarchy in that time for selection.
    Is it possible? Please suggest the ways.
    Many thanks and best regards,
    Surekha

    I have written following code for determining key date based on fisc year and posting period.
    It may be useful for someone
    WHEN  'key date variable'.
        REFRESH e_t_range.
        CLEAR l_s_range.
        IF i_step = 2.
          READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'fisc year variable'.
          l_date(4) = loc_var_range-low.
          CLEAR loc_var_range.
          READ TABLE i_t_var_range INTO loc_var_range WITH KEY vnam = 'posting period variable'.
          IF loc_var_range-low >= 12.
            l_date+4(4) = '1201'.
          ELSE.
            l_date+6(2) ='01'.
            l_date4(2) = loc_var_range-low1(2).
          ENDIF.
    *get the last day of the posting period month
         CALL FUNCTION 'SLS_MISC_GET_LAST_DAY_OF_MONTH'
            EXPORTING
              day_in            = l_date
            IMPORTING
              last_day_of_month = l_date
            EXCEPTIONS
              day_in_not_valid  = 1
              OTHERS            = 2.
          l_s_range-low = l_date.
          l_s_range-sign = 'I'.
          l_s_range-opt  = 'EQ'.
          APPEND l_s_range TO e_t_range.
        ENDIF.

  • Best practise around handling time dependency for flat file loads

    Hi folks,
    This is a fairly common situation - handling time dependency for flat file loads. Please can anyone share their experience around handling this. One common approach is to handle the time validity changes within the flat file where it is easily changeable by the user but then again is prone to input errors by the user. Another would be to handle this via a DSO. Possibly, also have this data entered directly in BI using IP planning layouts. There is a IP planning function that allows for loading flat file data but then again, it only works without the time dependency factor.
    It would be great to hear thoughts or if anyone can point to a best practise document for such a scenario.
    Thanks.

    Bump!

  • Time dependent hierarchy creation in R/3.

    I know  you can do it in BW. Any ideas on how to do it R/3? Do we  have any existing functionality we can leverage in R/3 for creating and maintaing time dependent hierarchy.
    Any ideas or documentation will be helpful?

    Hi,
    check this threads:
    Custom Datasource for custom Hierarchies
    How to create Hierarchy data sources in R/3
    How to create a hierarchy datasource in R/3
    Double post: Creation of Time Dependent Hierarchy in R/3
    Regards
    Andreas

  • Restriction of Time-dependent data (Cost Center) according to a specific role

    Dear experts,
    Has some one of you implemented a functionality to restrict Time-dependent data (for example, Cost Center) edition, according to a specific role assigned to an End user?
    I imagine it is possible, but we should develop an User-exit in order to get this goal.
    Let your comments here if possible, so that I can argue with my End user. I will try to give you points if you help me with this query.
    Thanks & Kind Regards,
    Daniel.

    Hello All!
    We have talked to Authorizations specialist and he indicated a customizing transaction in FI-AA module called ANSICHT (IMG -> Financial Accounting -> Asset Accounting -> Preparing for Production Startup -> Authorization Management -> Process Asset Views). In this customizing, it is possible to edit an existing asset view and turn on/off fields according to the company needs.
    Afterwards, you should request some adjustment in the roles that contain the A_A_VIEW authorization object.
    I am considering this question as "assumed answered'.
    Regards,
    Daniel

  • Enhance the Time Dependent Tab of the Asset Master AS01

    Hi,
    My requirement is to enhance the Asset Master Client dependent Tab transaction AS01.
    I have added a field in the ANLZ through some Append Structure.
    And added that field in the Custom Screen.
    After doing the functional config that field is visible.
    In the Time dependent tab, when we press MORE INTERVEL PUSH BUTTON A new screen appear with certain fields which already present in the Time dependent tab.
    Now my question is: How I can insert the new enhanced field in that and how we can save the data in ANLZ table.
    We are using ECC 5.0 version, requirement is to add some fields similler to ECC 6.0 version in time dependent tab of AS01 transaction.
    Thanks in Advance,
    Hari
    Edited by: Hari prasad REDDY 123 on Dec 17, 2009 2:52 PM

    Hi hari,
    Was this problem solved ? Wuld be great if you could le me know the solution .
    Thanks!!

  • Time dependent employee  hierarchy

    HELLO GUYS
    I Need HELP ON CREATING 0EMPLOYEE time dependent Hierarchy in bw using r/3 data. i am trying to bring r/3 hr organization chart which has employee hierarchy into bw. i am wondering if anyone did this using functional module or extractor
    please LET ME KNOW  the process .i am not able to get this using  ABAP  and i need help on this.

    Following document might be helpful.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20a709c1-0a8e-2a10-21b4-f779728c63bf?quicklink=index&overridelayout=true

Maybe you are looking for

  • Photoshop CC 2014 - my workspace keeps going black

    - When working in Photoshop CC 2014 - my workspace keeps going black while i'm trying to work on an image. For example, this morning I was simply trying to add some text to an image using layers but while typing the text in the workspace (the actual

  • Increase in Direct Debit query

    Hi there I've tried phoning and I've tried 'live chat' but nobody is answering so am going to give the forum a try! I have a telephone line which is set up only so I can use Broadband (provider is TalkTalk).  I NEVER make calls on that line. My last

  • Query date calculations

    hello everybody I am trying to calculate po cylce time so need to subtract sc cart approval date - po generate date. The sc cart approval date is not there but i have sc cart creat date as a charachterstic. I also have first approval day and last app

  • GG Replicaation Issues

    Hi All, In GG I have source side 10 columns and target 3 columns when i try to update source side EXCEPT theses 3 columns like other columns target side no changes but timestamp will get change i don't want this changes on target side. I need when th

  • Can't use my Trackpoint (Thinkpad SL300) to scroll in FF4 RC

    Hi all, today I updated to FF 4 RC 4. I'm not able to use my Trackpoint of my Lenovo Thinkpad SL300 to scroll the sites. That's very annoying! Anybody got a idea? EDIT: THe Trackpoint is working perfect with the rest of my programs and was working wi