Image control- setting images conditionally

Hello All!
I am a Labview newbe and I need help with image control. I have a set of two images- one static png and one animated gif.  I want to use these two images as an activity indicator in a picture box or other control.  I can send one or the other to the picture box programmatically in the function block screen but I do not understand how to set the image control conditionally for condition "A" and condition "B". The code below is for two separate picture boxes.  My goal is to select one image to show in a single box depending on conditions "A" or "B". The two conditions are "not running" and "running". Can this be accomplished with boolean logic?   I also hope to use such a control in the future for multiple conditions to help illustrate to the user a specific hardware item to pay attention to. I am using LV 2014 on a Windows 7 box. The built VI will be used on Windows 7 and XP. 
-cmengineer

Happy Sunday Evening All!
I have included all files in the zip file.  I changed the image for one state to a jpeg and changed the control to a jpeg control.  This works to demonstrate the state change but my goal is to use the gif which is shown as decoration in the middle of the vi front panel as the running state indicator.
Now that I have tested it, I think I need to work on the file write operation as well.  Instead of getting my four points of data in a row, I get one or another.  Always fun!
-cmengineer
Attachments:
MyPTA_Monitor2.zip ‏1554 KB

Similar Messages

  • Keep focus in a control until certain conditions are met?

    Hello,
    Is there a way to keep focus at a control until certain conditions are met?
    For example, if I might want to keep the focus set to a text field inside a tab unless the text field contains something valid.
    If user tries to switch to different tab without having valid text inside the text field, I would like to pop up a stage/dialog and abort the tab switching.
    Please help!
    Thanks.

    Hi. Here is an example:
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.*;
    import javafx.scene.layout.*;
    import javafx.scene.paint.Color;
    import javafx.stage.Modality;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    import javafx.stage.WindowEvent;
    public class SSNValidation extends Application {
        public static void main(String[] args) {
            launch(args);
        @Override
        public void start(final Stage primaryStage) {
            primaryStage.setTitle("SSN Validation");
            Button btn = new Button();
            final TextField tfSSN = new TextField();
            StackPane layout = new StackPane();
            Scene scenePopup = new Scene(layout, 424, 154, Color.TRANSPARENT);
            final Stage stage = new Stage();
            stage.initModality(Modality.APPLICATION_MODAL);
            stage.setScene(scenePopup);
            stage.setOnCloseRequest(new EventHandler<WindowEvent>() {
                @Override
                public void handle(WindowEvent event) {
                    tfSSN.requestFocus();
            tfSSN.focusedProperty().addListener(new ChangeListener<Boolean>() {
                public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, final Boolean newValue) {
                    if (!newValue) {
                        if (tfSSN.getText().length() < 9) {
                            stage.show();
            final TextField tf2 = new TextField();
            btn.setText("Submit");
            VBox root = new VBox();
            root.getChildren().addAll(tfSSN, tf2, btn);
            primaryStage.setScene(new Scene(root, 300, 250));
            primaryStage.show();
    }

  • How to set the conditions for item deletion approval workflow?

    Hi,
    I have created approval workflow for item modifications ie, when user try to modify an item, it will send a mail to Project Manager. For that I set the conditions in Change the behavior of the overall task: 1. When the task process starts 2 . When the task
     process completes .
    Change the behavior of the single task: 1.when a task is Pending.
    [I followed this https://www.nothingbutsharepoint.com/sites/eusp/Pages/5-Steps-to-Enhance-SharePoint-2010-Approval-Workflow.aspx ]
    My Requirement is that I want to set this same workflow for the scenario: when the user deletes an item it will send a mail (intimation mail for item deletion) to Project Manager. here i dont want to send modification mails when user deletes an item.
    When user modifies an item: 1. intimation mail, 2. Approve/Reject mail 3. intimation for approval / rejection mail.
    When user deletes an item: 1. intimation mail.
    How can we set it in one approval workflow?? where i have to set the condition for sending either item modification mails or deletion mail.
    Thanks,
    Praveen ji

    Hi,
    According to your post, my understanding is that you wanted to start approval workflow when item deleted.
    You should first make some changes to trigger the workflow when you delete the item.
    You can use the Event Receiver to achieve it.
    In order to trigger workflow on item delete you need to create event receivers and from event receiver call the workflow already attached with list.
    http://ravendra.wordpress.com/sharepoint-workflow-on-list-item-delete/
    You can also create custom action to start the workflow, you can refer to the following article, then modify the workflow as your need.
    http://blogs.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=50
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • What are the impacts of IB control set to No at Master level

    What are the impacts of IB control set to No at Master level, but the item is serialized at master and Org level. These are service items.

    What are the impacts of IB control set to No at Master level, but the item is serialized at master and Org level. These are service items.

  • PCH Logical Database - Set stucture conditions

    Hi All,
    Can anyone tell me what is the use or how to use the Set structure conditions in PCH logical database.
    Best regards,
    Aravind

    Hi Sachin,
    If you use PCH logical database in a program, on the selection screen you will see a button called Set structure conditions, by which you can enter some conditions.
    I was wondering how to use the same.
    Regards,
    Aravind

  • Title & Menu Buttons not working correctly on remote control/ set top player but work in preview.

    Title & Menu Buttons not working correctly on remote control/ set top player but work in encore preview. This only happens for a Blu ray project. When a user presses the menu button it should go to the previous menu they were on but it goes to the main menu. When they press the title button they should go to the main menu but it doesn't do anything. My DVD projects work as expected.I've tried creating a new "test" project with different footage and still get the same undesirable results.
    Overrides grayed out and set to "not set" for timelines and menus.Project settings and build are set to blu ray. Also I've noticed when I preview a Bluray project the preview window shows a red colored disc next to the Title button when viewing the timelines and green when playing the menus but not so for a DVD project it displays red if motion menus and or timelines are not rendered/encoded. I'm not using motion menus and all the media is encoded according to the project specs.
    I've searched this forum but couldn't find the answer. Any help or redirects to a solution would be appreciated. Working with CS5. Thanks.

    I found out on my Samsung Blu ray player the remote has a tools button on it that brings up audio, angle, chapter selection etc.and also title selection which is actually the menus and the timelines unfortunately. It's not as easy or direct as last menu selected but it's a workaround at least. I also plan on using a pop up menu. I'll let you know.

  • 2 set of conditions to use in a Single Select query in procedure

    Good day
    I have one procedure, want to use one 2 set of conditions in Where clause
    like
    where condition1 < value
    AND condition 2 > value
    AND condition 3 = value
    where condition 1 > value
    AND condition 2 < value
    AND condition 4 = value
    How we should combine in a single select statement where cluase.
    Please accept my sincere thanks first and looking your advice asap.
    Regards
    M.K.Thamaraiselvan

    Hi,
    While we use this procdure to run at that time it is not picking up any values also it is not running in it, taking very long time.What is not picking the value? Where clause is not picking the value, or
    where clause is picking the value but you are not getting the output.
    If it is you are not getting the output.
    I suggest to run the sql query individually without pl/sql and check if the records actually exist.
    Since it is taking very long time, I feel the sql query is actually being executed in the database but could be you are not getting the records (check if records actualy exist or if you are correctly passing the where clause)
    Regards
    Anurag
    PS:
    v_sql_string := 'SELECT table/viewname.colomn_name,'||v_order_by||','||v_report_line ||','||
    v_output_line||',table/viewname.check_amount'||v_from_clause||v_where_clause||' ORDER BY '||v_order_by;So you are using dynamic sql, can you add an extra line
    dbms_output.put_line(v_sql_string);
    and check what the actual query is formed by pl/sql, if you are satisified the query is correct run it through sql plus and check why oracle does not give the result. MAy be there is no records satisfiying this condition. And I am sure you meant either table or viewname in (table/viewname.colomn_name) and not something like what you posted.
    Edited by: Anurag Tibrewal on Oct 8, 2009 9:15 AM

  • ALV Question : How to set filter condition which contain dummy character?

    Hi,
    I want to set filter condition of ALV dynamicly (In my code),
    for example, set 'X' as filter condition in column "Description",
    I add the code successfully, but I can't get the correct filtered result, Why?

    Please post ur code here.
    U have to get a  handle to the IF_SALV_WD_FILTER interface
    data ref_filter   type ref to IF_SALV_WD_FILTER  .
    ref_filter ?= m_config_model->IF_SALV_WD_FIELD_SETTINGS~GET_FIELD( 'FIELD DESCRIPTION' )
    ref_filter->CREATE_FILTER_RULE( 
                       low_val = 'X'
    Now when u load the ALV tabl;e u should see a X value in the filter row, for the column 'FIELD DESCRIPTION'  and the filter should happen.
    As I said, pls paste ur code here.

  • Info set query condition

    we have a infoset query to generate a list of parked logistic invoices, we use the same vendor and the same T-code : MIR7 to generate park document, but I can see only the park documents generated by my collegue throgh this info set query.
    I can't see the park documents generated by me throgh this info set query, we are using the same T-code MIR7 and same query.
    why this happen? Is someone set the condition of this query, so i can't see the parked document generate by my self. I can see these parked document(both my collegue and mine) through MIR6

    any idea from query design point of view? thanks

  • How to set a condition to true if two items are both null ?

    Hi,
    I want to set a condition to true if two items P42_FICHE_ID and P42_AGENT_ID are both null. How to do ?
    Sorry for being so dummy but could not find the answer in the Oracle documentation.
    Regards,
    Christian

    Hello Christian,
    You could use a PL/SQL Expression like (:P42_FICHE_ID IS NULL AND :P42_AGENT_ID IS NULL) or NOT(...) whatever you need.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

  • Duplicated report with different set of conditions

    I have just duplicated a report in 10g and apparently I'm not allowed to have different conditions/limitations in the new report. If I change a condition in, say, the new report, it affects the original report and the condition will change according to the changes made.
    Is it really true that you can't have different sets of conditions in two otherwise similar reports (one duplicated from the other)?
    Thanks in advance!

    Had to chime in on one thing here.
    I agree with Michael that most companies SHOULD use Disco Plus as their primary Disco tool for developers and maybe have one copy or so of Disco Desktop for a couple of little things (ie: subqueries - which aren't really sub-queries but that's another story), saving to disk, etc.
    At many clients and presentations I strongly recommend the ol' 95 / 5 / 1 rule being that you have 95 users using Viewer, 5 users using Plus and maybe 1 with Desktop (and most likely that's the 1 with Admin as well).
    However - and it's a big however - is that I've seen many clients that have a problem with the way their situation has been set up (ie: their intranet, their databases, their security, their iAS, etc. - so that Disco Plus runs so much slower than Desktop, that developers end up keeping Desktop and using it!
    It's a crummy situation but when using 3 tier architecture, there seems to be a mental block with many companies that you have to up keep that 3rd tier (ie: the Disco Server for Plus / Viewer).
    And as for the $1200 bucks - again Michael is quite right. Of course, no company would have many more client / server copies out there that they've 'registered' ... right?
    So, unfortunate though it may be, I think keeping the Disco Desktop examples may prove valuable for many developers ... until that day Oracle finally ejects it.
    Russ

  • Control/set a limit for file attachment

    Hello,
    I would like to know if there is a way to control/set a limit for file attachment in Workbench ES. e.g. Assign Task > Attachments & Notes.
    Can you please advise.
    Thanks,
    Han Dao

    No. You would have to customize Workspace to do that.
    Jasmin

  • Set complex condition of process flow transition by OMB skript

    Hi,
    i would like to set a complex condition for a process flow transition with OMB+.
    If i use:
    OMBALTER PROCESS_FLOW 'somename' ADD TRANSITION 'yyy' FROM ACTIVITY 'a' to 'b' SET PROPERTIES (TRANSITION_CONDITION) VALUES ('some complex condition')
    the skript sets the condition but the radiobutton within the transition condition editor still point to 'Enumerated Condition' and the complex condition editor sheet, where my condition should be printed is empty. But the Object details within the Process editor shows my condition correct.
    We use 11gR1 11.1.0.7.0 (OWB & DB).
    Has anybody a clue if i am able to set the transitioncondition to COMPLEX ? Or is it a bug ?
    Your Help is appreciated, thanks
    Thomas

    Hi Thomas
    You use the property COMPLEX_CONDITION on the activity for complex transition condition expressions.
    Cheers
    David

  • Setting a condition for preferred drill path.

    Is there a way we can set a condition for preferred drill path in hierarchy?
    Our requirement is to skip levels if they have no values..
    Thanks in advance.

    No you can't (90% sure)
    But may be you have ragged hierarchies, have you seen this blog on how to model it ?
    http://www.rittmanmead.com/2007/06/21/obiee-data-modeling-tips-3-ragged-hierarchies/

  • Parent control setting

    I am trying to purchase Gems in a game I am playing. And when I try to pay for it, something about apps parental control setting pops up? What am I doing wrong? I have my card issued and enough money on it???

    Settings > General > Restrictions
    In-App purchases have been disabled. If you want to re-enable in-app purchases, you need to change the setting.
    It's a good idea to leave in-app purchases disabled. Some unscrupulous companies charge ridiculous amounts for in-app purchases. This often catches people by surprise.

  • Structural Reporting::Setting Structure Conditions

    Hi,
    In the Structure Conditions Dialog box, you can specify which conditions objects must  fulfill if they are to be displayed in the structure.
    If you want to report on positions assigned to a particular Org Unit along evaluation path PLSTE, but you want only those positions to be displayed that are assigned to a particular job. You can make this a structure condition
    I used SAP Easy Access path Human Resources > Org Management > Info System > Org Unit > Org Structure > Org Structue with positions
    In the following screen, I entered the Org Unit. Checked the check box under Status
    On the Structure Display/Mainatainence Screen, I tried using Data Structure and Set Structure Conditions tabs, but am not sure of how to proceed. After clicking on Set Structure Conditions, a pop up opens- not sure of what to enter in this table too.
    Regards,
    AM_BLR

    Hi,
    1st column "Check object type" - the objects that you want to see in your report, e.g. positions -> S
    2nd column "Root object type" - object type of object where your search should start, e.g. organizational unit -> O
    3rd column "Root object ID" - ID of root object
    4th column "Evaluation path" - how object should be identified starting from root object, e.g. all positions starting from root and velow -> O-O-S
    5th column "Status vector" - what status to use, e.g Active objects -> 1
    Cheers

Maybe you are looking for

  • HRALXSYNC Background job is cancelled

    Hi, I scheduled HRALXSYNC report in background but it is executed for some time and then it is Canceled and the job type is execute immediately.  Here am pasting the details of scheduled job. Date            Time           Message text               

  • Why does Premiere Pro 6.0 become unresponsive with longer video sequences?

    Laptop A works fairly well with small Premiere Pro CS6 projects of 9 minute duration. Project is on external drive connected via USB2. Processing time is long, but at least I can get all my work done. However, when I use Laptop A for larger projects

  • Custom Jsp in Screen Flows

    I am trying to implement a screen using a custom jsp in a screenflow wthin studio 6.0. Following the documentation and examples with 5.7 I am using the Fuego tag library within a JSP to output a simple message variable. However I am currently unable

  • 10.4.4: Safari crashing immediately upon loading

    Since I upgraded to 10.4.4, Safari is crashing the moment the window opens, before my home page (news.bbc.co.uk, in case there's something with that that's funny) begins to render. All Dashboard widgets similarly quit unexpectedly: their background g

  • Re: I need basic ABAP OOPS material to learn OOPS concepts

    Hi Anitha, Can you send me the material which you have!!! [email protected] Thanks in advance!!! Chandra