Event-driven

Hello

Basically, I'm counting the number of the user click. For that I use a structure of the event, but I want that our main loop should not be halted in the meantime for the event and that also created additional looping. But when I click the button, the count does not increase and I am not able to understand why.

AOE_3 wrote:

I'm downloading the vi for the previous version.

Your version is always 2012.

My solution above is also in 2012. Have you had a chance to watch it?

Tags: NI Software

Similar Questions

  • Event Driven Publishing API 11 GR 2 - ORA-06512: at line 20

    Hello

    I use event driven api publishing to send the report to our users, I use the procedure to do this, but the procedure executes with the error

    declare

    *

    ERROR on line 1:

    ORA-20999:

    ORA-06512: at «NRSP.» SRW", line 264

    ORA-06512: at «NRSP.» SRW", line 799

    ORA-06512: at line 20

    no additional information about the cause of the error.

    Please help about this.

    Database: 11 GR 2

    Train services: 11 GR 2

    RAC (2 knots)

    -procedure

    declare

    myPlist SRW_PARAMLIST;

    myIdent SRW. Job_Ident;

    myStatus SRW. Status_Record;

    BEGIN

    SRW.start_debugging;

    myPlist: = SRW_PARAMLIST (SRW_PARAMETER('',''));

    srw.add_parameter (myPlist, 'GATEWAY','http://192.168.5.35:8888/reports/rwservlet ');

    SRW. ADD_PARAMETER (myPlist, "SERVER", "rep_wls_reports_conho_asnist_1");

    SRW.add_parameter(myPlist,'REPORT','D:\Reports\EMP_ABSNTE_AUTO.rdf');

    SRW.add_parameter(myPlist,'USERID','usr/pwd@mydb');

    SRW.add_parameter (myPlist, 'DESTYPE', 'email');

    SRW.add_parameter (myPlist, 'DESFORMAT', 'PDF');

    srw.add_parameter (myPlist, 'DESNAME',' [email protected]');

    SRW.add_parameter (myPlist, 'SUBJECT', 'Monthly absent notice');

    srw.add_parameter (myPlist, "FROM",' [email protected]');

    myIdent: = srw.run_report (myPlist);

    myStatus: = srw.report_status (myIdent);

    SRW.stop_debugging;

    end;

    /


    The debug output should tell you more. See this thread:

    Report in PDF format and send it to some clients, using database triggers

  • Update an indicator of in while loop with event driven programs

    I'm trying to update a chart shared by several events within a Structure of the event. I would like a change in value of a button (NOPE or OK buttons in the attached example images) causes the structure of the event causes a switch between the various outputs for the chart. In the example attached, clicking the OK button will send the graph random matrices, while clicking on the button NOPE will send constant tables to the curve.

    As the process within the structure of the event is underway, I use a while loop within each of the different events in the event Structure. So there is a structure of the event, and each event have while loops in them which should update the chart outside the structure of the event (see attached images).

    This does not update the graph, the graph remains static instead, why is this? How can I configure it to work as I described above?

    In my view, a question is: How can I use the same stop button in both inside while loops. In the example images, I have two that are different, one for each of the different events.

    Thank you!


  • In a tool such as Foglight events about APM-driven alerts

    Hi all

    Our company is currently having an internal debate whether Foglight can replace IBM Netcool Omnibus.  I had a conference call with Gartner last week to discuss the surveillance as a whole and one gentlemen on the phone said that "Foglight can replace Omnibus' which has left me a bit confused because I know that we have had these discussions with Dell, who said that they are not a replacement for Netcool Omnibus. Unfortunately, we ran out of time and I couldn't get their probe on this statement.

    We currently use the functionality of Netcool Omnibus in 5 ways that are:

    Event command line injection

    There is a binary called postzmsg which is drawn from the command line with parameters that contain the severity, summary, on call group and so on.

    Syslog monitoring
    Omnibus has a probe called syslog that we use for monitoring Oracle database log files and trigger events in Omnibus if specific events are found in the newspaper.  This is done in real time.

    SNMP traps
    Omnibus currently listening to breaks SNMP of some of our products like CA Autosys and cypress trees of the ASG.


    E-mail

    Omnibus was an electronic probe that monitors a specific e-mail (Google) for specifically formatted e-mail account and then turns them into an Omnibus event.  We use usually this method as a last resort because it is dependent on the e-mail.

    Automation of self-correction
    Omnibus contains what is called "Actions".  We can search for specific events, and then take corrective action with Automation in Omnibus to fix what caused the event. An example of this would be with our product CA Autosys.  Omnibus search specifically for events 'pulse' every 5 minutes. These heartbeats are sent directly by a job in Autosys which in turn proves Autosys is running.  If Omnibus does not see the heart beat, she considers as inactive Autosys and run scripts which then try to restart Autosys save.  Omnibus then reports if this attempt succeeded or failed and worsens the severity according to its conclusions.

    Please keep in mind that all of these methods are with an event-driven approach rather than a performance-based approach.

    I really need to have a clear picture on whether and how the Foglight can cope with the event focused on issues.

    I asked Dell technical support who said the follow-up:

    You may be able to use a script agent to meet your needs.  The script agent could return data to the FMS and you could have a rule that fires based on the data returned.You would be responsible to creating the script used by the agent.  There is a "Builiding Script Agents" section under the "Customizing Your Environment with Tooling | Building Script Agents" in the Foglight Administration and Configuration guide.
    

    Has anyone had experience with this? What was the result? Do you use today? Advantages vs disadvantages?

    If anyone has the source code example that it would be really appreciated! I am also very interested in hearing other thoughts which have Foglight and another tool such as Omnibus or other tools and how they use with Foglight or if they withdrew these tools after having long Foglight.

    Thanks to you all! Looking forward to your answers!

    Larry Roberts

    Larry,

    Foglight can be configured to monitor the applications where an out of the box cartridge (module) was not developed and delivered with the product. There are several ways to customize Foglight.

    Event command line injection

    Looks like you want to send alarms foglight via a command line program. It is feasible because there are available with Foglight APIs to create alarms.

    Syslog monitoring

    Foglight monitoring logs with the logfilter agent. You can set the strings that need to be searched (when a log file is updated by your applications), then specify the corresponding string (based on regular expressions) is a warning, critcal or a fatal alert.

    For monitoring of log files from the database, which is available with the cartridges of the database (DB2, Oracle, SQL Server, MySQL, Sybase) delivered with Foglight.

    SNMP traps

    Foglight can receive (out of the box) SNMP traps and convert them to Foglight alarms.


    E-mail

    I study further on this request. Basically, it takes an e-mail player that puts the emails in a log file that will read the Foglight LogFilter agent and search for error conditions.

    Automation of self-correction Foglight rules have actions that can be performed in the cases where the rule detects specific conditions as the processor high as a basic example and then run the scripts commands, scripts remotely, send SNMP traps, invoke a JavaEE trace, etc. A custom agent could be developed to run your heartbeat AutoSys and then search for an answer to a file or stdout and update a Foglight table that is being tested in a rule.

    David Mendoza

    Foglight Consultant

  • Access rule to the rule-driven event Variables

    Hello!

    Background:

    Here's what I'm trying to do: I was hoping someone might be able to help me with this.

    I created an event rule without a scope that will be sent, if the name of the event contains a prefix set, as follows;

    {if(@event_name.) Contains ("MYFILTER_")}

    Returns true;

    } else {}

    Returns false;

    }

    The action is a command line action that activates a special probe in SNMP before that we have installed on the server.

    The problem:

    I want to access a variable in the variable filter rule. Essentially, EACH rule containing MYFILTER_ as a prefix has a variable defined as a variable of @callGroup RULE. This variable considers the specified parent service and tire part of the name of the service that we have designed to be always the band guard for this alarm/event.

    The solution that I'm looking should look like this:

    On the event rule:

    Variable: callGroup

    Type: Expression

    Value of the expression: @event.get ("callGroup");

    On the MYFILTER_ rule:

    Variable: callGroup

    Type: Expression

    Value of the expression:

    def foundParent = false;

    targetService def = 'unknown ';

    i = 0;

    While (i< scope.parents.size()="" &&="">

    obj = scope.parents def;

    {if (obj.topologyTypeName.Equals ("FSMService"))}

    If (obj. Name.Contains(":") & obj.name.contains("-")) { //This is the regular expression to our designated 'parents services' }

    targetService = obj.name;

    foundParent = true;

    }

    }

    i ++ ;

    }

    {if(!foundParent)}

    for (x = 0; x

    for (y = 0; y)

    obj = Scope.parents [x] .parents;

    {if (obj.topologyTypeName.Equals ("FSMService"))}

    If (obj. Name.Contains(":") & obj.name.contains("-")) { //This is the regular expression to our designated 'parents services' }

    targetService = obj.name;

    foundParent = true;

    }

    }

    }

    }

    }

    originService = targetService.split(":");

    parentService = originService [0];

    Return parentService.split ("-") [0];

    Bottom Line: How can I access this other value or a variable existing rule from the interface of event action rule?

    access to the content of the rule Variables is unfortunately not possible by using the generated alarm or event driven rule.

    But I think you can use the same rule of expression led to the event. The only problem is that your event driven rule is not you need to replace worn with

    Server. TopologyService.getObject(@event.topologyObjectID)

    Like this

    def scopedObject = server.TopologyService.getObject(@event.topologyObjectID)  // use the @event to find the alarm scope !!!
    
    def foundParent = false;def targetService = "unknown";
    
    i=0;while(i < scopedObject.parents.size() && !foundParent){  def obj=scopedObject.parents;  if(obj.topologyTypeName.equals("FSMService")){    if(obj.name.contains(":") && obj.name.contains("-")){ //This is the regex of our designated "parent services"        targetService = obj.name;        foundParent = true;    }   }  i++;}
    
    if(!foundParent){  for(x=0;x;       if(obj.topologyTypeName.equals("FSMService")){                  if(obj.name.contains(":") && obj.name.contains("-")){  //This is the regex of our designated "parent services"           targetService = obj.name;           foundParent = true;         }       }     }  }}
    
    originService = targetService.split(":");parentService = originService[0];
    
    return parentService.split(" - ")[0];
    
  • PAUSE loop based on events (unemployment and UI)

    Hello

    I made a loop, where I needed to be paused at each iteration, and waiting for an event to happen, then go to the next iteration.

    Here is an excerpt:

    It runs only when you press the button START and STOP whenever you press the corresponding button.

    I need to have the same behavior, but in a structure of the event within a while loop, (same structure for event driven state machine):

    How can it be implemented?

    I thought by using the properties of value (signalling) to trigger the events of the buttons... but until now I'm stuck...

    some ideas?

    I would use a machine to States how to handle this correctly. In this way, you can add features later if you wish. If you have any questions please let me know.

  • Master/slave with events

    Hi, I'm developing an application in which the user actions will initiate certain events.  I've implemented the application as an event-driven state machine.  However, I realized that one of the events must launch a continuous process, i.e. reading from the buffer of a USB device.  It seems that the master/slave model apply.  Is it possible to implement the model master/slave with slave event triggered activity?  I have the feeling of these two designs are incompatible.

    Thank you

    -Jamie

    If I interpret your concern of a straight line, "I thought that a part of the particular event should run completely before any action of the user would trigger another event...» » :

    An event Structure maintains a queue of unmanaged manifestations.  When any event registered to a Structure of the event is triggered, LabVIEW places the event in this case queue Structure (you can have multiple records for the same event and LabVIEW will be provided with a copy of the event in each record... a bit more advanced, but it happens more often with user events, since normally you should not have more Structures for a single VI event).  When the Structure of the event is called, it will be the next event unmanaged dequeue and execute the corresponding diagram.  If there is no event in its queue, then he will wait.  If none of the events occur (are added to the queue) at the time where the period has elapsed, while the diagram of time-out is executed.

    Which means, the schema associated with a certain event needs to be completed before all other diagrams can possibly run; However, events such as buttons on the user interface, are still captured during execution of the first scheme.

    If your diagrams of Structure of the event have long-running code, then you can go out with that have be your only design.  For example, the operations find and initialize in your sound image as an attachment as things just happen once and back relatively quickly, so the button find out the slave device will probably expect you - a slave is discovered, and then initialized by pressing the key, after which your VI is ready to run several diagrams of the event.  However, if one of your States running really persistent operations, such as a schema "" run slave"where you have a collection of persistent data loop, then you will be in trouble since the schema will not end and your UI will probably become numb.

    What does not work is if persistent operations are ran asynchronously.  If your slave has something like a "Start ANT Slave.vi" that starts an asynchronous process slave for you then returns, similar to how I would expect the "Init ANT Slave.vi" to behave, then that would work.

    What RavensFan and crossrulz have mentioned are ways to achieve this in your design (rather than in the design of the class ANT slave).  Say that your ANT class slave doesn't have any internal asynchronous substance put in place that you can just start, and you will perform all operations running on your block diagram yourself.  In this case, you can create a new parallel to your course while loop.  A form any synchronization mechanism, such as a notifier, could be acquired and transmitted to two loops.  Run the loop of the slave could simply wait on the front warning system it does nothing.  Then in an event run in the upper loop for push button start, for example, you have to send a notifier, stating, "Okay loop slave, please start".  The slave will begin its operations and continue to execute, while your event in the first loop schema would end, and you would still have a user interface responsive.

    The design pattern of messages in queue manager is where you have a queue instead of the notifier used in the example above, and you can messages from queue you want the slave to receive (and apparently act accordingly).  Loop of the slave and then check the queue to see if his master has sent something - if so, it performs this action; If this isn't the case, then it executes any action that it deems appropriate.

  • user-generated event does not record

    I am having trouble with a user-generated event and hope that someone else has seen the same thing. I'm running LV 9 SP1, with a pretty standard structure of producer-consumer. The producer is event-driven and sends orders to the consumer based on the queue via the queues and the consumer information going back up the producer via the events generated by the user. In most cases, this works perfectly, but in a situation the event generated by the user is not registered by the structure of the producer of the event.

    The problem arises when the producer to place an order for the consumer advertising immediately generates an event. When this happens, the event is usually not treated by the producer - maybe 1 to 100 times the event is considered by the producer. My guess is that the user event is generated before the producer has completed execution of the event structure case who entered the command line of the consumer, which means (for some reason any) he'll never respond to the event. This suggests that event LV structures will not meet created events while they are running. Is this the case?

    I got around the problem by adding a 10ms before generating the user event (to allow for the case of the event at the end of the performance), but would really rather solve the problem if possible. Any suggestions?

    Thank you

    Baymen

    Thus, you do not have the result of the event of registry which contains this loop connected to any other other event that the loop of producer is correct?

    My first guess is that you raise the event and there is a State of race on the event and a loop is getting there faster than the other.

  • Learn how to use queues producer consumer event

    Hi all

    I'm trying to understand the good programming techniques for the use of the elements of the queue in a producer / consumer event-driven program. I am looking for some demonstration programs have an idea of the functioning of these looops-based. Currently, I'm not sure on how to deal with errors that occur before an event from the queue (see screen capture below).

    If a queue receives an error, it seems that the queue item is never received. I have an OR statement to stop the producer loop when it receives an error message. However, because the question has never been in queue, dequeue in the consumer just loop element crashes then the consumer don't never closed loop the while loop.

    What are some good techniques to handle errors that are placed in a queue? I could probably cable a timeout on the dequeue, but I prefer not to use this approach if possible.

    Thank you


  • activeDocument null after the events focused on LCD screens

    ====================================================

    Problem:

    ====================================================

    Prob 1) in a TitleWindow popup, I a Dataservice oriented LCD screens that populates an ArrayCollection «pictures» collection  See source below PreviewImage.mxml.  On a CollectionChange event on 'photos', I have a listener "dataChangeListener(event:CollectionEvent)."  In turn, this listener calls a static method NewsAgencyPhotoshop.updateMetadata (args).

    When an image is open in PS, depending on the NewsAgencyPhotoshop.updateMetadata (args) get the reference of the Photoshop document active, check if it is not zero, and proceed to update the metadata of activedocument via the "info" property  Example:

    App: application var = Photoshop.app;
    var docRef:Document = app.activeDocument;
    If (docRef! = null) {}
    var docInfo:DocumentInfo = docRef.info;

    .....

    However, every time I check if docRef is null, is null.  I use the same lines of code to get a reference to the current document in other functions like close() or writeWatermark(), and in each of these cases, the docRef object is valid (non-null).

    It seems that when a static function is called on the NewsAgencyPhotoshop manually by clicking a button or the activeDocument reference is good, but when calling a static function as an event listener for an event linked screens LCD LIQUID, then the activeDocument is always null.

    Why?

    Prob 2) I tried also to the activeDocument reference a static class variable, then the references in access to static functions.  In the open function (filePath), I instantiated the class static variables, like this:

    public static void open(filePath:String):void
    {
    App = Photoshop.app;
    var file:File;
    = new File (filePath);
    App.Open (file);
    app.activeDocument = docRef;
    }

    Using this approach, manual event-driven functions are working and have good docRefs, like this:

    Public Shared function writeWaterMark (): void
    {
    App: application var = Photoshop.app;
    var docRef:Document = app.activeDocument;
    var myTextLayerRef:ArtLayer = docRef.artLayers.add ();

    However, this works only in part with the function called by my LCDS change event listener, since the docRef is then not null it penetrates into the code block and attempts to write metadata to the activedocument, like this:

    public static void updateMetadata(filePath:String,_data:Object):void
    {
    App: application var = Photoshop.app;
    var docRef:Document = app.activeDocument;
    If (docRef! = null) {}
    var docInfo:DocumentInfo = docRef.info;
    docInfo.copyrightNotice = data.copyrightNotice;

    The problem here is that the docInfo.copyrightNotice line throws the following exception in Flash Builder:

    17/02/2011 00:08:44.226 [INFO] com.adobe.csxs.stagemanager.window.impl.WindowManager routing event of type com.adobe.csxs.internally.events.BroadcastEvent to all extensions.
    : Error General Photoshop. Maybe this feature is not available in this version of Photoshop.
    -no additional information available >
    at flash.external::HostObject/__set()
    at com.adobe.csawlib::CSHostObject/hostSet()
    at com.adobe.photoshop::DocumentInfo/set copyrightNotice()
    to NewsAgencyPhotoshop$ /updateMetadata () [/ opt/Adobe_Flash_Builder4/NewsAgency_Ext/src/NewsAg encyPhotoshop.as:52]
    to PreviewImage / dataChangeListener () [/ opt/Adobe_Flash_Builder4/NewsAgency_Ext/src/PreviewIma ge.mxml:103]

    Your advice is appreciated.

    Thank you

    Steven Erat

    ====================================================

    Environment

    ====================================================

    Photoshop CS5 Extended 12,01 x 32

    Flash Builder 4

    CS SDK 1.02

    Extension Builder SDK 3.4

    MacBook Pro / OS X 10.5 / Intel Core 2 Duo clocked at 2.66 GHz / Procs: 1 / Cores: 2 / memory: 8 GB

    App, configured for Photoshop CS5 and Photoshop CS5 Extended

    ====================================================
    PreviewImage.mxml (popup)

    ====================================================

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:TitleWindow ' http://www.Adobe.com/2006/MXML "xmlns =" com.stevenerat.news. * ""
    title = "Preview Image" horizontalAlign = "center" verticalAlign = "middle" horizontalScrollPolicy = "off" verticalScrollPolicy = "off".
    paddingBottom = "20" paddingLeft = "20" paddingRight = "20" paddingTop = "20" width = "270" height = "550".
    creationComplete = "init (); ">

    ....

    < mx:Script >
    <! [CDATA]
    import flash.events.TimerEvent;
    import flash.utils.Timer;

    Import mx.events.CollectionEvent;
    Import mx.managers.PopUpManager;
    Import mx.utils.ObjectUtil;

    ....


    public void init (): void {}
    DS. Fill (pictures);
    ....
    }

    ....
    private void dataChangeListener(event:CollectionEvent): void
    {
    If (lblStatus appearing! = null & & imgIsOpen) {}
    lblStatus.text = "update of METADATA";
    setButtonState (false, true, true);
    Table: data var = event.currentTarget.list.localItems;
    for (var i: int = 0; i < data.length; i ++) {}
    If (.) Data filename [i] == this.fileName) {}
    NewsAgencyPhotoshop.updateMetadata(data[i].dirPath+data[i].fileName,data[i]);
    break;
    }
    }
    }
    }

    ....

    < mx:DataService id = "ds" destination = "NewsAgencyPhotos" autoSyncEnabled = "true" autoCommit = "false" / >
    < mx:ArrayCollection id = 'photos' collectionChange = "dataChangeListener (event)" / >
    < LocaleInvitez / >

    ====================================================

    NewsAgencyPhotoshop.as

    ====================================================

    package
    {
    import com.adobe.csawlib.photoshop.Photoshop;
    com.adobe.photoshop import. *;

    import flash.filesystem.File;
    Import mx.utils.ObjectUtil;

    public class NewsAgencyPhotoshop
    {
    public static var App: application;
    public static var docRef:Document;

    public static void open(filePath:String):void
    {
    App = Photoshop.app;
    var file:File;
    = new File (filePath);
    App.Open (file);
    app.activeDocument = docRef;
    }
    ....


    public static void updateMetadata(filePath:String,_data:Object):void
    {
    App: application var = Photoshop.app;
    var docRef:Document = app.activeDocument;
    If (docRef! = null) {}
    var docInfo:DocumentInfo = docRef.info;
    docInfo.copyrightNotice = data.copyrightNotice;
    docInfo.headline = data.headline;
    var keywordSt:String = data.keywords;
    var keywordAry: Array = keywordSt.split(",");
    for (var i: int = 0; i < keywordAry.length; i ++) {}
    docInfo.keywords [i] = keywordAry [i];
    }
    docInfo.caption = data.description;
    docInfo.city = data.city;
    docInfo.country = data.country;
    docInfo.provinceState = data.state;
    }

    ====================================================

    Console

    ====================================================

    [SWF] StageManager - 2.0.swf - 1 188 270 bytes after decompression
    17/02/2011 creationComplete() com.adobe.csxs.stagemanager.StageManager 00:08:18.971 [INFO]
    17/02/2011 00:08:18.981 [INFO] com.adobe.csxs.stagemanager.external.ExternalEventReceiver ExternalInterface callback registered.
    17/02/2011 00:08:18.982 [INFO] com.adobe.csxs.stagemanager.external.CSXSEventReceiver ExternalInterface callback registered.
    17/02/2011 com.adobe.csxs.command.GetPendingStageManagerIdCommand 00:08:18.984 [INFO] call GetPendingStageManagerId via ExternalInterface
    17/02/2011 00:08:18.993 [INFO] com.adobe.csxs.command.GetPendingStageManagerIdCommand returned branchezBranchez StageManager ID. execute()
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.026 [INFO] adding extension CH
    17/02/2011 00:08:19.027 [INFO] com.adobe.csxs.stagemanager.model.ExtensionManager add extension com.example.helloworld.extension1
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.028 [INFO] adding extension BASICAMFCONNECTOR
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.028 [INFO] adding extension CSREVIEW
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.028 [INFO] adding extension HELLOPHO
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.029 [INFO] adding extension KLR
    17/02/2011 00:08:19.029 [INFO] com.adobe.csxs.stagemanager.model.ExtensionManager add extension com.stevenerat.news.extension1
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.029 [INFO] adding extension CREATENEWCSREVIEW
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.030 [INFO] adding extension NETAVERAGES
    17/02/2011 00:08:19.030 [INFO] com.adobe.csxs.stagemanager.model.ExtensionManager add extension com.adobe.rc.mymessages
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.030 [INFO] adding extension CHWE
    17/02/2011 00:08:19.031 [INFO] com.adobe.csxs.stagemanager.model.ExtensionManager add extension com.adobe.rc.operationalmessages
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.031 [INFO] adding extension HISTORY
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.032 [INFO] adding FRIO extension
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.032 [INFO] adding extension MINIBR
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.032 [INFO] adding extension BLCSLIVE
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.033 [INFO] adding extension CHSIGNIN
    17/02/2011 com.adobe.csxs.stagemanager.model.ExtensionManager 00:08:19.033 [INFO] adding extension swfpanel-onOne-0
    17/02/2011 00:08:19.034 [INFO] com.adobe.csxs.stagemanager.extension.impl.ExtensionLoader ExtensionLoader() record ExternalInterface callback loadExtension
    17/02/2011 00:08:19.034 [INFO] com.adobe.csxs.stagemanager.extension.impl.ExtensionLoader ExtensionLoader() record ExternalInterface callback unloadExtension
    17/02/2011 checkLoadingQueue() com.adobe.csxs.stagemanager.extension.impl.ExtensionLoader 00:08:19.035 [INFO]
    17/02/2011 com.adobe.csxs.command.GetLoadingQueueCommand 00:08:19.037 [INFO] call GetLoadingQueue via ExternalInterface
    17/02/2011 00:08:19.041 [INFO] com.adobe.csxs.command.GetLoadingQueueCommand execute() branchezBranchez returned to load extensions.
    17/02/2011 00:08:19.042 [INFO] com.adobe.csxs.stagemanager.extension.impl.ExtensionLoader loadExtension() com.stevenerat.news.extension1
    17/02/2011 00:08:19.045 [INFO] com.adobe.csxs.stagemanager.window.impl.WindowManager Extension com.stevenerat.news.extension1 is not an extension plugin-> validate.
    17/02/2011 com.adobe.csxs.stagemanager.security.impl.ExtensionValidator [INFO] 00:08:19.049 in debug mode, the signature of the extension is not validated.
    17/02/2011 com.adobe.csxs.command.SetExtensionSignedCommand 00:08:19.053 [INFO] call SetIsSigned via ExternalInterface
    17/02/2011 00:08:19.133 [INFO] com.adobe.csxs.stagemanager.window.impl.WindowManager doLoadExtension() Extension loaded com.stevenerat.news.extension1.
    17/02/2011 onCreationComplete() com.adobe.csxs.stagemanager.window.ExtensionWindow 00:08:19.230 [INFO]
    [SWF] / Users/stevenerat/Library/Application Support/Adobe/CS5ServiceManager/extensions/com.stevenerat.news/NewsAgencyPhotos.swf - 1 976 113 bytes after decompression
    17/02/2011 com.adobe.csxs.stagemanager.window.ExtensionWindow 00:08:19.369 [INFO] com.stevenerat.news.extension1 of the extension loading complete.
    17/02/2011 com.adobe.csxs.stagemanager.window.impl.SWFEventDispatcher 00:08:19.371 [INFO] com.stevenerat.news.extension1 of the extension loading complete.
    17/02/2011 00:08:19.396 [INFO] com.adobe.csxs.stagemanager.external.CSXSEventReceiver receiveExternalEvent() send CSXSEvent to all extensions...
    17/02/2011 00:08:19.397 [INFO] com.adobe.csxs.stagemanager.window.impl.WindowManager routing event of type com.adobe.csxs.internally.events.BroadcastEvent to all extensions.
    17/02/2011 onExtensionComplete() com.adobe.csxs.stagemanager.extension.impl.ExtensionLifeCycleNotifier 00:08:20.230 [INFO]
    17/02/2011 com.adobe.csxs.command.SetExtensionLoadedCommand 00:08:20.231 [INFO] call SetIsLoaded via ExternalInterface
    17/02/2011 dispatchInvokeEvent() com.adobe.csxs.stagemanager.extension.impl.ExtensionLifeCycleNotifier 00:08:20.233 [INFO]
    17/02/2011 com.adobe.csxs.command.CheckStartOnEventCommand 00:08:20.236 [INFO] CheckStartOnEvent via ExternalInterface call for com.stevenerat.news.extension1
    17/02/2011 onExtensionComplete() com.adobe.csxs.stagemanager.window.impl.WindowStateManager 00:08:20.245 [INFO]
    17/02/2011 00:08:20.252 [INFO] com.adobe.csxs.stagemanager.window.impl.SWFEventDispatcher dispatchEventToExtension() routing event type extension com.stevenerat.news.extension1 com.adobe.csxs.events::StateChangeEvent
    17/02/2011 00:08:20.257 [INFO] com.adobe.csxs.stagemanager.external.CSXSEventReceiver receiveExternalEvent() send CSXSEvent to all extensions...
    17/02/2011 00:08:20.258 [INFO] com.adobe.csxs.stagemanager.window.impl.WindowManager routing event of type com.adobe.csxs.internally.events.BroadcastEvent to all extensions.
    17/02/2011 00:08:31.858 [INFO] com.adobe.csxs.stagemanager.external.CSXSEventReceiver receiveExternalEvent() send CSXSEvent to all extensions...
    17/02/2011 00:08:31.859 [INFO] com.adobe.csxs.stagemanager.window.impl.WindowManager routing event of type com.adobe.csxs.internally.events.BroadcastEvent to all extensions.
    17/02/2011 00:08:33.333 [INFO] com.adobe.csxs.stagemanager.window.impl.SWFEventDispatcher dispatchEventToExtension() routing event type extension com.stevenerat.news.extension1 com.adobe.csxs.events::StateChangeEvent
    17/02/2011 00:08:36.394 [INFO] com.adobe.csxs.stagemanager.window.impl.SWFEventDispatcher dispatchEventToExtension() routing event type extension com.stevenerat.news.extension1 com.adobe.csxs.events::StateChangeEvent
    17/02/2011 00:08:36.683 [INFO] com.adobe.csxs.stagemanager.external.CSXSEventReceiver receiveExternalEvent() send CSXSEvent to all extensions...
    17/02/2011 00:08:36.683 [INFO] com.adobe.csxs.stagemanager.window.impl.WindowManager routing event of type com.adobe.csxs.internally.events.BroadcastEvent to all extensions.
    17/02/2011 00:08:36.718 [INFO] com.adobe.csxs.stagemanager.external.CSXSEventReceiver receiveExternalEvent() send CSXSEvent to all

    .......
    17/02/2011 00:08:44.132 [INFO] com.adobe.csxs.stagemanager.window.impl.WindowManager routing event of type com.adobe.csxs.internally.events.BroadcastEvent to all extensions.
    17/02/2011 00:08:44.190 [INFO] com.adobe.csxs.stagemanager.external.CSXSEventReceiver receiveExternalEvent() send CSXSEvent to all extensions...
    17/02/2011 00:08:44.191 [INFO] com.adobe.csxs.stagemanager.window.impl.WindowManager routing event of type com.adobe.csxs.internally.events.BroadcastEvent to all extensions.
    17/02/2011 00:08:44.209 [INFO] com.adobe.csxs.stagemanager.external.CSXSEventReceiver receiveExternalEvent() send CSXSEvent to all extensions...
    17/02/2011 00:08:44.209 [INFO] com.adobe.csxs.stagemanager.window.impl.WindowManager routing event of type com.adobe.csxs.internally.events.BroadcastEvent to all extensions.
    17/02/2011 00:08:44.225 [INFO] com.adobe.csxs.stagemanager.external.CSXSEventReceiver receiveExternalEvent() send CSXSEvent to all extensions...
    17/02/2011 00:08:44.226 [INFO] com.adobe.csxs.stagemanager.window.impl.WindowManager routing event of type com.adobe.csxs.internally.events.BroadcastEvent to all extensions.
    : Error General Photoshop. Maybe this feature is not available in this version of Photoshop.
    -no additional information available >
    at flash.external::HostObject/__set()
    at com.adobe.csawlib::CSHostObject/hostSet()
    at com.adobe.photoshop::DocumentInfo/set copyrightNotice()
    to NewsAgencyPhotoshop$ /updateMetadata () [/ opt/Adobe_Flash_Builder4/NewsAgency_Ext/src/NewsAg encyPhotoshop.as:52]
    to PreviewImage / dataChangeListener () [/ opt/Adobe_Flash_Builder4/NewsAgency_Ext/src/PreviewIma ge.mxml:103]
    to PreviewImage / __photos_collectionChange () [/ opt/Adobe_Flash_Builder4/NewsAgency_Ext/src/Pre viewImage.mxml:163]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.collections::ListCollectionView/dispatchEvent() [C:\autobuild\3.4.0\frameworks\projects \framework\src\mx\collections\ListCollectionView.as:862]
    at mx.collections::ListCollectionView/handlePropertyChangeEvents() [C:\autobuild\3.4.0\framew orks\projects\framework\src\mx\collections\ListCollectionView.as:1224]
    at mx.collections::ListCollectionView/listChangeHandler() [C:\autobuild\3.4.0\frameworks\proj ects\framework\src\mx\collections\ListCollectionView.as:1096]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.data::ConcreteDataService/dispatchCollectionEvent() [C:\depot\flex\branches\enterprise_ bridgeman_final_hotfixes\frameworks\mx\data\ConcreteDataService.as:4404]
    at mx.data::ConcreteDataService/itemUpdateHandler() [C:\depot\flex\branches\enterprise_bridge man_final_hotfixes\frameworks\mx\data\ConcreteDataService.as:4946]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.stevenerat.news::NewsPhoto/dispatchEvent() [/ opt/Adobe_Flash_Builder4/NewsAgency_Ext/s rc/com/stevenerat/news/NewsPhoto.as:26]
    at mx.data.utils::Managed$/setProperty() [C:\depot\flex\branches\enterprise_bridgeman_final_h otfixes\frameworks\mx\data\utils\Managed.as:383]
    to com.stevenerat.news::NewsPhoto/set description() [/ opt/Adobe_Flash_Builder4/NewsAgency_Ext/src/com/stevenerat/news/LocaleInvitez. as: 13]
    at mx.data::ConcreteDataService/updateManagedProperty() [C:\depot\flex\branches\enterprise_br idgeman_final_hotfixes\frameworks\mx\data\ConcreteDataService.as:5618]
    at mx.data::ConcreteDataService/updateMergedItem() [C:\depot\flex\branches\enterprise_bridgem an_final_hotfixes\frameworks\mx\data\ConcreteDataService.as:5638]
    at mx.data::ConcreteDataService/mergeUpdate() [C:\depot\flex\branches\enterprise_bridgeman_fi nal_hotfixes\frameworks\mx\data\ConcreteDataService.as:5155]
    to mx.data::ConcreteDataService / http://www.Adobe.com/2006/Flex/MX/internal:mergeMessage ([C:\depot\flex\branches\enterpri se_bridgeman_final_hotfixes\frameworks\mx\data\ConcreteDataService.as:2555])
    at mx.data::ConcreteDataService/messageHandler() [C:\depot\flex\branches\enterprise_bridgeman _final_hotfixes\frameworks\mx\data\ConcreteDataService.as:5199]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    to mx.messaging::AbstractConsumer / http://www.Adobe.com/2006/Flex/MX/internal:messageHandler ([C:\autobuild\3.4.0\frameworks \projects\rpc\src\mx\messaging\AbstractConsumer.as:765])
    at mx.messaging::ConsumerMessageDispatcher/messageHandler() [C:\autobuild\3.4.0\frameworks\pr ojects\rpc\src\mx\messaging\ConsumerMessageDispatcher.as:261]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.messaging::ChannelSet/messageHandler() [C:\autobuild\3.4.0\frameworks\projects\rpc\src\ mx\messaging\ChannelSet.as:1457]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.messaging.channels::NetConnectionChannel/receive() [C:\autobuild\3.4.0\frameworks\proje cts\rpc\src\mx\messaging\channels\NetConnectionChannel.as:318]

    Steven,

    You have run into a bug Photoshop Mac involving events, a description, the workaround and the library are described here:

    http://cookbooks.Adobe.com/post_Creative_Suite_5_Extensions_and_Photoshop_CS5_Redu-17727.h tml

    You can download the library.swf as a sample project from this page. As you've seen, the problem is that after receiving an event, the active document as well as other references of Photoshop DOM will be null. Workaround kicks Photoshop by the valid DOM, essentially re - run your function with a valid context.

    As the book post was written by Bob, I used workaround often successfully, of course we are also working closely with the team of Photoshop for repair. Once again, as you have seen, it is a problem for LCD screens, but it is also necessary in frameworks such as PureMVC as well as FlexUnit.

    Here is my version of a line of code, that I put at the top of each function called by these events.

    If (Utilities.shouldForceClean ()) if (PsEventScrubber.getInstance () .forceClean (this, arguments, arguments.callee)! = null) return; Workaround

    Note you mentioned creating a static function, with a static, you can't use 'this', simply replace this with your class:

    If (Utilities.shouldForceClean ()) if (PsEventScrubber.getInstance (.forceClean (MyClassHere, arguments.callee, arguments))! = null) return; Workaround

    Finally, the Utilities.shouldForceClean () is my simple check that prevents even to make the call. Although Bob wrote PsEventScrubber to do an audit of the platform, I put this to avoid calling even when not on a mac. It is also for a function that could detect bugs and avoid making the call in a future version, when it is fixed.

    /**

    * Utility to specifically target Photoshop Mac Bug - Ps Bug # 2584580

    */

    public static void shouldForceClean(): Boolean {}

    Return (flash.system.Capabilities.os.indexOf ("Mac OS") == 0);

    }

    Let us know how it works for you.

    -Mark

  • How to treat you with button interrupts on the 537 ez - lite

    Sorry for the newbee question, but I'm just familiar with the jury of 537 ex - lite.  I want to use the buttons to cause an interruption and then this interruption with a service code.  What I have to write a separate VI to handle the interrupt, or I can put it in a structure of the event in the vi that I write...?  Finally, I would like to be able to write an event-driven state machine in the fins... In the attachment, I can button scan and as he lights a led, but I would use the interrupt enable and get the number of the button as an event / box pair to do the same thing... How?

    Thanks for your suggestions.

    Hummer1

    Hummer1,

    The call library function Node (COLD LAKE) that is configured to run with the dll works with features that sees what button was pushed on the BF537. You can double-click that and see what dll it points to and what function it interacts with. Since the deployment of resources target shipped you will have to compile the code LV, in C and machine code using a 3rd part of the compiler is just to do the work of generating C for you. You could probably accumulate the feature yourself using just the screw provided but endearing tape in these support libraries is better because you do not have to reinvent the wheel and lots of screws that you would end up with are actually just wrappers for other DLLs.

  • Keyboard and a chain of control to the screen

    I feel a strange behaviour when I use the keyboard (OSK) and a chain of control on the screen.

    I develop an application that you can use the OSK to enter some data on a touch screen with no physical keyboard. I have a Machine to States Event-Driven set up at the key event to the bottom when a word/characters are entered and the user presses the Enter key on the OSK. I noticed that if I probe the wire wuen Vcle I press the Enter key on the OSK, it appears like a back press. Not much, I thought, just to see if the Enter key is pressed and continue on.

    When I went to test my program, I noticed that my values were as if nothing has been entered. Digging a little further, I noticed that my original data are still there if I press the BACKSPACE and delete the return order. Probe string wire in the control of the chain indicates that the value comes back as an empty string in my control channel even if my entire string is physically still there. I can press the BACKSPACE (remove the carriage return) and see my original text. What, in my view, that happens, is when I press the Enter key on the OSK, it inserts something and moves my text upwards or downwards, and when I use the node property to retrieve the data in the control of the chain, I get an empty string.

    How did you get around this? I would like to hear your solutions.

    Have you tried right-clicking on the control of the chain (assuming that it is "ID mould to enter") and by assigning the value 'limit to the single line "? Sounds like your settings cause hit enter to add a line instead of the finish of your entry change. (You can also change the behavior of 'back' in your settings of LabVIew)

  • launch of vi VI

    Pretty simple, I have a vi (main VI) who gather all data and an another vi which process the data.  I would like to have a button that opens once pressed the other VI.

    Thank you

    Roddy

    R & D

    LV2009

    It must break down the problem into two parts: respond to a button and launch a VI.

    The first part is easy, as is to use a structure of the event (assuming that you have the full or higher development system). There are provided with LabVIEW examples that show you how to use a structure of the event. Just search for "event-driven".

    The second part depends on what kind of "launch" you want to do. If you just want to pass the control to the other VI then you just need to have the Subvi on the block diagram of VI calling when you process the key event. Just then the data into it through terminals of the Subvi. If, on the other hand, this another VI must execute as caller VI then you must start the VI dynamically using VI server. This will launch the second VI and then returned to the caller so that now runs the two screws. You can do this using VI server with something like this:

  • MOKE initialization function program

    Hello

    I am currently working as an intern at Drexel University and I am currently working with a program that operates a facility of Kerr magneto-optique effect Magnetometery. The program communicates with a series of instruments (specifically a diet, Gaussmeter, sourcemeter so some equiment to collect data) for the operation of an electromagnet that sweeps back a field a sample to get a cycle of magnetic hysteresis for the sample. To calibrate the instrument, we run a demagnetization (a separate LabVIEW program) program, which brings the remnant magnetization until about 3-5 Oe, which is acceptable. However, during the initialization of the main program (attached) by clicking on the arrow of execution in the toolbar, the field immediately falls to about-20 Oe. In this case before you set the parameters of the front panel and press the "Run" button in the VI himself. Can anyone help me identify where in the program it is initialized (if there is a problem with the program)? The electromagnet is controlled by the power supply, so it is likely that the program defines the power supply to a certain tension as opposed to the magnet to a certain intensity. I am extremely inexperienced with LabVIEW, screenshots, if any, would be extremely useful.

    Thank you very much for your help,

    AF

    EDIT: The password for the block diagram is "nosteven".

    OK, the first thing is you need to get training. There are free tutorials available online that makes you in the right direction. In what concerns your previous experience, neither will be particularly useful in this endeavour. MATLAB because he is not a strongly typed language and Python because it is a programming environment based on text control flow. The two languages approach solving problems in a way that goes against how you think about problems in LV

    In general, I would recommend (and I realize that some of this explanation could doesn't mean anything for you right now, but it will offer a "point of aim" at least) an event driven structure that implements a state machine. My feeling is that a large part of what will be the final state machine already exists in the logic using the enumeration. The first thing to do is to change the enumeration of a type definition, replace it everywhere wherever it occurs and then go through the States to give the labels from the enumeration which are descriptive of what happens in this State. Also add a new State called "initialize" to do the stuff that is currently outside of the loop.

    With regard to the structure of the program itself, you want a while loop with a structure inside the event. The three events, you will need are a time-out event (this is where the state machine will go), a change event of value of button to activate the timeout and a value change event (new) stop button to stop the program. As it is written now it only runs a test and then stops. How to enable and disable the time-out is by changing the timeout value passed to it. -1 disables the event, any positive value sets the timeout for that number of milliseconds.

    For Modularization, go through the code and start looking for bits of code that are duplicated and then put into subVIs.

    Who will help you get started. New postal code you produce and we will do our best to guide you along the way.

    Mike...

  • State machines are well... Thanks to you all

    Thank you!!!

    For several months I struggled to learn how to use LabView, at all... much less efficiently.  With the help of the forum I was finally able to combine a display for our Lab Manager.  It was slow and unresponsive no and completely event-driven and completely unmanageable.  With the help of several key members of the forum (and I'm sure that the wishes of the rest) I learned about the State machines, queues and other good habits.

    Within 2 days, I rewrote the project as a state machine and it works beautifully.  It uses a typedef enum for the definitions of the State and a sub.vi for the variable initialization.  The BD is readable, simple, and can be seen on a single screen (almost... have to scroll down a bit to see all error.)

    I can't thank you all enough.

    Hummer 1


Maybe you are looking for

  • Whence this accusation?

    Earlier, I tried to buy a song on the iTunes store, but there were two problems: (1) I had apparently managed to get rid of the agreement between the iTunes store and my PayPal account, a couple of months ago. (2) my internet is slow After meeting th

  • I can't remove Flight mode of Apple Watch, need help!

    When I turn airplane mode on my iphone 6 does the same thing on Apple Watch (which is ok), but when I disable the airplane on the Iphone mode, Apple Watch keeps saying it is only locked due is on airplane mode, in other words, after you apply the cha

  • HP 8440p: HP 8440p "plugged in, not charging".

    I bought a hp laptop 8440p last month.my laptop developed a particular problem. When I connect my charger to it, it starts to load, but after a while it stops and the battery icon shows "plugged in, not charging". Then after some time starts again...

  • multimedia audio controller

    I recently formatted my windows xp home edition and install windows xp pro edition after which I noticed I lost sound... I tried several times to download and reinstall the drivers, but for some reason, he gets to halfway through the installation, an

  • Slow Windows XP performance and video freeze

    original title: WINDOWS XP slow performance and video freeze Are there programs MS FIX - IT for WINDOWS XP fix the slow performance and video freezing? What is the best protection for malware, worms... Also, when I run that these free fix it offers,