Using class data in actor user interface?

This may have been asked before but I've not been able to find anything so far...
I'm starting to play with the Actor framework in LV2012 and have run into a dilemma.  The system I'm setting up is a fairly common one consisting of test stand control, data acq, logging, control interface, and a "spectator" interface that displays live data for the user(s).  To accomplish this, I have a top level actor that implements the control interface and logging which launches several nested actors that handle stand control and data acq across multiple front ends.  While this works very well for data that comes purely from the measurement front ends, I'm having trouble cleanly integrating meta-data that is generated by the user. 
Each message coming from an actor farther down the tree can be logged by the top level actor by maintaining the log file information in the class private data.  However, any data generated on the UI of the Actor Core cannot be logged by using the class data in the Actor Core as there is no guarantee that the class data in the Core is the same as that in the message handler, correct?  For instance, say my class data has a log file path and a group name for the TDMS write VI.  If my user wants to add a note to that group, I could use the class data in the Actor Core to write the note as a property.  No problem.  But what if the active group is decided by a message coming from my front end?  Then the group name in the parent actor core is different than the one in my Actor Core with the UI.  The note would land in the wrong group.  So far I have a couple ideas on how to make this work:
1.) Send relevant update messages from the Actor Core to the top level actor using self-to-self enqueuer so that the class data matches.  This seems clumsy as it would require a lot of code duplication.
2.) Remove all actual functionality from the Actor Core.  Any UI event would pass data via a message using the self-to-self enqueuer.  This still seems clumsy, but at least would require less duplication (though the same amount of messages).  It would require passing references to all feedback indicators into the class data.
3.) Consolidate all metadata generation in the Actor Core and create an additional actor which only logs data.  Any message containing data for logging would be forwarded from the top level actor to the Logging actor.  This would provide a consistent strategy for logging data produced by both the user and other actors, and therefore seems like the best idea.
Does anyone have thoughts on this one?  I'm still pretty undecided as to how best to solve this little issue, and I'm sure others have encountered this before. 
Thanks.
CLAD

Hi testingHotAir
I just wanted to check in to see if things were working for you with your approach to the solution. It looks like you have a pretty good structure going so it seems like things are set. If you still have questions could you post an example of what you are trying to accomplish? I know my brain sometimes has a hard time grasping the concept of words and has an easier time with actually following code paths.
If things are working then great!
Regards,
James W.
Applications Engineer
National Instruments

