Variables for Timeline Control

I am building a somewhat sophisticated slide menu. I have input a wait(); command using setInterval in the first frame of my actions panel. My wait() function works perfectly.
I have also set a few variables to start out being false. Once a particular button is clicked, it sets the variable to true and sends the playhead to a particular spot within the movie. Actionscript then performs a command to that says if that variable has been set to "true" gotoAndPlay "this", otherwise gotoAndPlay "this-instead".
The problem I am having is that when I click on one of the buttons, it is somehow setting all the variables to true and sending the playhead to places I don't want it to go.
Here is the code I have placed in my first frame:
button1 == false;
button2 == false;
button3 == false;
button4 == false;
//Make movie wait for ten second interval before resuming play
function wait() {
stop();
var myInterval = setInterval(function () {
play();
clearInterval(myInterval);
}, 10*1000); // stop for 10 seconds
cube2.onRelease = function(){
(button2 == true);
gotoAndPlay("slide1out");
cube3.onRelease = function(){
    (button3 == true);
    gotoAndPlay("slide1out");
cube4.onRelease=function(){
    (button4 == true);
    gotoAndPlay("slide1out");
Then, when a user clicks on a button, i.e. cube2, cube3, or cube4, the playhead should go to "slide1out". When it gets to that frame I have code that tells the playhead where to go from there. That code is as follows:
stop();
if(button2 = true){
    gotoAndPlay("slide2");
if(button3 = true){
    gotoAndPlay("slide3");
if(button4 = true){
    gotoAndPlay("slide4");
else{
    gotoAndPlay("slide2");
For some reason, regardless of which button is actually pressed, (cube2, cube3, or cube4, all of the variables are set to "true" and the playhead goes to whichever frame it wants to at that point.
Any advise?? Thanks in advance.

You appear to have your usage of == vs = backwards.
= is to assign something
    button4 = true;  // assigning a value of true to button4
== is to compare for equality
    if(button4 == true){   OR    if(button4){   // testing for equality
As shown in the OR example, if you are testing a boolean value, you only need to evaluate the variable since the conditional is only interested in the results of the expression inside the parentheses.

Similar Messages

  • Shared Variables for Real-TIme Robot Control

    I'm really stuck in my efforts to use LV real-time in my hardware control application. I have a 6-axis industrial robot arm that I must control programmatically from my PC. To do this I've developed a dynamic link library of functions for various robot control commands that I can call using Code Interface Nodes in LV (using 8.5). This has worked great, that is, until I tried to port parts of the application to a real-time controller. As it turns out, because the robot control dll is linked with and relies so heavily upon several Windows libraries, it is not compatible with use on a RT target, as verified by the the "DLL Checker" application I downloaded from the NI site. When the robot is not actually executing movements, I am constantly reading/writing analog and digital I/O from various sensors, etc.....
    This seemed to suggest that I should simply segregate my robot commands from the I/O activities, using my host PC for the former, and my deterministic RT loop on the target machine for the latter. I set up a Robot Controller Server (RCS) vi running on my host PC that is continuously looking for (in a timed loop) a flag (a boolean) to initiate a robot movement command. Because several parameters are used to specify the robot movement, I created a custom control cluster (which includes the boolean variable) that I then used to make a Network Shared Variable that can be updated by either the RT target or the host PC running the RCS. I chose NOT to use buffering, and FIFO is not available with shared variables based on custom controls.
    Here's sequence of events I'd like to accomplish:
    1) on my host PC I deploy the RCS, which continuously pools a boolean variable in the control cluster that would indicate the robot should move. The shared variable cluster is initialized in the RBS and the timed loop begins.
    2) I deploy the RT vi, which should set the boolean flag in the control cluster, then update the shared variable cluster.
    3) an instance of the control cluster node in the RCS should update, thereby initiating a sequence of events in a case structure. (this happens on some occassions, but very few)
    4) robot movement commands are executed, after which the boolean in the control cluster is set back to its original value.
    5) the RT vi (which is polling in a loop) should see this latest change in the boolean as a loop stop condition and continue with the RT vi execution.
    With the robot controller running in a timed loop, it occassionally "sees" and responds to a change of value in members of the shared variable cluster, but most times it does not. Furthermore, when the robot controller vi tries to trigger that the movement has completed by changing a boolean in the control cluster, the RT vi never sees it and does not respond.
    1) Bad or inappropriate use of network shared variables?
    2) a racing issue?
    3) slow network?
    4) should I buffer the control cluster?
    5) a limitation of a custom control?
    6) too many readers/writers?
    7) should I change some control cluster nodes to relative, rather than absolute?
    8) why can't I "compile" my RT vi into an executable?
    Any help would be greatly appreciated. Unfortunately, I'm writing this from home and cannot attach vi files or pictures, but would be happy to do so at work tomorrow. I'm counting on the collective genius in the universe of LV users and veterans to save my bacon.....
    David

    Hi David,
    I'm curious why you decided to build a CIN instead of developing the code in
    LabVIEW.  Is there some functionality that that LabVIEW couldn't
    provide?  Can you provide some more information about the LabVIEW
    Real-Time target you're using?  What type of IO are you using?
    It is impossible to get LabVIEW Real-Time performance on a desktop PC running
    an OS other than LabVIEW Real-Time.  Even running a timed loop in LabVIEW
    for Windows won't guarantee a jitter free application.  Also, no TCP based
    network communication can be deterministic.  This means Network Shared
    Variables are also not deterministic (they use a TCP for data transport) and I
    advise against using them as a means to send time critical control data between
    a Windows host and a LabVIEW Real-Time application.
    In general, I would architect most LabVIEW-based control applications as
    follows:
    - Write all control logic and IO operations in LabVIEW Real-Time.  The
    LabVIEW Real-Time application would accept set points and/or commands from the
    'host' (desktop PC).  The Real-Time controller should be capable of
    running independently or automatically shutting down safely if communication to
    the PC is lost.
    - Write a front-end user interface in LabVIEW that runs on the desktop
    PC.  Use Shared Variables with the RT-FIFO option enabled to send new set
    points and/or commands to the LabVIEW Real-Time target.
    Shared variable buffering and RT-FIFOs can be a little confusing.  Granted
    not all control applications are the same, but I generally recommend against
    using buffering in control applications and in LabVIEW Real-Time applications
    recommend using the RT-FIFO option.  Here's why:  Imagine you have a
    Real-Time application with two timed loops.  Time-loop 'A' calculates the
    time critical control parameters that get written to hardware output in
    timed-loop 'B'.  Loop 'A' writes the outputs to a RT-FIFO enabled variable
    with a RT-FIFO length of 50.  Loop 'B' reads the outputs from the shared
    variable, but for some reason, if loop 'B' gets behind then the shared variable
    RT-FIFO will now contain several extra elements.  Unless loop 'b' runs
    extra fast to empty the RT-FIFO, loop 'B' will now start outputting values that
    it should have output on previous cycles.  The actual desired behavior is
    that loop 'B' should output the most recent control settings, which means you
    should turn off buffering and set the RT-FIFO length to 1.
    There is also a clear distinction between buffering and the RT-FIFO
    option.  The RT-FIFO option is used to add a non-blocking layer between
    network communication and time-critical code in LabVIEW Real-Time
    applications.  It also provides a safe mechanism to share data between two
    loops running in a Real-Time application without introducing unnecessary
    jitter.  Network buffering is a feature that allows a client to receive
    data change updates from the server even if the client is reading the variable
    slower than the server is writing to it.  In the example I presented above
    you don't need to enable networking because the shared variable is used
    entirely within the Real-Time application.  However, it would be
    appropriate to send control set points from a Windows PC to the Real-Time
    application using network published shared variables with the RT-FIFO option
    enabled.  If it is critical that the Real-Time application executed all
    commands in the sequence they were sent then you could enable an appropriate
    buffer.  If the control application only needs the latest set point
    setting from the Windows host then you can safely disable network buffering
    (but you should still enable the RT-FIFO option with a length of 1 element.)
    Network buffering is especially good if the writer is 'bursty' and the reading
    rate is relatively constant. In the robot application I can imagine buffering
    would be useful if you wanted to send a sequence of timed movements to the
    Real-Time controller using a cluster of timestamp and set point.  In this
    case, you may write the sequence values to the variable very quickly, but the
    Real-Time controller would read the set points out as it proceeded through the movements.
    The following document presents a good overview of shared variable
    options:  http://zone.ni.com/devzone/cda/tut/p/id/4679
    -Nick
    LabVIEW R&D
    ~~

  • What is the best way to create shared variable for multiple PXI(Real-Time) to GUI PC?

    What is the best way to create shared variable for multiple Real time (PXI) to GUI PC? I have 16 Nos of PXI system in network and 1 nos of GUI PC. I want to send command to all the PXI system with using single variable from GUI PC(Like Start Data acquisition, Stop data Acquisition) and I also want data from each PXI system to GUI PC display purpose. Can anybody suggest me best performance system configuration. Where to create variable?(Host PC or at  individual PXI system).

    Dear Ravens,
    I want to control real-time application from host(Command from GUI PC to PXI).Host PC should have access to all 16 sets PXI's variable. During communication failure with PXI, Host will stop data display for particular station.
    Ravens Fan wrote:
    Either.  For the best performance, you need to determine what that means.  Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables?  If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
    You want to located the shared variable library on whatever machine is more critical.  That is probably each PXI machine, but only you know your application.
    Ravens Fan wrote:
    Either.  For the best performance, you need to determine what that means.  Is it more important for each PXI machine to have access to the shared variable, or for the host PC to have access to all 16 sets of variables?  If you have slowdown or issue with the network communication, what kinds of problems would it cause for each machine?
    You want to located the shared variable library on whatever machine is more critical.  That is probably each PXI machine, but only you know your application.

  • Difference between Shared Variable Refnum and Control

    Dabbing my toes in Shared Variables for another project.  Glad to see A LOT more support from NI in terms of Shared Variables (especially now that built executables can be set to automatically deploy shared variable libraries...thats a big help).
    In the Shared Variable block diagram palette (under Data Communication) there are a number of VIs that can be used to progmatically access and consume shared variables.  Awesome.  One thing that I have noticed is there is a difference between a "Shared Variable Control" (from the I/O front panel palette) and the "Shared Variable Refnum In" that you obtain from right-clicking one of the VIs from the Shared Variable palette and selected "Create Control".
    My first thought was that these two were one and the same, but they are not.  Visually they look different:
    Also, the reference input to the VIs in the Shared Variable palette only take the "shared variable refnum" control as input.  The control from the "I/O" palette does not work.
    This wouldn't be much of a problem, but I prefer the look of the Silver Shared Variable Control much more to the control I get from the "Create->Control".  Also, the variable browser in the Shared Variable Control is A LOT nicer than the control refnum gives me.
    Here is the Shared Variable refnum variable browser:
    Here is the much nicer looking browser that pops up from the Shared Variable Control:
    So I guess my questions are:
    Why are there two reference data types that seemingly perform the same function but are incompatible with one another in LabVIEW?
    How can I use the Shared Variable Control with the Shared Variable palette VIs?
    Thanks for your input.

    Hello Nickerbocker,
    You actually want to use the Shared Variable Control in the context of Alarms, I/O Servers and other categories inside the DSC Module. Like you already saw, to use the basic functionality of a Shared Variable, such as programmatically reading / writing to it, you need to use a refnum.
    Regards,
    Daniel REDS
    RF Systems Engineer
    Help us grow.
    If a post solves your question, mark it as The Solution.
    If a post helps, give Kudos to it.

  • Data Binding for Custom Controls?

    Hello,
    I'm a little bit confused of how to use databinding for custom controls.
    I know i can bind a property, as seen here http://help.sap.com/saphelp_uiaddon10/helpdata/en/91/f0f3cd6f4d1014b6dd926db0e91070/content.htm, but how can I map whole arrays?
    My problem is the following:
    I want to create a custom table control in SAPUI5 (as the default one doesn't provide the neccessary options and properties I need), but I can't seem to find an example how to bind "rows".
    There has to be a way to do this properly. All I can think of now, and implemented, is, passing the name of the variable in the model...
    var x = new my.controls.complex.table({data: "/status"});
    var row1 = new my.controls.complex.columnHeaderRow();
    row1.addColumn(new my.controls.complex.column({text: "", rowspan: "2", colspan: "1", content: "FIRST_COL"}));
    x.addColumnsRow(row1);
    x.placeAt("content");
    ...my JSON/model looks like:
    { "status": [ {"FIRST_COL": "a" , ...}, {"FIRST_COL": "b", ... }, ... ], ... }
    (which should translate into /status/0/FIRST_COL, /status/1/FIRST_COL, ... AFAIK)
    ... and then I use this variable name by getting the application-wide model and use the variable passed as key for the model... (please note, this code is just a snippet)
           var sapCore = sap.ui.getCore();
                if (sapCore !== undefined) {
                 var model = sapCore.getModel().getObject();
                 if (model === undefined || model == [] || model == null){ } else {
                  $.each(model, function(idx, item){
                   $.each(oControl.getColumnsRows(), function(idx, item2) {
                    $.each(item2.getColumns(), function(idx, item3){
                     var content = item3.getContent();
                     if (content !== undefined && content != ""){
                      outpLine = outpLine + "<td>" + model[idx][content] + "</td>";
    ...which still leaves me with the problem of to get an event to react to re-render on changes within the data model, as well as when there would be just an control-specific model, or just a sub-node within a model etc.
    So my question is:
    Is there a way/best practice to define data binding in a custom control and have a way to react on it, and how to react on data changes within a custom control?
    Thanks & KR
    Chris

    I create a entirely new control, from sap.ui.core.Control.
    sap.ui.core.Control.extend("my.controls.complex.table",{... });
    I did define a aggregation...
            aggregations : { columnsRows: {type : "my.controls.complex.columnRow", multiple : true, visibility: "public"}     },
    ...yet I'm still unclear how I work with this aggregation and databinding. I know we can use the bindAggreation functionallity, but since the aggregation is a object (my.control.complex.columnRow) I don't know how my JSON model should be able to bind to that aggregation (as well as how would one be able to cascade a aggregation like this down futher? For example if there is an aggregation in the object of my aggregation?), plus it still doesn't solve my problem of how I can react (for example redraw) on model changes.
    Thanks in advance,
    Chris

  • How do I submit to procedure with a variable number of controls in portlet?

    I need to submit to a stored procedure but my portlet has a variable number of controls. How do I do this?
    In the past I have always had an input parameter for each control. In this case the number of controls vary at runtime. Is there a way to submit to a procedure that takes some type of array of controls as an input parameter.
    Don

    Another way to do this is to apply a gradient for the background of your block.
    If you place the blue at 40% and the white at the same percentage, the transition is abrupt and looks like what you need.
    Here is an exemple, where the cyan marker is hidden behind the white one in the gradient.
    Of course, if you use something like that, you must have one object style for each height as the bar will move with the frame.
    emmanuel

  • Variable for variant

    HI
    we are facing some error in creating the process chain.
    when creating a varian for "Start process" an informatio window is opening with message variant &00000000853 in not available.
    we are trying to create a new even then we are facing the same error.
    can any body tell me in which table the variable for the variant is stored.

    hi Reddy ,
    check the Documentation of SHD0.Its nothing but modifications of Screen fields.
    Regards
    Prabhu
    Transaction Variants and Screen Variants
    Transaction variants can simplify transaction runs as they allow you to:
    Preassign values to fields
    Hide and change the 'ready for input' status of fields
    Hide and change table control column attributes
    Hide menu functions
    Hide entire screens
    In particular, hiding fields in connection with screen compression, and hiding screens, can result in greater clarity and simplicity.
    Transaction variants are made up of a sequence of screen variants. The field values and field attributes for the individual screens found in transaction variants are stored in screen variants. Each of these variants is assigned to a specific transaction, can, however, also contain values for screens in other transactions if this is required by transaction flow. The transaction that the variant is assigned to serves as initial transaction when the variant is called.
    There are both client-specific and cross-client transaction variants. All screen variants are cross-client, but may be assigned to a client-specific transaction variant.
    A namespace exists for cross-client transaction variants and screen variants and both are automatically attached to the Transport Organizer. Client-specific transaction variants must be transported manually.
    In principle, transaction and screen variants can be created for all dialog and reporting transactions. There are, however, certain Restrictions that apply to certain transactions, depending on their internal structure.
    No transaction variants are possible with transactions already containing preset parameters (parameter transactions and variant transactions).
    Regards
    Prabhu
    PS : Customer is First Points next

  • Runtime variable for environment

    Is there a runtime variable that I can utilize within workflows that will tell me if I'm in the Production, staging, CTE environment etc...
    I would love to be able to control how workflows work based on if they are in the production or staging.
    -GT

    There is no runtime variable for environment at this time.

  • Variables for all .fm files on the .book

    Is it possible to create a variable for displaying a date over all .fm files contained on a .book?
    My .book structure is the next:
    Catalog.book
    -Title.fm
    -Index.fm
    -Content.fm
    Each time I need to update the date of the catalog, I should edit the master page of index, and both master pages (left/right) of the content.
    Is there an easier way to make those changes?
    By the time I have a variable called 'revision_date' in both files, but I must change them twice.
    Thanks in advance

    1. Educate him. Point out that the system variable is intended to overcome human mistakes....
    2. a. Either in one of your working files or In a new, separate file, create a unique paragaph tag -- ModDate, for instance --. Insert the Modification Date variable as the only content.
        b. Insert a cross-reference from your working file(s) to the ModDate para tag.
        c. Whenever you open and Save the file with the date-controlling variable, the change should ripple into all files that use that as the source for the cross-reference.

  • Can the USB NI DAQs be used for process control,eg.closed loop? or is too fast

    can the USB NI DAQs be used for process control,eg.closed loop? or is too fast.

    Hi mho,
                 1.usb is very high speed that is correct.Better you can choose PCI DAQ.But thats upto you.
                 2. see this:-
                 http://sine.ni.com/nips/cds/view/p/lang/en/nid/14136
                3.If Matlab support TCP/IP, that could be an option.
                   see Another idea: http://digital.ni.com/public.nsf/allkb/244A37667BD7CBCE86257520007F937B
                   Another simplest way to do it (assuming you running Windows) is to use a Matlab script.
                  If both programs running on different systems:-
    Most simple and slow - Create two  VI's  with shared variable on both machines, and use a matlab script to
    share data. (this makes matlab some kind of "slave").
    More advanced but still  relatively slow (Create two  VI's  with shared variable, on the Matlab machine build the .NET
    dll, and it can be used on Matlab too ( at least at 2010b version, earlier version support only COM).
    Create TCP/IP connection between two comps.
    There is "out of the box" NI products, that communicate with Simulink models.You please do a simple search on that...OK
    I think this link is also helpful for you:-
     Procedimiento para la interface entre LabView 2009 y Matlab 2009b.pdf 1128 KB
    Anyway All the best.Try....do it.
    Thanks as kudos only

  • Timeline control issues in firefox

    My flash animation is not loading correctly in Firfox, the
    ActionScript I'm using to control the timeline with FlashVars is
    not working. I'm am a beginer at this and I don't know the problem.
    It is working fine in IE after enabling the ActiveX, as well as in
    Safari.
    I am creating basicaly a graph that loads values from
    FlashVars of which values will be set by database entries using php
    or JavaScript (not my portion of the project). Odly enough I have
    movie clip symbols in the animation which are working fine. I have
    flashvars loading into the movie than I declare new variables
    directed within the respective symbols that in effect control the
    timeline. The declarations are in the first frame of the main
    timeline and look a little like this:
    FirstSymbol.FirstVariable = FlashVar;
    SecondSymbol.SecondVariable = OtherFlashVar;
    and so on. Then within the symbols I have timeline controls
    to play the movie at a particular frame according to the variable
    values, they look something like this:
    if (FirstVariable<=0) {
    gotoAndPlay(2);
    } else if (FirstVariable>0 & FirstVariable<=1) {
    gotoAndStop(3);
    } else if (FirstVariable>1 & FirstVariable<=2) {
    gotoAndStop(4);
    This is all working fine. But the same principal is not
    working on the main timeline. I even tried re-declaring a new
    variable with the value equaling the imported FlashVar, but it
    didn't make a differenence. There is one diference with the bellow
    code which is that it is all in a "if, else if" statement. In the
    main timeline I have two variables that will control the timeline.
    One is to bring the timeline to a certain point (this is not
    working), the other is to limit how far the movie will play
    according to the value it is givin. So I have the "if, else if"
    statement in the begining to make sure it does not go anyware if
    the limiting variable is equal to zero. The code I'm using looks
    something like this:
    stop();
    if (LimitingFlashVar<=0)
    gotoAndStop(1);
    } else if (LimitingFlashVar>0)
    if (StartingFlashVar<=0) {
    gotoAndPlay(2);
    } else if (StartingFlashVar>0 &
    StartingFlashVar<=1) {
    gotoAndPlay(105);
    } else if (StartingFlashVar>1 &
    StartingFlashVar<=2) {
    gotoAndPlay(209);
    } else if (StartingFlashVar>2 &
    StartingFlashVar<=3) {
    gotoAndPlay(313);
    Instead of going to and playing the appropriate frames the
    movie just starts playing from the first frame and only stops at
    the next ActionScript which tells it to stop. Regardless, it
    niether stops at the first frame, nore does it jump to the
    appropriate frame. I don't know if this is an ActionScript problem,
    as it behaves the same way if the ActiveX is not enabled in IE, but
    once it id enabled it works fine in IE, and as I said, Safari.
    So what's the deal with Firefox? Is there some Script that
    can counter this issue and make it work. I've seen other posts
    which seam to address similar issues, and they tell me to "find a
    block of code X and insert Y after it", they say:
    "If you're having problems getting the Control Flash behavior
    to work in Firefox, find this line of code:
    var obj=MM_findObj(objStr);
    and add this code on the line after it:
    if (obj && obj[1]) obj=obj[1]; ..."
    I was unable to try this because I'm new at this and I don't
    know where that code is to be found or edited. Or is it something
    else? Please help. Sorry this is such a long post, but I would
    really appreciate some guidence from anyone who can help.

    I saw that in my earlier searches (before I posted).
    I'm not working with multiple profiles.
    from my home directory ~/.mozilla/firefox/profiles.ini
    [General]
    StartWithLastProfile=1
    [Profile0]
    Name=default
    IsRelative=1
    Path=jhn3pg5a.default
    Default=1
    Only 1 profile defined and the default flag is set.
    Should I be looking somewhere else as to where it's getting it's information from?

  • Local variables for clean code

    A question of style and LV correctness: 
    I'm quite aware of the risks of these guys, but I see no option here. Right now I have a program with ~35 events in an event structure. I have a wire that contains many device settings that only 2 of these events can change. About 6 events in total require the use of the data on this wire.
    Now, I see two choices:
    1) I can use a shift register and drag the stupid wire across 35 frames and then remember to do it in any additional frames when I add more
    2) I can use a local variable.
    This seems much, much cleaner to me, and I see no better way of doing it. My question is, is there? I've looked up feedback nodes, but I think I can only use them in single event cases. Their data doesn't seem accessible beyond one event case. is there some better option? The data on the wire is an array of objects (classes), if that helps. 

    pobrepablo1 wrote:
    Still though, I object on principle to having a wire across every one of my diagrams, it's cluttersome .
    I thought of a compromise, how about I use a shift register but wire it around my event structure, through a case structure breaking the wire only when I need to? i.e. see attached
    So a single thin 1D object across all event cases is more cluttersome than an additional external 2D case structure, partially wired extra tunnels, and all the extra convoluted logic holding it all together? You priorities seem to be biased.
    A nice wire across all cases is much better. It can be read and written in any event case that needs to, and can always be found in exactly the expected location. Remember that a shift register is very efficient. If the data size does not change, it operates fully in place for the duration of the run. It also often contains data that is not directly of interest to the operator so it does not need a display. A local variable requires a front panel object that needs to be updated in the UI thread. In needs a data copy in memory memory for the control/indicator itself as well as another copy for the transfer buffer (because the FP update is asynchronous). Then we have a third copy in the wire itself. Than makes it three copies of your potentially large array. Add another copy for each local variable instance, and you probably end up using 10x more memory compared to a simple shift register. It all adds up!
    Local variables can be placed anywhere and keeping track of them is like herding cats. The next programmer to work on your project will have a hard time tracking them all down. In properly designed code, it is just "follow the wire". Much more clear and almost self documenting.
    LabVIEW Champion . Do more with less code and in less time .

  • New signature for flood control

    I am in need of help in writing my own signature to control dictionary attacks on a proprietary application on one of our main frame applications.
    I was looking at writing a rule using the flood net engine. Does anyone have more information on what the different variables for this engine are? If I set the rate for 3 and the peaks and gaps to 0, will this block the 4th attempt in a second?
    I also need to try to lock this signature down. I could not allow it to block every 4th connection attempt from one IP address. How can you lock this signature down to a specific port and IP address? Does it need to be written into a meta engine signature?
    Thanks
    Gary

    details matter, but that seems like a less than optimal choice for the engine. Load up the signature policy and do a select by "sig name". Enter "failure" in the sig name box and click find. You might try modeling a signature after the one of these (6256-0 for example). Is there anything in the response that you can look for?

  • Triggers for audit control

    Good morning all,
    I am in desperate need of a trigger for audit control, that is who is doing what action (udpate, delete, insert)to a record, old value, and new value. Time and date wouild also be helpful.
    Problem -- and it's a big one. I don't know pl/sql. Trying to learn it, but in time for this project.
    Thanks all.
    P.S. If you have a link to a documentation that tells you how to do something like this, please let me know. Thanks again.

    Hi,
    The following example demonstrates a trigger that audits modifications to the Emp_tab table for each row. It requires that a "reason code" be stored in a global
    package variable before the update. This shows how triggers can be used to provide value-based auditing and how to use public package variables.
    Note:
    You may need to set up the following data structures for the examples to work:
    CREATE OR REPLACE PACKAGE Auditpackage AS
    Reason VARCHAR2(10);
    PROCEDURE Set_reason(Reason VARCHAR2);
    END;
    CREATE TABLE Emp99 (
    Empno NOT NULL NUMBER(4)
    Ename VARCHAR2(10)
    Job VARCHAR2(9)
    Mgr NUMBER(4)
    Hiredate DATE
    Sal NUMBER(7,2)
    Comm NUMBER(7,2)
    Deptno NUMBER(2)
    Bonus NUMBER
    Ssn NUMBER
    Job_classification NUMBER);
    CREATE TABLE Audit_employee (
    Oldssn NUMBER
    Oldname VARCHAR2(10)
    Oldjob VARCHAR2(2)
    Oldsal NUMBER
    Newssn NUMBER
    Newname VARCHAR2(10)
    Newjob VARCHAR2(2)
    Newsal NUMBER
    Reason VARCHAR2(10)
    User1 VARCHAR2(10)
    Systemdate DATE);
    CREATE OR REPLACE TRIGGER Audit_employee
    AFTER INSERT OR DELETE OR UPDATE ON Emp99
    FOR EACH ROW
    BEGIN
    /* AUDITPACKAGE is a package with a public package
    variable REASON. REASON could be set by the
    application by a command such as EXECUTE
    AUDITPACKAGE.SET_REASON(reason_string). Note that a
    package variable has state for the duration of a
    session and that each session has a separate copy of
    all package variables. */
    IF Auditpackage.Reason IS NULL THEN
    Raise_application_error(-20201, 'Must specify reason'
    || ' with AUDITPACKAGE.SET_REASON(Reason_string)');
    END IF;
    /* If the above conditional evaluates to TRUE, the
    user-specified error number and message is raised,
    the trigger stops execution, and the effects of the
    triggering statement are rolled back. Otherwise, a
    new row is inserted into the predefined auditing
    table named AUDIT_EMPLOYEE containing the existing
    and new values of the Emp_tab table and the reason code
    defined by the REASON variable of AUDITPACKAGE. Note
    that the "old" values are NULL if triggering
    statement is an INSERT and the "new" values are NULL
    if the triggering statement is a DELETE. */
    INSERT INTO Audit_employee VALUES
    (:old.Ssn, :old.Ename, :old.Job_classification, :old.Sal,
    :new.Ssn, :new.Ename, :new.Job_classification, :new.Sal,
    auditpackage.Reason, User, Sysdate );
    END;
    Optionally, you can also set the reason code back to NULL if you wanted to force the reason code to be set for every update. The following simple AFTER statement
    trigger sets the reason code back to NULL after the triggering statement is run:
    CREATE OR REPLACE TRIGGER Audit_employee_reset
    AFTER INSERT OR DELETE OR UPDATE ON Emp_tab
    BEGIN
    auditpackage.set_reason(NULL);
    END;
    Hope that helps.
    Thanks,
    Sharmila

  • How do I create an automator variable for a path that includes a date?

    I like to use Image Capture to scan documents into a hierarchy of folders under my ~/Documents directory that are organized by year and document type.  For example, I have
    ~/Documents/archives/2011
         /Misc
         /Utilities
    and
    ~/Documents/archives/2012
         /Misc
         /Utilities
    for archiving miscellaneous docs and utilities bills. Now, switching folders in Image Capture is annoying so I want to use the Automator support built into that app to direct the scanned images to ~/Documents/archives/<Current Year>/Misc or ~/Documents/archives/<Current Year>/Utilities.  I was able to do this with separate Automator workflows, each with a hard-coded path to the destination folder.  For example,
    What I would like to do is use an Automator variable to dynamically determine ~/Documents/archives/<Current Year>/Misc.  I see variables for Home, Documents, and Current Year.   However, when I try to create a new path variable it only lets me choose a full path to a Finder folder.  How do I combine Documents and Current Year variables with the "archives" and "Misc" folder names to create a new path variable?

    Well now, you went and made me learn something today.  In the Variables Library, under Utilities, is a variable named AppleScript.  You can put a small script into this that evaluates to your path, for example:
    ((((path to documents folder) as text) & "archives:" & (year of (current date)) as text) & ":Utilities") as alias
    If the script evaluates to a proper path, it can be used wherever any other path can - you can experiment by looking at the results of a Get Value of Variable action.

Maybe you are looking for

  • Error in Abap code when combining data from two tables

    Hi, I got error in my code when  i try to select data based on two tables error message Unknown column name "(" field list. field list. field list. field list. select ( WLK1~ARTNR )           into ZOXE1D0041-ZZPROMO           from WLK1 INNER JOIN T00

  • Problem while starting the weblogic managed server

    Hi, I am facing the following error while starting the managed weblogic server : weblogic.diagnostics.lifecycle.DiagnosticComponentLifecycleException: weblogic.store.PersistentStoreException: java.io.IOException: [Store:280021]There was an error whil

  • Just made the switch and running into problems immediately

    Been a lifelong PC user and switched to a MacBook Pro with the update yesterday. I got home, charged it up immediately, and went for my initial boot-up. First problem, right as I'm finalizing setup and creating my login and password, I get a "you mus

  • What happened to the nightly builds?

    I've noticed that as of late there have been no nightly builds on the  Flex 3 or 4 SDK. This is odd to me, simply because these used to get  published on a relatively regular basis. However, there hasn't been a  nightly build of the Flex 4 SDK since

  • Password protect trash?

    Hi guys, Can anyone tell me if there is a way to password protect my trash can so nobody can delete files from my pc without me there. I've looked everywhere and found nothing. But there must be away. Mac's have almost everything. Thanks in advance!