Example project for temporal reasoning

After posting our draft Architectural Standards and Guidelines, we got a lot of good feedback and were pointed at documents to aid us that we were unaware existed. We are incorporating those internally.
In the same spirit, we just posted a temporal reasoning demo project. It can be found in the exchange. http://ruleexchange.squarespace.com/ It is under the folder "Sample Architecture Documentation" in the zip file "TemporalExampleOPA10.3.zip"
Temporal reasoning is one of the key benefits our agency wants from OPA. However, we find that potential rule modelers have a mental block on using temporal reasoning. We are not sure why. As architects, we love it. One of our first example projects a year ago tried to show how we might use temporal reasoning to solve the following challenges:
•     How might we change rules over time?
•     How might we change data over time? (a.k.a. change in circumstance)
•     How might we go backwards in time to see the historical impact of rules?
•     How might we go forwards in time to see if a rule still works in 5 years? (Yes, a rule that works today might break 5 years from now if it includes temporal reasoning. Ouch.)
•     How might we correct rules that make it all the way to production but should not have?
•     How can we take incorrect rate rules into account while moving forward and correcting rates? We want to easily rectify the negative impacts of an incorrect rate rule should one occur in the easiest way possible.
I uploaded the temporal reasoning example project from our library of projects. It provides possible answers to the questions in both Excel and Word.
Since there is more than one way to solve the problems above, feel free to call out why other methods may work better than the methods shown in the example.
Don't let all the commentary in the rules documents turn you off. There are only a few rules, but a lot of commentary on the rules. This project was in TFS. Hopefully, I successfully removed all the TFS version control junk prior to uploading.

Ire,
The 6009 has an event counter which is not capable of doing PWM via pulse train generation. The DIO lines are also not capable. You can do this using the two counters on the E series device but in order to change the output pulse train generation you will need to stop the counter, change the pulse spec and then re-start the task again. I have done a simple example in which I use two counters for control of the lamp power and a disturbance.
The missin VI's are purely for schedulling tasks. Just look at the while loop and how I programmatically built the tasks.
Hope this helps.
Kind Regards
Steven Bird
Applications Engineer
National Instruments
Attachments:
PWMControl.vi ‏207 KB