Similar Messages

  • What is the best way to get data to a user interface?

    Hi,
    I'm using labview 6i. I have an application with a handful of "core" vi's that actually run my application, doing the data acquisition, analysis, and control. I am currently using these same vi's for my user interface. I also have a number of vi's that contain menu's for configuring the "core" vi's. My questions is, what is the best way to seperate the "core" vi's from the user interface vi's. Global's, data socket, control references, others?
    Thanks for the help.

    Hi Sal,
    I have been a strong advocate of control refnums ever since LV 6i hit the streets. I recomend you look into using them to provide this conectivity.
    You could accomplish this by using a variation on the following.
    In your UI, create refnums for each of the controls or indicators that must be monitored or updated. Pass the appropriate refnums to each of the "core.i's" at program init time. Inside each of the core.vi's, use property nodes to read the control's values when appropriate and similarly for display purposes. (Note: Not all boolean mechanical actions are compatible with this technique. In those case you will have to explicitly write false values after find the control to be true or vise versa).
    By using this technique, you can keep the UI diagrams clea
    n. Depending on your app. the UI diagram could consist of the init's I mentioned above, and a while loop that watches if it's time to exit.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to use own style sheet in user interface templates to change buttons, fields look

    I want to use my own style sheet to change the appearance of buttons, form fields etc. while applying my own user interface template. I know I can create an unstructured UI template to change logos, body color etc. but how do I apply css to buttons, fields generated by the portal components form wizard ?
    If this is not possible, how do I create my own form and get the same functionalities of a wizard generated form ?
    Thanks.

    Mrinal,
    I have solved that problem fortunately.
    What I did was to create my own unstructured user interface template. In the unstructured UI template, you can use style.
    for example, in between the <head> tags, write <style> tages and create own classes for buttons, textboxes etc.
    Then write a javascript to assign those classes to the buttons. Call the javascript function on OnLoad event in <BODY> tag.
    That will do the job.
    for example you have a style class called buttonclass for buttons.
    <script langauge=javascript1.1>
    function setstyle(form) {
    for (var i=0; i<form.length; i++) {
    if (form.elements.type == 'button') {
    form.elements[i].className = "buttonclass";
    </script>
    <BODY onLoad = "setstyle(document.forms[0]);">
    hope this helps.
    Mainak

  • Class Data Sharing for User Defined Classes

    i am using jdk 5.0 . JDK 5.0 supports class data sharing for system level classes. Is there any way a class data sharing be done for a user defined class?

    Samantha10 wrote:
    Is this class data sharing possible for user defined classes also? i have a singleton class which i am invoking through a script. The script has been scheduled to run every 1 sec . Since it is being invoked every 1 sec hence the singleton pattern is failing . Hence if the this class data sharing is possible then the singleton pattern can be made applicable.If you have a single process and you have a single class loaded by two different ClassLoader instances
    in some respects they will be two different classes
    if (class1 instanceof class2.getClass())returns false.
    This is not the case for Java core classes because they are always loaded by the SystemClassLoader.
    You write you
    have a singleton class which i am invoking through a script. What approach to you use to invoke the singleton?
    I am trying to figure out if you launch a new JVM every second...
    Maybe you can use Nailgun.

  • Using Captivate with a localized user interface

    Summary:
    I'm working on an Adobe Captivate 2 project describing an
    application that has been created in several languages.
    I'm trying to follow the Captivate 2 help topic "Using Adobe
    Captivate with a localized user interface", to create localized
    movies for each language, but it does not work as described in the
    help topic.
    Can anyone help me with this problem, see below "What went
    wrong?"
    Steps to reproduce:
    According to the help topic:
    1. Record a source langauge file from the application (in my
    case swedish).
    2. Export the text captions to a Word document "Export
    project captions and closed captions", and translate the text (into
    english).
    3. Record a new language file from the application, without
    any automatically included objects.
    4. Import all objects "Import slides/objects from other Adobe
    Captivate projects>Objects only" from the source language file
    created in step 1.
    5. Import the the caption text "Import project captions and
    closed captions" from the translated file in step 2.
    What went wrong?:
    Step 5 does not work, I cannot "Import project captions and
    closed captions" into the new language file, the menu text is grey.
    Product version:
    Product: Adobe Captivate 2
    Version: 2.0.0 Build 1177
    Platform information:
    Hardware: Qbic pc x86
    OS Version: XP Professional
    RAM: 1014 MB
    Color Depth: ?
    Display Card: Intel(R) 82865G Graphics Controller
    Resolution: 1280 x 1024

    Hi TekEl and welcome to our community
    For what it's worth, here is how I might try it.
    1. Record a project using either language.
    2. Perform a "Save As" to a different name.
    3. From the new project, export the Captions.
    4. Localize as necessary.
    5. Import the revised captions into the new project.
    I think the trick here is to ensure that you only attempt to
    import into the project that created the export.
    Cheers... Rick

  • Date Validate in User Interface

    Hi All
    I'm developing a web app using jdeveloper 11.1.1.3
    I have a Date field in the web page and I want to get validated it against the current system date.
    I want to do this once the user inputs the date without going to the server or without defineing a validater method at the EO
    Pl tell me how to this. And I want to desplay an error msg aslo
    Tx

    drop validate date time range from your component palette to your page and you can bind the minimum and maximium values to a method in your backing bean

  • Can I use Windows MFC to develop user interface for Adobe photoshop plug-in?

    Hi I need to have some of the controls like image list ( displaying thumbnail preview) and tree controls. I think it is difficult achieve the same using the ADM controls. I was wondering whether I am able to add winodws MFC class and launch the window from the PlaugInMain() function using DoModal().
    I tried doing it by adding the MFC class into the SDK samples provided with the Photoshop SDK. I got error like "object does not support this property".
    Thanks in advance.

    Right now, we don't have a cross platform answer.
    Most people are writing to the platform native APIs, or using some UI toolkit that works with the platform of choice. Larger plugin developers have their own UI code toolkits.
    ADM was always more problem than solution, and became too big a problem to maintain (you'll notice that our plugins that use ADM went away or became scripts).
    We're working on better solutions now.

  • Importing Excel files and using a search function to use specific data based on user selection

    Hi, I'm trying to create a search and solve function within Visual Basic.
    I want to use the combustion equation C8H18 + 20(O2 + 3.76 N2) = 8 CO2 + 9H20 + 47 N2 to determine flame temperature using
    9*Hf of C02 + 8 * Hf H20 + 47 Hf N2 = Hf C8H18
    I have all of the values of Hf in an excel spreadsheet but I want to be able to search the spreadsheet as my application requires the user to change to fuel (the C8H18 bit) which changes the value of Hf.
    Is there a way of searching that excel file each time I run my program?
    Thanks
    Jack

    Thanks for answering so quickly.
    I've used that method before, and I'm sorry I didn't specify. 
    This will be used as a student learning aid and so the application itself and the tables will be downloaded as a zip file and so I don't believe the line below would work?
    I've heard about including excel as a reference file in the application but I haven't been able to find any further information on that.
    Thanks again
    Dim oWBa As Excel.Workbook = oApp.Workbooks.Open("C:\Users\v-youtan\Desktop\colleagues.xlsx")"

  • Use Group Policy to disable user interface items and shortcut keys in IE

    Hi,
    We are creating a kiosk mode of IE with full restriction to the machines drives and other applications. For that we need to disable all the shortcuts keys like ctrl, shift, alt and combination of these keys. Can anyone help me on this. i want to done this
    through GPO. Client machines are windows 7 and we are having windows server 2008 R2 (AD server).
    Thanks,
    UdayaKumar S

    I need to disable the ctrl, Alt, and shift keys and combinations of these keys with other keys as for example, cltrl+H, Ctrl+o, ets., and most important thing is, we need to apply it only through GPO not by using any other tools/ applications.
    I'm not aware of any GPO-only methods to achieve your goal (hence my other suggestions), sorry.
    Others might comment here with their thoughts/suggestions/experiences..
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • How to create a form which uses graphical user interfaces(GUI) features.

    i'm working as a administrator in a private college..i have some problem..
    how to create a student registration form that uses most of the graphical user interfaces(GUI) features. The form should consist of the following features:- Label, Button, Check box, Radio Button, List, Panel and Layout. The GUI features must be functional.
    how to write that programme in JAVA ?
    please help me to get the code..

    So are you saying that this person is legitamately asking for someone to write up this student registration form, for use in some sort of production student registration application? Ok, if so, I apologize for jumping to the wrong conclusion. But, to me it sounds like a student hit the "Using Swing" chapter in the text and was given the following assignment:
    For this assignment you are working as an administrator in a private college and you need to solve the following problem:
    You need to create a student registration form that uses most of the graphical user interfaces(GUI) features. The form should consist of the following features:- Label, Button, Check box, Radio Button, List, Panel and Layout. The GUI features must be functional.
    You have two weeks.
    Now, I suppose that I could be wrong, if so, I apologize and go with the previous poster that said ask a comp sci student to do this for you.
    Lee

  • Class Data Sharing

    I am trying to benchmark memory footprint using the class data sharing feature on Solaris8 and Solaris9.
    I wrote a small sample java program MyApp.java as follows,
         import java.lang.*;
         public class MyApp {
              public static void main(String[] args) {
                   System.out.println("Java VM Version Number = " + System.getProperty("java.vm.version"));
                   long maxMem = Runtime.getRuntime().totalMemory();
                   System.out.println("Total Memory in bytes= " + maxMem);
                   long freeMem = Runtime.getRuntime().freeMemory();
                   System.out.println("Free Memory in bytes= " + freeMem);
                   long memUsed = maxMem - freeMem;
                   System.out.println("Memory Used in bytes= " + memUsed);
                   long t1 = System.currentTimeMillis();
                   for (int i = 0; i < 3; i++)
                        try
                             System.out.println("iteration count = " + i+1);
                             Thread.sleep(1000 * 60);
                             long t2 = System.currentTimeMillis();
                             long t3 = t2 - t1;
                             System.out.println("time elapsed in milliseconds = " + t3);
                        catch (InterruptedException e)
         $JAVA_HOME = /packages/sun/j2sdk1.5.0_02/jdk1.5.0_02/
         I ran it both the machines with the following options
         1)     $JAVA_HOME/bin/java �client �Xshare:on MyApp
         2)     $JAVA_HOME/bin/java �client �Xshare:off MyApp
         I ran the pmap command with �x option to get the readings
         A) Solari8:
              VM Option     RSS          Shared Mem          Private Mem
              Xshare:on     53584KB     50600KB          2984KB
              XShare:off     11456KB     7808KB          3648KB
              JDK1.4     29736KB     26392KB          3344KB
         B) Solaris9:
              VM Option      RSS          Anonymous mem
              Xshare:on     49384KB     3048KB
              Xshare:off     48576KB     3704KB
              JDK1.4     33656KB     2856KB
         These numbers repeat for multiple instances of the same application.
         I do not see the expected memory savings.
         I am trying to find out if I am missing any step in the process of using
         Class Data Sharing feature of JDK1.5
    Thanks!!

    Samantha10 wrote:
    Is this class data sharing possible for user defined classes also? i have a singleton class which i am invoking through a script. The script has been scheduled to run every 1 sec . Since it is being invoked every 1 sec hence the singleton pattern is failing . Hence if the this class data sharing is possible then the singleton pattern can be made applicable.If you have a single process and you have a single class loaded by two different ClassLoader instances
    in some respects they will be two different classes
    if (class1 instanceof class2.getClass())returns false.
    This is not the case for Java core classes because they are always loaded by the SystemClassLoader.
    You write you
    have a singleton class which i am invoking through a script. What approach to you use to invoke the singleton?
    I am trying to figure out if you launch a new JVM every second...
    Maybe you can use Nailgun.

  • To get data from another user?

    Hi,
    I am in "scott" user. I need to use the data from another user for example user "sys". i know the database name(i.e.user@database), but i dont know the password of that user.
    I think by using dblink it is possible. If it is correct then Is there any other way for this? If dblink is not correct way then please reply the correct way.
    Thanks & Regards,
    Shyam

    You only need to use a database link if the data is in another database instances.
    If you want to query data in another users schema on the same database you just need to have rights to do so. You either need to have
    select any table system privilage granted to the user (not recommended for security reasons)
    be granted select privalage on the object from the user
    be granted a role that has select privelges on the object you want to query.
    If you log in as system to the database you can grant select on the object to scott
    sql> grant select on <schema>.<table> to scott;
    now logged in as scott you can select from the table
    sql> select * from <schema>.<table>
    where <schema> is the other user and <table> is the name of the table that you want to select from.

  • Reg..ALV using classes

    i have displayed a ALV report with a push button 'HST'.
    When i select a particular line(vbeln) and click on pushbutton 'HST' it has to display me a interactive report based on the condition vbeln and posnr.
    can anyone help me with the detail code using classes..
    answers will be rewarded....
    regards,
    kumar

    Hi,
    Class ALV Specification
    Classes used:
    CL_GUI_ALV_GRID
    Example of ALV using Classes
    DATA: lcl_alv TYPE REF TO cl_gui_alv_grid,
          t_flights TYPE STANDARD TABLE OF FLIGHTS.
    SELECT * FROM flights INTO TABLE t_flights.
    CREATE OBJECT lcl_alv
        EXPORTING I_PARENT = cl_gui_container=>screen0.
    CALL METHOD lcl_alv->set_table_for_first_display
        EXPORTING
           I_STRUCTURE_NAME = 'FLIGHTS'
        CHANGING
           IT_OUTTAB = t_flights.
    CALL SCREEN 100.
    Example Details
    This is a simple example of the class ALV, we do not need to create, in this case, a field catalog because we are using the whole table of FLIGHTS and we will show all the fields that this table contains, we do this at the I_STRUCTURE_NAME = 'FLIGHTS' statement.
    The CL_GUI_ALV_GRID constructor needs the I_PARENT parameter to define where it will be show, in the example we set the entire screen to place the ALV.
    reward if helpful

  • PSE User Interface

    A year or 2 ago I tried PSE but ended up not using it based on the user interface.  Fonts, icons and elements within the interface were too small for me to see clearly with a native monitor resolution of 1920 x 1080.  At that time there were no options for the user to increase the size of fonts, icons etc. within the GUI.  I do not want to alter my monitor resolution.  Does PSE 9 have any options to increase the size of these screen elements?  I need to abandon my current image editing program (from another company) as it is so unstable.  Thanks.

    Wallace, check out this post...http://forums.adobe.com/message/3157040?tstart=0

  • "With Xib for user interface" option Disabled

    I was able to use the "With Xib for user interface" a couple of days ago but now when I try to create new object-c file with xib interface, I cant use the checkbox. It is disabled. What may be the problem? How can I create a file with xib again?

    Does the following Stack Overflow question help you?
    How to create new View Controllers in XCode 4.3
    If not, you're going to have provide more information for anyone to help you. What version of Xcode are you using? What type of Objective-C file are you creating? What type of project are you adding the file to?

Maybe you are looking for