Status Bar in LabWindows/CVI

         Hello,
         I'm new in LabWindows/CVI. Is it possible to compose a status bar, like in C#, in LabWindows/CVI? Moreover, how can I place the buttons, that I composed before, onto the tabs or decoration tools?
         Good days...

If you are intending a ribbon at the panel footer where to show informations and optionally add buttons, at present CVI does not have such a control.
It has a toolbar control, instead, so if you can reverse your design so that a toolbar can be used, you can find the control into <cvidir>\toolslib\custctrl\toolbar.fp
There is also a demo project that you can look at: you can find it with the example finder (Help >> Find examples... menu function).
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • In bar graph how should we get name of diminsion on perticular bar in labwindow/CVI ?

    in bar graph how should we get name of  diminsion on perticular bar in labwindow/CVI ?

    Can you explain your question a bit more? Can you add an example of what you want to obtain?
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to get bar graph in word in labwindow/CVI ?

    how to get bar graph in word in labwindow/CVI ?

    ashwinic9,
    spawning your question over more and more threads (the present one, this one and this other one) won't give you a faster answer; instead, it will irritate forum users! 
    Especially if you have at your disposal a fast way to perform a test. I pointed you some days ago to word report example, that writes a table to a word document: did you tried changing the graph into a bar graph and generating the report? I have done it for you and the result is OK, as you can see in the attached document.
    Now, since the example works well, there must be something in your particular situation that prevents the graph to be shown; that is: you must add some more data on your actual problem and maybe a small example that exposes the problem.
    But please: keep active only this discussion and let the other threads die! 
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?
    Attachments:
    wordreport.doc ‏38 KB

  • Double bar graph in Labwindow/CVI?

    double bar graph in Labwindow/CVI? like showed in attachment .
    Attachments:
    index.jpg ‏4 KB

    Hello ashwinich9, please do not open more and more threads, follow the discussion in the original thread where I have posted a reply.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How can I create a status bar at the bottom of a window ?

    I would like to create a status bar at the bottom of my main window similiar to "Internet explorer" has. I thought of using a tool bar but I can't see how to keep it positioned at the bottom of the window when the window is resizable. Any other ideas on how to do this the bar only needs to contain a small amout of text and maybe an icon or two.

    CVI doesn't have a status bar control on UI element like the one available in Visual Studio++. The best way to replicate this is most like through a string control that is resized and positioned to remain at the bottom of the window and colored to look appropriately. I have also seen the combination of a decoration and a text message used.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • Dynamic memory is corrupt (Labwindows/cvi 2010)

    I have a multi threaded application....where I have a buffers allocated ineternally in the threads,,...A user interface is present to abort the therad execution.
    Here is the code in one of the threads (NOTE: status is set by a user button to EXIT the program):
    int EthernetDataStructureThread (void *functionData)
        CmtSetCurrentThreadPriority (2);
        EthernetData GetData={0}, *data=NULL;
        data = &GetData;
        /* Use a buffer to read the data from the queue which is coming from TCP read with fresh data */
        const void *BufferEth;
        int BytesRead=0;
        int BytesWritten=0;
        char ReadErrorMessage[256];
        BOOL bitset = FALSE;
        if ( (BufferEth = (EthernetData*)malloc(EthernetDataSize)) != NULL)
            while ( !status )
                BytesRead = CmtReadTSQData (Queue_TCPRead_EthernetData, BufferEth, EthernetDataSize, TSQ_INFINITE_TIMEOUT, 0);
                memcpy (data, BufferEth, EthernetDataSize);
                /* Empty the queue so that we don't have data in next time. */
                CmtFlushTSQ (Queue_TCPRead_EthernetData, TSQ_FLUSH_ALL, NULL);
                //Pass on the data to the Main thread
                BytesWritten = CmtWriteTSQData (Queue_EthernetData_Main, BufferEth , EthernetDataSize, 1, NULL);
                if ( BytesWritten != EthernetDataSize)
                     free(BufferEth);
                    BufferEth = NULL;
                    exit(0);
                Delay(0.02);
            if (status && !bitset)
                free(BufferEth);
                BufferEth = NULL;
                bitset = TRUE;
        return 0;
    My problem is: free(BuffEth) always says Dynamic Memory is corrupt......When I put a breakpoint and keep seeing the resource tracking window, I can see it getting executed fine as the resource tracking window greys out the memory block....but then suddenly free wants to exceute again...and causes the "dynamic memory is corrupt" error.
    I am using LABWINDOWS /CVI 2010 SP1 in WinXP.
    Please help me ASAP....very much appreciated.
    Regards
    NITIN
    -Nharish

    Thank you for your reply Jackie.
    I am calling Free only once...there is an If condition there.
    See the attched video for my problem...Free frees the memory block (see the greyed out portion in resource tracking window but still the statement controls remains there and free executes again, throwing error).
    Do you  think it is some sort of bug in LABWINDOWS.
    See the attached video.
    -Nharish
    Attachments:
    FreeproblemLabwindows.avi ‏4781 KB

  • How create a tooltips in status bar icons

    the answer is in the title
    I want to create a tooltips on my application icon tray, in the status bar icon.
    I think that the solution is in the SDK, but i dont know to implement this code:
    source MSDN:
    #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
    NOTIFYICONDATA IconData = {0};
    IconData.cbSize = sizeof(IconData);
    IconData.hWnd = hwndNI;
    IconData.uFlags = NIF_INFO;
    HRESULT hr = StringCchCopy(IconData.szInfo, ARRAYSIZE(IconData.szInfo), TEXT("Your message text goes here."));
    if(FAILED(hr))
    // TODO: Write an error handler in case the call to StringCchCopy fails.
    IconData.uTimeout = 15000; // in milliseconds
    Shell_NotifyIcon(NIM_MODIFY, &IconData);

    If you're interested in the icons in the notification area, I think the easiest solution is to use the "System Tray Icons" functions in toolbox.fp.
    You can create a new icon calling InstallSysTrayIcon(), and you can also set the tooltip text.
    Vix
    In claris non fit interpretatio
    Using LV 2013 SP1 on Win 7 64bit
    Using LV 8.2.1 on WinXP SP3
    Using CVI 2012 SP1 on Win 7 64bit, WinXP and WinXP Embedded
    Using CVI 6.0 on Win2k, WinXP and WinXP Embedded

  • VXI-MIO-64E-1 in LabWindows/CVI

    I am using VXI-MIO-64E-1 module for Data Acquisition of differential Signal of 0-10V. By default Module is configured in -5V to +5V. I have used  status = AI_Configure (deviceNumber, chan, inputMode, inputRange, polarity, driveAIS) function for configure module to 0-10V unipoler but  still module is taking -5V to +5V not 0-10V.  here is LabWindows/CVI code for configuration of analog input module.
        buffer = (short *)malloc ( NUMPOINTS * sizeof(short));
       status = Init_DA_Brds (1, &brd);
       if ( status != 0 )
        MessagePopup("Error","Error in initializing VXI device");
        exit(-1);
       status = SCAN_Setup (1, NUMMODULES, ChannelList, ChannelGain);
       if ( status != 0 )
        MessagePopup("Error","Error in configuring VXI device");
        exit(-1);
       status = DAQ_DB_Config (1, 1);
       status = DAQ_Config (1, 1, 0);
       status = Select_Signal (1, ND_PFI_7, ND_IN_SCAN_IN_PROG, ND_LOW_TO_HIGH);
       if ( status != 0 )
        MessagePopup("Error","Error in Configuring SCAN_START input Line");
        exit(-1);
       InitializeTimer1();
       /* Module 1 Initialization Over */
       /* Module 2 Initialization Starts */
       buffer1 = (short *)malloc ( NUMPOINTS1 * sizeof(short));
       status = Init_DA_Brds (2, &brd);
       if ( status != 0 )
        MessagePopup("Error","Error in initializing VXI device");
        exit(-1);
       status = SCAN_Setup (2, NUMMODULES1, ChannelList, ChannelGain);
       if ( status != 0 )
        MessagePopup("Error","Error in configuring VXI device 2");
        exit(-1);
       status = DAQ_DB_Config (2, 1);
       status = DAQ_Config (2, 1, 0);
       status = AI_Configure (2, -1, 0, 10, 1, 0);
       /* Module 2 Initialization Over */
    What mistake i am doing to configure module-2 to 0-10 Volt input range.

    Hello Vishnu,
    Unfortunately, the VXI-DAQ cards are no longer supported, but you can find information about using them in the manual.  The VXI-MIO Series User Manual  has details about setting the input range in Chapter 3 on page 3-4.
    Good luck with your application!
    Meghan
    Applications Engineer

  • LabWindows/CVI Remote User Interface

    I have an application that I would like to modify to enable running the User Interface Panel from a remote
    computer. I have found articles on doing this with LabView. Can this be accomplished using LabWindows/CVI 7.0/7.1 ?

    Hello Hornsbyr,
    It is possible to have run remote front panels in LabWindows/CVI. First you would need the CVI Enterprise Connectivity Toolkit as an add on to 7.0 or 7.1. A web server is included in the Enterprise Connectivity Toolkit. By setting up and connecting to the web server, you will be able to monitor and control the operation of your front panel through a web browser. The INET_RegisterPanelAutoUpdate function is used to export a LabWindows/CVI user interface panel onto the Web. Once a client requests the image of the panel, the server periodically sends an updated image of the panel.
    The image of the user interface is sent as a JPEG image, but as stated in the LabWindows/CVI Function Help, the JPEG will not include your UIR's menu bar, title bar or borders.
    I have attached a document that further describes how to control your front panel remotely.
    Also, here is a link to the product pricing sheet: http://sine.ni.com/apps/we/nioc.vp?cid=11128〈=US
    Wendy L
    LabWindows/CVI Developer Newsletter - ni.com/cvinews

  • How do I turn off and on the icon size slider bar at the lower right status bar of a folder window.

    I have been trying for days to help a friend with a new iMac to turn on the icon size slider bar that on my iMac appears at the bottom of ever folder when it is open when in the "view" > "icon" mode.  I cannot find anything that discusses this slider bar.  I can turn this status bar off and on on both my machine and my friends machine, but I cannot turn off or on the slider on either machine. 

    This did not help.  I am a Mac User since 1984 and generally I am never stymied buy the Mac OS, but this one has me.   I can open and close the lower status bar, as you described, and that works fine for me because I have the icon slider bar already there and it works fine; however when I open the lower status bar on my friends machine there is no icon size slider bar, and I can't seem to find out how to get it there, as it is on my machine or at all. The icon size can be controlled from the View menu, but as a photographer, it is really handy to have it at the bottom of the folder window.  Thanks for trying. 

  • The status bar is pushed up at about 3/4 of the screen, so I can view onlu firefox at about 1/4, good thing there is a scroll bar, but below the status bar is white display? can u please help me, I want to drag down the status bar so I can have a full vi

    The status bar is pushed up at about 3/4 of the screen, so I can view only Firefox at about 1/4, good thing there is a scroll bar, but below the status bar is white display? can u please help me, I want to drag down the status bar so I can have a full view
    == This happened ==
    Every time Firefox opened

    Your code is absolutely unreadable - even if someone was willing to
    help, it's simply impossible. I do give you a few tips, though: If you
    understand your code (i.e. if it really is YOUR code), you should be
    able to realize that your minimum and maximum never get set (thus they
    are both 0) and your exam 3 is set with the wrong value. SEE where
    those should get set and figure out why they're not. Chances are you
    are doing something to them that makes one 'if' fail or you just
    erroneously assign a wrong variable!

  • How can I implement a status bar at the bottom of a resizable application?

    Hello all,
    I am a JavaFx newbie and I am implementing an application (a Sokoban game), with a menu at the top of the frame and a gaming area covering the rest of the frame. To support the game, I have to load images at certain positions in the gaming area.
    The game also includes a level editor with another menubar and where images are set to other positions.
    I implemented this in another view, swiching from the game mode to the level editor mode and vice versa is just done by setting the other view visible. Up to now this works, here the important statements building these details:
    Group root = new Group();
    gameView = new Group(); // for gaming mode
    le_view = new Group()   // for level editor mode
    MenuBar gameMenubar = new MenuBar();
    Menu menuGame = new Menu(bundle.getString("MenuGame"));
    ... building the menu items and menues ...
    gameView.getChildren().add(gameMenubar);
    ImageView buildingView[][] = new ImageView[22][22];
    for (nCol = 0; nCol < 22; nCol++) {
        for (nRow = 0; nRow < 22; nRow++) {
            buildingView[nCol][nRow] = new ImageView();
            buildingView[nCol][nRow].setX(nCol * 26 + 5);
            buildingView[nCol][nRow].setY(nRow * 26 + 40);
            gameView.getChildren().add(buildingView[nCol][nRow]);
    gameView.setVisible(true);
    root.getChildren().add(gameView);
    ... same stuff to build the le_view ...
    le_View.setVisible(false);
    root.getChildren().add(le_View);
    Scene scene = new Scene(root, 800, 600, Color.CORNSILK); Now I want to introduce a status bar at the bottom of the frame, which of course has to follow the bottom of the frame, if it is resized. And of course the menu and the status bar should not grow vertically, if the height of the frame is increased.
    The implementation seems to be easy with StackPane for the frame and one BorderPane for each mode.
    For the first step I only tried implementing the game mode with only one BorderPane (just setting the menu, the gaming area and the status bar each into a HBox and setting these three HBoxes at the top, into the center and at the bottom). I also tried this via GridPane and via VBox; I always get any erroneous behaviour:
    Either the menubar is visible, but the menus do not pop up the menu items, or the anchor point of the menu and of gaming area are set 100 pixels left of the left frame border and move into the frame when the frame width is increased, or the menu is set 20 pixels below the top of the frame, or HBox with the menu grows when the frame height is increased, so that the anchor point of the gaming area moves down.
    Can you describe me a correct construction of such a frame? Thanks in advance.
    Best regards
    Gerhard

    Hello Gerhard,
    Glad the code helped, thanks for a fun layout exercise.
    For the draft code I just pulled an icon off the internet over a http connection.
    If you haven't done so already place any icons and graphics you need local to your project, so that resource lookups like:
    Image img = new Image("http://www.julepstudios.com/images/close-icon.png");become
    Image img = new Image("close-icon.png");then performance may improve.
    Another possible reason for your performance problem could be that when you use a vbox, the vbox content can overflow the area of the borderpane center and might be sitting on top of the menu pane, making you unable to click the menu (which is what happens to me when I try that with the draft program with the vbox wrapping mod, then resize the scene to make it smaller). This was a trick which caught me and the reason that I used a Group originally rather than a vbox. I found a vbox still works but you need to tweak things a bit. The trick I saw was that the order in which you add stuff to the borderpane is important. The borderpane acts like a stack where the last thing added floats over the top of everything else if you size the scene small enough. For your project you want the menu on top always, so it always needs to be the last thing added to the borderpane, but when you swap in the level pane for the game pane, then back out again, the game pane can end up on top of the menu which makes the menu seem like you can't click it (only when the scene is sized small enough). It was quite a subtle bug which took me a little while to work out what was happening. For me the solution was to add just one vbox to the center of the border, and then swap the game pane and the level editor in and out of the vbox, that way the center of the layout always stayed behind the menu bar and the status bar.
    I added some revisions to reflect the comments above and placed some comments in the code to note what was changed and why.
    public class SampleGameLayoutRevised extends Application {
      public static void main(String[] args) { Application.launch(args); }
      public void start(Stage stage) throws Exception {
        final BorderPane gameLayout = new BorderPane();
        final Group gameView = new Group();
        final MenuBar gameMenubar = new MenuBar();
        final Menu gameMenu = new Menu("Mode");
        final VBox centerView = new VBox();
        centerView.setStyle("-fx-background-color: darkgreen");  // we set a background color on the center view to check if it overwrites the game menu.
        MenuItem playGameMenu = new MenuItem("Play Game");
        MenuItem levelEditMenu = new MenuItem("Edit Levels");
        gameMenu.getItems().add(playGameMenu);
        gameMenu.getItems().add(levelEditMenu);
        gameMenubar.getMenus().add(gameMenu);
        final StackPane levelEditView = new StackPane();
        levelEditView.getChildren().add(new Text("Level Editor"));
        ImageView buildingView[][] = new ImageView[22][22];
        Image img = new Image("http://www.julepstudios.com/images/close-icon.png");  // use of http here is just for example, instead use an image resource from your project files.
        for (int nCol = 0; nCol < 22; nCol++) {
          for (int nRow = 0; nRow < 22; nRow++) {
            ImageView imgView = new ImageView(img);
            imgView.setScaleX(0.5);
            imgView.setScaleY(0.5);
            buildingView[nCol][nRow] = imgView;
            buildingView[nCol][nRow].setX(nCol * 20 + 5);
            buildingView[nCol][nRow].setY(nRow * 20 + 40);
            gameView.getChildren().add(buildingView[nCol][nRow]);
        final VBox statusBar = new VBox();
        final Text statusText = new Text("Playing Game");
        statusBar.getChildren().add(statusText);
        statusBar.setStyle("-fx-background-color: cornsilk"); // we set a background color on the status bar,
                                                              // because we can't rely on the scene background color
                                                              // because, if the scene is sized small, the status bar will start to overlay the game view
                                                              // and if we don't explicitly set the statusBar background the center view will start
                                                              // to bleed through the transparent background of the statusBar.
        gameLayout.setCenter(centerView); // we add the centerview first and we never change it, instead we put it's changeable contents in a vbox and change out the vbox content.
        gameLayout.setBottom(statusBar);
        gameLayout.setTop(gameMenubar);   // note the game layout is the last thing added to the borderpane so it will always stay on top if the border pane is resized.
        playGameMenu.setOnAction(new EventHandler<ActionEvent>() {
          public void handle(ActionEvent event) {
            centerView.getChildren().clear();  // here we perform a centerview vbox content swap.
            centerView.getChildren().add(gameView);
            statusText.setText("Playing Game");
        levelEditMenu.setOnAction(new EventHandler<ActionEvent>() {
          public void handle(ActionEvent event) {
            centerView.getChildren().clear();  // here we perform a centerview vbox content swap.
            centerView.getChildren().add(levelEditView);
            statusText.setText("Editing Level");
        playGameMenu.fire();
        Scene scene = new Scene(gameLayout, 800, 600, Color.CORNSILK);
        stage.setScene(scene);
        stage.show();
    }Other than that I am not sure of a reason for the slowdown you are seeing. In my experience JavaFX has been quick and responsive for the tasks I have been using it for. Admittedly, I just use if for a bunch of small trial projects, but I've never seen it unresponsive for a minute.
    - John

  • Error message in a BADI getting displayed in a popup instead of status bar

    Hello All,
    I have implemented a BADI in ECC6 to prevent the change of formula in ERP from transaction O3I8.
    The BADI gets called on clicking 'Save' from transaction o3I8.
    Within the  BADI i am giving an error message using the following command:
    Message e000(ZABC) .
    However , the message gets displayed in a pop up instead of the status bar .
    The same is for information and warning messages.
    Any suggestions on how to display them in the status bar ?
    TIA
    Regards,
    Vartika

    Hi Brad,
    The checkbox to display messages in pop-up  is already switched off.
    Still themessages are getting displayed in pop-up.
    Regards,
    Vartika

  • Why does the address/status bar not work?

    After updating to 9.0.1, my status bar will not work, or my address bar. If I try to type in anything and press enter into the address bar, nothing happens. Also, I cannot press forward or back as they always remain grayed out. The only way I can get to a website is by pressing home, which is thankfully google. I have to google the url to go to it.
    Remembering now actually, I copied all the folders from the main firefox folder and pasted them into a new install of firefox (I had this problem actually before firefox updated). I was hoping that copying these folders would save my addons and etc. after I downloaded a new firefox and re-installed it. I put the folders back and firefox is still messed up :/
    I just want it to work more Q_Q

    That issue can be caused by an extension that isn't working properly.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • How to Show String Error Message in SAP status bar?

    Hello All,
    I am doing some custom check in SBO_SP_TransactionNotification and Setting
       SET @error = -1
       SET @error_message='Duplicate Web Order ID'
       select @error,  @error_message 
    But in SAP interface it is only showing -1 in status bar, I could not show error_message in status bar. How it could be achieved.
    Thanks in advance

    Hi
    try this
    SET @error = 1
    SET @error_message='Duplicate Web Order ID'
    select @error, @error_message
    Regards
    Arun

Maybe you are looking for

  • Pages 5.0 in Maverick causes Konica Minolta Bizhub Features to be deleted

    I have 2 schools which I administer and my own business. They all have BizHub Printers C360 C364 C451 C452 All have the latest drivers installed (UK site or eu site is best) All other apps including Word, Acrobat, Photoshop etc all print correctly, a

  • Opening .CR2 files in CS5 Photoshop from Canon T4i.

    Mac OS 10.6.8.  Photoshop CS5.1 V12.1 x64. I am trying to open and edit RAW images shot on my new Canon T41 Rebel. Will not open. Tried to convert using Adobe DNG Convertor. Did not work. Is there a way without upgrading to CS6?

  • Attempting to copy to the disk failed. An unknown error occured (-69)

    i bought a whole bunch of stuff on itunes, then when i went to sync my ipod it asked if i wanted to update to the new software, i said yes and updated, then while it was syncing it says attempting to copy to the disk failed, an unknown error. it wont

  • Test Exchange Services on all servers one cmd

    Guys is there any way i can run the below in one cmd as i tried but getting a below error  i am try to check the exchange services from one cmd let instead of simple script $ExchServer=Get-ExchangeServer foreach ($Server in $ExchServer) echo $Server.

  • Working with single pagecode in JSF --Urgent!!

    How do i map two different jsp pages to the same pagecode? The problme is in RAD where a jsp is automatically mapped to a pagecode that gets created. there is this tag <%-- jsf:pagecode language="java" location="/JavaSource/pagecode/PageCodeOne.java"