Similar Messages

  • Where can I download example projects for Kinect for Windows v2?

    so for a project I am working on regarding the Kinect v2 I had initially planned on using Matlab to code for the Kinect. However, the code on the Mathworks website regarding the Kinect seems to only work with the Kinect v1 and I cannot figure out how to
    get the v2 to work with Matlab. Now I am in the predicament that I need to use Visual Studio and have never done so before. To make matters worse, all of the guides I can find about programming for the Kinect assume you are very familiar with Visual Studio
    so I get lost before I can even get through the setup (I have no idea what kind of project is best for Kinect, though I intend to use C# as my programming language, or where these settings they are changing are located). If I could just find an example project
    file to download I feel like it would help me a lot, but I cannot seem to find one.
    So my question is thus, is there a place where we can download project files for Visual Studio? I really just need to see what one looks like and what kind of settings it runs on so I know where to get started. It would be awesome if the project file involved
    overlaying the skeletal model on top of people in real time as well.
    If this is not possible, even a video that explains in depth how to go about using visual studio and the Kinect at the same time would be greatly appreciate, or a workaround to get Matlab to work with the Kinect v2.

    Hi Jicnon,
    When you download and install the Kinect SDK, it comes with the Kinect SDK Browser application. This applicaiton is a web based application that contains a bunch of sample projects for getting started with Kinect for windows programming.
    There is also the jumpstart videos here:
    https://social.msdn.microsoft.com/Forums/en-US/8428671a-781c-4850-a56d-905ab28f8f8f/mva-jump-start-programming-kinect-for-windows-v2-videos?forum=kinectv2sdk
    To get to the SDK Browswer app just hit the windows button type in "Kinect SDK" and this application should appear.
    There are also some samples in Kinect Common Bridge and a dicussion on using Matlab here:
    https://social.msdn.microsoft.com/Forums/en-US/2aa59712-c2ab-48e2-98bd-5eed9a40ec44/matlab-link?forum=kinectv2sdk
    Sr. Enterprise Architect | Trainer | Consultant | MCT | MCSD | MCPD | SharePoint TS | MS Virtual TS |Windows 8 App Store Developer | Linux Gentoo Geek | Raspberry Pi Owner | Micro .Net Developer | Kinect For Windows Device Developer |blog: http://dgoins.wordpress.com

  • I just find out many images missing from my most important project for no reason and don´t know what to do!

    I was checking my SDHC cards to see which ones had already been downloaded to my computer and sudenly after I inserted one of the cards an anouncement poped out telling me Aperture had trouble importing many files... since this card had already been downloaded in one of my projects and had been working on some of the pictures I did not mind and took the card out and formated it in my camera (as I said before all the pictures had been downloaded before!) and I went to work on Apperture. When I opened the project I was going to work in I found lots of pictures missing!
    I don´t know how to recover this pictures or if it can be done!
    This is my most important project to date!
    I will greatly appreciate any help.
    Alberto Ayala

    Hello Léonie,
    I will try to be more specific:
    I inserted my memory card and opened Aperture. I Pressed import and chose an existing project as a destination after choosing only the pictures I wanted to keep for imediate use (done this same precedure before). The importing procedure started and everything was "normal" but the "procesing" indicator (the spinning circle in the low left corner) never stoped (even the day after) so I quit Aperture,turned of my computer and took out the memory card.
    Later I restarted my computer, oppened Aperture and saw all the pictures I wanted there, I even made versions and worked on some of them and everything was fine so far... The big problem came when I was cheking my memory cards -days later- to erase some of them for reuse and to make a back up copy of the full card in a diferent folder on the desktop of my computer (as I told before In Aperture only downloaded some pictures) and inserted the card that presented the continus "procesing" inconvinience: Somehow it created a link to Aperture and a notification poped telling me that some files where unable to download...
    Since I had already seen and worked with the files in Aperture I thought the message was a mistake (the files had been imported ok before!) so I took out the card and reformated it in my camera (BIG MISTAKE!) and for my surprise when I wanted to work with this files and their versions and opened Aperture all of them were gone as If they had never been imported!
    I opened the back up folder on my desktop just to find none of the files was saved there even though the downloading had run fine...
    I tried to restore my Aperture library from Time Machine this morning but I think I made another BIG MISTAKE when answered to replace my library instead of keeping both... I found some files replaced, none of the diferent versions I had done, some files missing, some foulty tumbnails and God knows what else...
    I´m very frustrated and disapointed and don´t know if there is anything I can still do to recover my files...
    I don´t know if I should blame Apple´s Aperture or the card´s manufacturer for the origin of this problem but how can I trust my work to this combination of factors?
    Thanks for your concern Léonie and have a good new year!

  • Titan UDP example project

    Hello,
    i performed a example project for Titan ( so far command line based) using the titan.TestPorts.UDPasp . You will find the user guide to this test port inside the directory on github. --> https://projects.eclipse.org/projects/tools.titan/developer
    I worked one Xubuntu 14.04 System with the Titan version 5.30. To see if UDP-packets are sent, i use wireshark. For sending packages from outsite, i use packcat. Both tools are available in the package manager of Xubuntu.
    What is my example doing:
    * There are three test cases. ( see myUDPadv2.ttcn)
    1. DeviceOpenSocket () --> open a socket to perform UDP messages and check if the valid reponse obtain
    2. DeviceSendMessage() --> send a UDP with data "FF96", ( you can verify with wireshark)
    3. DeviceReceiveMessage() --> check if a expected message will receive during 20 sec. ( you have to send the expected message with packcat)
    * The example is using the advanced mode of UDPasp.
    * Only the client side is performed out of titan environment so far. Server side will maybe further work.
    To Run :
    * go to directory and open a terminal
    * execute by comannd: ./myUDPadv RTEConfigurationFile.cfg
    * myUDPadv is waiting for an incoming UDP package, therefor send one by command: netcat -vu 127.0.0.1 50050 -p 56790

    In the next step I try to perform server side also into ttcn. Therefore I have to use the parallel mode of titan. For first steps I want to do this on system. The server behavior is not implemented yet.
    I start the Main Controller with:
    ./mctr_cli ../titan_projects/myUDPadv3/RTEConfigurationFile.cfg
    cmct
    the following output will occur:
    * TTCN-3 Test Executor - Main Controller 2 *
    * Version: CRL 113 200/5 R3A *
    * Copyright (c) 2000-2014 Ericsson Telecom AB *
    * All rights reserved. This program and the accompanying materials *
    * are made available under the terms of the Eclipse Public License v1.0 *
    * which accompanies this distribution, and is available at *
    * http://www.eclipse.org/legal/epl-v10.html *
    Using configuration file: ../titan_projects/myUDPadv3/RTEConfigurationFile.cfg
    MC@jbruder-VirtualBox: Unix server socket created successfully.
    MC@jbruder-VirtualBox: Listening on IP address 127.0.0.1 and TCP port 46308.
    MC2> cmtc
    Waiting for HC to connect...
    Then I start the Host Controller by
    ./myUDPadv RTEConfigurationFile.cfg -s 127.0.0.1 46308
    and this error occur :
    TTCN-3 Host Controller (parallel mode), version CRL 113 200/5 R3A
    Could not get the IP address of MC (RTEConfigurationFile.cfg): Host name lookup failure.
    What can be the problem ? It would be very nice if someone can help me....
    Attached the modified main-ttcn file :
    // This is simple TTCN-3 example using the titan.TestPorts.UDPasp
    // 1.June 2015 by Johannes Bruder
    module myUDPadv
    import from UDPasp_Types all;
    import from UDPasp_PortType all;
    template ASP_UDP_message myMessage := {
    data := 'FF96'O ,
    remote_addr := "localhost",
    remote_port := 56790,
    id := 0
    template ASP_UDP_message ServerMessage := {
    data := ? ,
    remote_addr := "127.0.0.1",
    remote_port := 56790,
    id := ?
    template ASP_UDP_open myOpenRequest := {
    remote_addr := "127.0.0.1",
    remote_port := 56790,
    local_addr := "127.0.0.1",
    local_port := 50050
    template ASP_UDP_open_result myOpenRequestResponse := {
    local_addr := "127.0.0.1",
    local_port := 50050,
    id := 0
    type component UDPDeviceTesterInterface
    port UDPasp_PT DevUDPPort;
    port UDPasp_PT ServUDPPort;
    type component MTC { }
    type component UDPEntity{
    port UDPasp_PT pt;
    function f_client()
    runs on UDPEntity{
    map(self:pt, system:DevUDPPort);
    pt.send( myOpenRequest);
    alt {
    // Handle the case when the expected answer comes in
    [] pt.receive( myOpenRequestResponse) {
    setverdict(pass);
    // Handle the case when unexpected answers come in
    [] pt.receive {
    setverdict(fail);
    log("Unexpected open-requense response");
    testcase DeviceOpenSocket()
    runs on MTC
    system UDPDeviceTesterInterface
    timer t_guard;
    var UDPEntity v_client;
    //var UDPEntity v_server;
    var boolean v_alive;
    // create all parallel test components as alive components
    v_client := UDPEntity.create("Client") alive;
    //v_server := UDPEntity.create("Server") alive:
    // start the behaviour on the parallel test components
    v_client.start( f_client( ));
    //v_server.start( f_server);
    // wait until all parallel test components are done, at most 30 seconds
    t_guard.start( 30.0 );
    alt {
    [] all component.done {
    t_guard.stop;
    // use verdicts of parallel test components
    [] any component.killed {
    // if any PTC is killed then free all resources
    t_guard.stop;
    all component.kill;
    // remove all PTCs from test system which are still alive
    setverdict( inconc );
    v_alive := v_client.alive; // returns false
    [] t_guard.timeout {
    // stop all PTCs (but new behavior could be started)
    all component.stop;
    setverdict( fail );
    v_alive := v_client.alive; // returns true
    control
    execute(DeviceOpenSocket());

  • How do I get all of the music on my computer to transfer to my Iphone?  For some reason, itunes has picked up some songs but not others.  example, I have several CD's loaded in which only 1 or 2 songs from the CD shows up in itunes.

    I have about 70 Cd's loaded on my computer as I had previously owned another MP3 device before I got enamored with the Ipad and Iphone. My problem is itunes will not recognize all of this music.  To give a specific example, I have an old Bon Jovi Cd "crossroads" , itunes only recognizes 2 songs off the Cd.  How can I get itunes to recognize these songs?  They do not show up on itunes anywhere but if i go to my music folder I can locate the songs and it even shows the itunes logo but, the songs will not play with itunes.  I've got a few hours of music i would like to have on my iphone. Can anyone please help me with this?

    It has always been very basic to always maintain a backup copy of your computer for this very occasion.
    Use your backup copy to put everything on the computer, then sync.
    If for some reason you have failed to maintain a backup, not good, then you can transfer itunes purchases from your iphone to your computer - File>Devices>Transfer Purchases

  • Example JSF Portlet Project for WebLogic Portal 10.3.2

    Hi,
    does anyone have an example JSF Portlet Project for WebLogic 10.3.2 using the default JSF implementation 1.2.
    I tried to implement the example of the document "Developing JSF Portlets with WebLogic" but I always get a ClassCastException.
    java.lang.ClassCastException: com.bea.portlet.container.RenderRequestImpl
    Thx in advance
    Edmund

    My approach was to programmatically redirect to the page again with _nfpb=false. I do this in the handlePostbackData() method in the portlet's backing file.
    redirectUrl = redirectUrl.replaceAll("_nfpb=true", "_nfpb=false");          
    PortletBackingContext.getPortletBackingContext(request).sendRedirect(redirectUrl);
    Matthias Rohe
    [email protected]
    Edited by: user7964913 on 29.09.2010 04:06

  • Where can I find an example project plan for migrating previous Solaris Serviers to 8.2, and to include migration to LDAP

    I am migrating 800 Unix servers from a variety of OS versions to Solaris 8.2, using the time to sort out my NIS nightmare in prep. for moving to LDAP
    Are there any example project plans that I can use as a starter?

    I am migrating 800 Unix servers from a variety of OS versions to Solaris 8.2, using the time to sort out my NIS nightmare in prep. for moving to LDAP
    Are there any example project plans that I can use as a starter?

  • I can't download Lightroom for some reason.  I keep getting this error:  Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR: DW006 ...  -------------------------------------- Summary ------------------------------------

    I can't download Lightroom for some reason.  I keep getting this error:
    Exit Code: 7
    Please see specific errors below for troubleshooting. For example, ERROR: DW006 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 2 error(s)
    ----------- Payload: Adobe Photoshop Lightroom 5 5.4.0.0 Adobe Photoshop Lightroom 5.pkg_5.4 -----------
    ERROR: DW006: Apple Package failed to install successfully.
    ERROR: Third party payload installer Adobe Photoshop Lightroom 5.pkg failed with exit code: 1

    Link for Download & Install & Setup & Activation problems may help
    -Chat http://www.adobe.com/support/download-install/supportinfo/

  • I cant get a photo project to email the moblile me address to someone else.  I know how, but it has stopped working for some reason.  Instead of pulling up the web address on the email form, it puts an error message?  Any ideas?

    I cant get a photo project to email the moblile me address to someone else.  I know how, but it has stopped working for some reason.  Instead of pulling up the web address on the email form, it puts an error message?  Any ideas?

    Michael,
    The link for the word 'HERE' directs to a Evergreen School District page, which outside of Mobile Me and/or Aperture. Your school district network might be intercepting the request from Aperture and displaying the 'network authentication page' that you see, instead of the email. I would get with the IT department to see if they can help you get around this.
    Have you also tried using the 'Tell a Friend' feature from another network location, like starbucks or your home?
    Cheers,
    Owen.

  • Imove shuts down for no reason while i'm working on my project. why could this be happening?

    Imove states my project is out of date, and also shuts down for no reason while i'm working on my project why is this and what can i do to fix this please help!! working on a gift for my cousins wedding.

    ok Rebis i think this appears to fix your problem , not sure though.. they say just to reinstall mac os X , back up your stuff and format the drive, reinstall the os. In my case , it just reboots by itself , no grey screen , nothing, keeps rebooting and rebooting sometimes. Ran apple hardware test, sry dont remember error # , but it said video controller error.
    I hope Taylor posts again to see if his got fixed, cause it seems his problem and mine are really alike if not the same.
    Message was edited by: Tonyrvv
    spelling errors lol

  • NWDS project got corrupted for no reason???? Please help

    Hi all,
    One minute ago, the project is just fine.
    but i dont know for what reason and what i have done wrong, the task list report all of my "wdContext can not be resolved", anything do with the IPrivateXXXXView (View name) "can not be resolved"
    why did this happen?
    how do i fix this?
    thank you!
    please help me! that's my days' work, i dont want to do it again. and this is not the first time this thing happend to me.

    Hope you didn't changed anything on the package name or the imports.
    Go the iView where it is showing the error and try to reimport the package and try to rebuild it again.
    Take a back up of your application,  try deleting the  gen_wdp folder,  .ear file of the application and the .metamodel file from your project.  Try to rebuild the application.
    Should work !!!!
    Make sure that you take a backup of your application before you delete.
    ~ Kumar

  • I am getting this error when i am doing CSOM on project server..For security reasons DTD is prohibited in this XML document.

    before two day my csom code was working fine..but from last two days when i tried to execute my code i am getting this error..
    For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.

    Found in negative cache.... very strange.
    RFC found in negative cache
    What is the negative cache?

  • Using warning events in combination with temporal reasoning

    OPA settings and environment settings
    OPA version
    10.3.0.77
    OPA Project properties
    Rule language: Dutch
    Region: Netherlands (Dutch)
    We are using temporal reasoning to make decisions. Example: 'Decision X' is initially 'uncertain', from 01-01-2012 'true' and from 31-12-2012 'uncertain'.
    Now we want to use an warning event in case Decision X is uncertain between a certain relevant period, for example between 01-01-2012 and 31-03-2012.
    something like
    warning("decision could not be made") if
    decision is uncertain between 01-01-2012 and 31-03-2012
    Is this possible?
    In case it isn't possible, is there another solution for this problem?
    Thanks in advance.

    For the purpose of this explanation, 'Decision X' is 'the person is happy'. Here's an idea to try...
    Create a regular rule which checks whether 'the person is happy' is uncertain at any point in the specified interval:
    the warning message should be triggered if
    IntervalSometimes(2012-01-01, 2012-03-31, it is uncertain whether or not the person is happy)
    Then create a Warning event rule, e.g.
    Warning("Decision could not be made.") if
    the warning message should be triggered
    You could combine these two rules into one rule, but it will be easier to test if you add an intermediate attribute, e.g. something like 'the warning message should be triggered' I used above.
    For more information about the IntervalSometimes function, search on "IntervalSometimes" in the OPM Help.
    Cheers,
    Jasmine

  • Why is my Apple ID being locked out every time I go to use it?  I haven't even attempted to log in for about 4 or 5 days, but today on my first attempt to do so, it said my account had been locked for security reasons.  This is the third time.

    I only sign in to iTunes' store about once a week or so.  But during each of my last 3 attempts (on different days, several days apart) on my first attempt to enter my password and hit submit, I am immediately told that my Apple account has been locked for security reasons and it wants to take me to a page to reset my 'forgotten' password.  I am using the CORRECT password.
    Perhaps someone else is trying to break into my account or is mis-entering theirs but my account should not be getting locked like this.  It is very frustrating to have to go through the reset password procedure each and every time I want to go into the store.  It seems to me that Apple really doesn't want me to buy any more apps from them as they keep refusing me entry into my own account, each and every time I have tried to use it, for the past few weeks.  I am not their best customer, but they aren't giving me much of a welcome invitation to become one, if I'm going to be treated like this.
    I just bought my iPhone 4 less than 2 months ago.  I paid extra money to upgrade early, just to get this phone because it was so highly recommended by everyone I spoke with in different stores (BestBuy and Verizon).  I even bought the 2 year upgrade to my Apple services in case I needed to ever call them, and so far I haven't had to, yet.  But I definitely will call them if this isn't straightened out.
    It looks like this other user could be tracked and an email could be sent to them from Apple to let them know what they are doing - trying to sign into the wrong account, and are locking somebody else out of their own account because of their error....and to remind them of their correct information or how to get it and to write it down or save it somewhere so they don't keep on doing this.
    I have seen literally DOZENS of other people in these discussions with exactly the same issue that I'm having so it is NOT an isolated incident, and it seems to be a growing problem as Apple's sales and user base continues to grow, so this problem is seriously needing to be addressed in some way, and soon, before they start losing new customers because of it.  If I was still within my original 14 day return period with this phone, I would definitely be returning it and buying an Android model because of how frustrating this is to me.  If my bank was doing this to me, I'd have already switched banks by now if they hadn't fixed it - just to give an example of how I feel about this.

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • "This Apple ID has been disabled for security reasons" Every few weeks

    I have had an iTunes account for years with no issue. Lately, I have been receiving the dreaded "This Apple ID has been disabled for security reasons" message every few weeks on my iPad 2(currenly, my only iOS device). I go through the process of reauthorizing my password and info and it works again for a while, then happens again some time later. It's getting annoying. I'm not sure what's changed. Only two computers are authorized to use my account and I am the only one who can log into either of them. No one knows my info and I live alone.
    The only thing I can think is that it's a bot spamming my e-mail address and passwords in an attempt to hack my account. If that's the case, am I really going to have to go through this every few weeks just to use my iPad? Don't get me started on how stupid it is to have to type in your password to update existing apps. And that's usually when I find out, not when I actually purchase one.
    Is anyone else having this issue? I'm wondering if it's more widespread. Some time ago, a chinese app was mysteriously purchased on my account. Apple refunded the purchase and reset my password. That was about the time that all of this started. The reviews on the app left no doubt that it was happening to numerous people and I have no idea how they would have forced a purchase on so many user accounts.

    Domin Harvey wrote:
    PLEEEEEEEASE, please, please fix this!!
    Everyone should keep a few things in mind:
    This is an occasional problem affecting a vanishingly small percentage of the installed base. Look at the numbers of actual instances in just this thread, look at the gaps in time, etc.
    Many many more ... me for example ... have never seen it at all. That doesn't mean it's not an irritation for those afflicted, but it does mean that it's not something likely to be seen as a critical issue affecting the whole base.
    You aren't talking to Apple here in these user-to-user forums, at all, for any reason. This sort of communication is handled through their established Feedback links. If you can suggest a better way for them to handle things then make your thoughts and feelings known at —        
    http://www.apple.com/feedback/ipad.html

Maybe you are looking for