Why it produces error when I add a scroll bar to a stripchart?

I want to add a horizontal scroll bar to a chart of the band. I have create a checkbox on the Strip Panel. If it is enabled I put

 SetCtrlAttribute (psmpanelHandle, PSM_PANEL_ACHART, ATTR_STRIP_CHART_PAUSED, 1);

and I use

GetCtrlVal(psmpanelHandle,PSM_PANEL_CHECKBOX, &val);

to judge if the check box is marked. And the complete code:

//Pause the stripchart traces
int CVICALLBACK PauseChart (int panel, int control, int event,
                void *callbackData, int eventData1, int eventData2)
{
        int val;
        switch (event)
        {
                case EVENT_COMMIT:
                     SetCtrlAttribute (psmpanelHandle, PSM_PANEL_ACHART, ATTR_HISTORY_BUFFER_SIZE, 86400);
             GetCtrlVal(psmpanelHandle,PSM_PANEL_CHECKBOX, &val);
             if (val==TRUE)
                 SetCtrlAttribute (psmpanelHandle, PSM_PANEL_ACHART, ATTR_STRIP_CHART_PAUSED, 1);
            else
                SetCtrlAttribute (psmpanelHandle, PSM_PANEL_ACHART, ATTR_STRIP_CHART_PAUSED, 0);
                        break;
        }
        return 0;
}

However, I could not move the scroll bar to view historical data when I stop the curve in real time of the display on the graph of the band.

You are very likely to get this error! As you probably know, you cannot work on a panel or control, before it is loaded into memory, so you must set the attribute table in Pause1Callback or Pause2Callback using the Panel appropriate to manage.

According to the historical graph feature, having the scroll bar is unnecessary until you fill graphic display: once it starts moving and accumulating data on the left side you can move to review its history as well as the scroll bar.

Tags: NI Software

Similar Questions

  • Add a scroll bar to control opacity with scripts?

    First of all, thank you to David Torno (http://www.provideocoalition.com/after-effects-extendscript-training-complete-series).
    With the help of their tutorials, I managed to make several scripts with the UI, but when I try to add a scroll bar, I can't. can someone tell me what I am doing wrong? Here is the code:

    para preguntar scroll bar.JPG

    {

    function myScript (thisObj)

    {

    function myScript_buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ('pallet', 'Opacity', undefined, {resizable: true});

    res = "group {orientation: 'row', alignment: ['fill ', ' fill'], alignChildren: \ ['fill ', ' fill']}"

    groupOne: group {orientation: 'column', alignment: ['center', 'center'], alignChildren: ['fill', 'center'],------}

    },\

    myPanelOne:Panel {text: 'Opacity', direction: "column", alignment: ['fill ', ' fill'], alignChildren: ['fill', 'center'],------}

    myScrollbar1:Scrollbar {text: 'Opacity'}, \

    },\

    }";

    myPanel.grp = myPanel.add (res);

    var myScrollbar1 = myPanel.grp.myPanelOne.myScrollbar1;

    var valueScroll = myPanel.grp.myPanelOne.myScrollbar1.value;

    myScrollbar1.onChanging = function () {}

    var curItem = app.project.activeItem;

    var selectedLayers = curItem.selectedLayers;

    var curLayer = curItem.selectedLayers [0];

    var opacity = curLayer.property("ADBE_Transform_Group").property ("ADBE opacity");

    Opacity = valueScroll;

    }

    Return myPanel;

    }

    var myScriptPal = myScript_buildUI (thisObj)

    ;

    If ((myScriptPal! = null) & & (myScriptPal instanceof window)) {}

    myScriptPal.center ();

    myScriptPal.show ();

    }

    }

    myScript (this);

    }

    I tested your code, and the scroll bar is added correctly.

    What does not work is the method the scroll bar onChanging.

    A few comments:

    (1) you must not define a variable valueScroll = myPanel.grp.myPanelOne.myScrollbar1.value; outside this function, because it is the value at the point where set you it. It does not update the scroll bar as is.

    (2) you will need to use "setValue" to set the value of a property.

    (3) it will probably disappoint you much: definition of a property value of layer using a slider/via script scroll bar creates billions of history entries and makes unusable history.

    (When you scroll the cursor property in After Effects, a history entry is created only for the purpose you by releasing the mouse (onChange event).) "But scripts do not have this capability, I believe). Check for yourself:

    myScrollbar1.onChanging=function(){
        var curItem = app.project.activeItem;
        if (curItem instanceof CompItem && curItem.selectedLayers.length>0){
            curItem.selectedLayers[0].transform.opacity.setValue(this.value);
            };
        };
    

    Xavier.

  • Can I add a scroll bar to a frame?

    I designed my first Web site using Dreamweaver, www.dancecampeast.org and some users have said that they cannot access all the items on the left frame, which is used in the navigation bar. I guess it's because their browser windows are too small, that is to say that they are viewing on a small screen or with large text. I want to add a scroll bar on the frame to allow access to items lower on the list, how can I do? Any advice gratefully received, just don't get too complex!

    If you have just started creating Web sites and chose to use images, I'm sorry to tell you that you started opposite. Frames were widespread in the mid-1990s, but are now considered as a very poor to build Web sites. So poor that frames are removed from the next version of HTML.

    Having broken the bad news for you, you still need a way to solve your problem while deciding how to redesign your website...

    In Dreamweaver, open the Panel frames (window > frames). Select the left image in the Panel to view the properties of the image in the property inspector. Change the value of No on Auto scrolling. Save frameset and upload it to your site.

    To learn more about why you made the wrong choice with images, take a look at the following explanation: http://apptools.com/rants/framesevil.php.

  • The scrolling feature is flicking/back to top of page when I move the scroll bar

    When I use the scroll function in the menu of the Explorer, it flashes back and forward/back back to top - when I move the scroll bar!

    It may be a virus or something, but my antivirus software cannot be removed (antivirus software: 360 Total Security)

    Would appreciate help or a solution.

    Thanks in advance.

    Hey @Nanoq ,

    Welcome to the HP Forums!

    I understand that the continuous scroll bar jump around as if it were in a clip of House of Pain.

    Can you tell me if you use the scrolling feature of the touchpad or if you're clicking and dragging the scroll bar?

    It is a feature of laptop I always had personal problems with touch keys. Not that there is anything wrong with it, I just have a bad habit of going a little too far to the left or the right. When he loses in this regard, he always comes back to where I started scrolling. Same thing on my MacBook and my laptop.

    If this sounds like the same thing is happening to you try a mouse to see if the same problem occurs. If If are you could be right about a virus. Check and see if the problem occurs in several programs, if you do not have to try and fine-tune things.

    I also suggest using a program like Malwarebytes (available free online) to search for infections. It is always nice to get a 'second opinion' possible infections.

    I look forward to your reply!

  • Packaging of FDT on windows error when you add the Active Directory in the package contents

    Hello!

    Trying new tools of FDT 5.5 for Adobe AIR, so far so good but I just encountered a problem when you try to add an Active Directory package.

    I add the shape of directory the FDT-> FDT AIR properties of project-> BlackBerry-> content tab package properties

    I click on add a directory and add the path to my Active Directory. (My current directory is in D:\Users\Julien\Travail\SRC\FDT5-workspace\MonArc\bin\assets)

    I then run a debugging, and I get the following error:

    Start debugging package.
    Package failed!
    Package failed: 1
    Error: File or dir does not exist: D:\Users\Julien\Travail\SRC\FDT5-workspace\MonArc\D:\Users\Julien\Travail\SRC\FDT5-workspace\MonArc\bin\assets error: file or dir does not exist: D:\Users\Julien\Travail\SRC\FDT5-workspace\MonArc\D:\Users\Julien\Travail\SRC\FDT5-workspace\MonArc\bin\assets

    There is a bug filed in Jira of FDT: http://bugs.powerflasher.com/jira/browse/FDT-2739 go vote for ;-)

    I get only this error when packaging of BlackBerry app, iOS or Android, everything is fine, so I guess that maybe it's a bug in the BB Plugin for FDT...

    If anyone has experienced this problem and know a workaround solution?

    Thank you!

    Yay, this has been fixed in FDT 5.6!

  • Why the VAPP dashboard landing page not a scroll bar?

    on v5 my landing page is not a scroll bar, but when I expand items as why is health x the screen interrupts the lower sections. I use ie 8.

    Thanks for letting us know you touch this. We currently investigate a problem specific to IE8 and the scroll bar. If you must stick on IE you can try IE9 (if your IT allows of course).

    -Eric

  • Is it possible to add the scroll bar to a cluster of front control?

    I have a cluster control on my front.  The cluster contains many controls that I did not have enough room to display at a time. When a table contains more items is displayed, you can activate vertical or horizontal scroll bars.  This doesn't seem to be the case for cluster control.  I don't see a property of scrollbar for cluster control.  Is there a way to display one that I'm missing?  Thank you!

    As much as I know you can not display scrollbars on clusters.

    The only method I can think of that would be to show the cluster fully deployed on a secondary as a plugin and have attached an example how to do that.

    Hope that helps,

    Dave

  • Add vertical scroll bars to a content panel

    I need to use long passages of text in a fixed size content area, so I need to add a vertical scroll bar on the side. Muse support says that I have to use HTML code to do this. I'm a designer, not a coder, can someone walk me through it?

    Hi Jeff,

    I replied to your previous post, please refer to this topic:- https://forums.adobe.com/thread/1627033

    Kind regards

    Rohit Nair

  • runtime error when you add a softmotion axis

    Hi all

    I am running labVIEW 2010 with the development softMotion, creating a compactRIO application module. When you try to add an axis softMotion in Project Explorer I get a window with the message "Microsoft Visual c ++ runtime library." Run the error! Program:... LabVIEW.exe' and labVIEW ends.

    I get the same message even when trying to look at coordinates spaces defined in softMotion examples or try to add coordinated spaces or softMotion tables.

    Anyone have any ideas on how to work around this problem?

    Thank you

    Matt


  • "Error 105: connection with a token to MaxUni" error when you add a server Essbase

    I was sent Hyperion Planning and Essbase 11.1.2.3 with Embedded WebLogic HTTP server under Windows 2008 Server R2. Then I applied the patch #17767309 (this is for server EAS - free 500). Then after connecting to the EAS web console as "admin", I added a knot of Essbase server and then trying to develop it, I get nothing underneath and the following message in the box at the bottom: "error 105: connection with a token to MaxUni.

    I have stopped all services of the EMP, deleted "tmp" folder "Oracle\Middleware\user_projects\domains\EPMSystem\servers\AdminServer" / I redeployed EAS server and Essbase using the EPM system configurator - it is the sequel to advice found in this thread: https://community.oracle.com/message/11325472#11325472

    Then I restarted all services of EPM and logged on to the console of Regional service as admin, once again, deleted and added an Essbase server again and I get the same "error 105: connection with a token to MaxUni ' when you try expand the Essbase server node again.

    How can I solve this? I'd appreciate a lot of clues!

    I saw something similar bez Essbase RTC was not updated to match the version of Essbase and EAS server. Download and apply the 17767299 hotfix that is Essbase RTC 500. This should solve the problem.

    THX

    Vivek

  • "Error loading of TCP MIB library" error when I add a standard TCP/IP printer port in Windows 7

    My States of research... This behavior can occur if a version of third-party of the Wsnmp32.dll, Tcpmib.dll, Mgmtapi.dll, Ntprint.dll, or Snmpapi.dll file has been copied to the folder.

    States to fix... To resolve this problem, rename or delete these files in the folder. These files are taking precedence over the file provided by Microsoft in the \System32 folder.

    Is this correct? If Yes, how can I do to find these files and that do remove for Windows 7?

    Hello

    To resolve this problem, rename or delete these files in the folder %any . These files are taking precedence over the file in the %SystemRoot%\System32 folder provided by Microsoft.
    1. Click Start.
    2. In the search box, type %SystemRoot%\System32 .
    3. Remove these files that is mentioned below:

    Wsnmp32.dll

    Ntprint.dll, Tcpmib.dll

    Mgmtapi.dll
    Snmpapi.dll

     
  • Why if display "disintegrate" when I page or scroll?

    When a page is displayed first, seems ok. Scroll down, generally ok. When I scroll to the top, text appears incorrectly, as if the pixels are scrambled. It happened on this site, when I register and I don't not even scroll. The browser redisplays just a sentence, and he had a falling out.

    Hello, it could be a problem with hardware acceleration - try updating your graphic driveror where this does not solve the problem, or there is no new version available at the time, disable hardware acceleration in firefox > options > advanced > General.

  • Why safari quit/crash when I select the address bar?

    Whenever I select the address bar type in an address, once I run Safari, the application closes automatically.

    It recently reported a bug. Some have reported that go to settings > Safari and disable the Safari Suggestions helped.

  • does anyone know how to add a scroll bar on a form for calculations that change the numerical value when you scroll left and right?

    Screen Shot 2015-06-02 at 09.42.43.pngAnyone know how to create scrollbars that way in the forms in Adobe Acrobat format?

    There is no such control in PDF Forms. You will need to develop yourself

    If you wish to have. I suggest just using a text field with keys + /

    instead. It will save you a lot of headaches...

    Tuesday, June 2, 2015 at 10:56, rorys9206745 [email protected]>

  • HO to add a scroll bar on RichTextField

    Hello

    I developed an application where I use this type of popupScreen.

    Here I put the image, width height to the RTF, field

    I want to put vertical scrolling, for the following is the code for this:-

    txtNote_value = new RichTextField()
    {
    protected void paint (Graphics graphics)
    {
    graphics.setColor (Color.BLACK);
    graphics.setFont (graphics.getFont () .derive (Font.PLAIN, 12));
    Super.Paint (Graphics);
    Invalidate();
    }

    Protected Sub layout (int width, int height) {}
    Super.Layout (width, height);
    setExtent (255, 55);
    }

    public int getPreferredWidth() {}
    return width;
    }

    public int getPreferredHeight() {}
    return height;
    }
    };

    txtNote_value.setBackground (imgTextBg);
    txtNote_value.setEditable (true);
    txtNote_value.setMinimalWidth (imgText_bg.getWidth ());
    txtNote_value.setMargin (5.2, 0, 2);

    Can someone give me a solution to scroll the text.

    I have add this field richtext on separate vertical field, manage and set the:-VerticalFieldManager.VERTICAL_SCROLL

    but it allows to scroll the deposited text of hole I don't want that, I want to just scroll through the inner text to RTF Fiedl

    Thanks in advance

    Adjust your fillRoundRect with the scroll position settings:

    g.fillRoundRect (getHorizontalScroll () + 4, getVerticalScroll() + 1, getWidth() - 8, getHeight() - 2, 0, 0);

    Furthermore, I feel that you have lost your settings - the first two are the coordinates of the upper left corner of the rectangle, the last two are arcWidth and arcHeight. If I'm right and you inadvertently changed place, the call would look like:

    g.fillRoundRect (getHorizontalScroll (), getVerticalScroll(), getWidth() getHeight(), 4, 1);

    Good luck!

Maybe you are looking for

  • iBooks can not access my library...

    I have updated to OS X El Capitan 10.11.3 10.11.4 last weekend and now when I try to open iBooks I get this message. I clicked on 'Reset the library' and 'Try Again' but nothing happened. It does not work. I have an iMac (21.5 inch, mid-2011).

  • Cannot print from the web even if everything else prints ok - when asked to print I get a blank page then nothing

    I can't print from the Web all else prints OK the printer throws a simple sheet of paper and print preview is empty This has happened Each time Firefox opened is about six weeks

  • Upgrade XP Home Edition

    My hard drive crashed. I reinstalled from original CD (XP Home Edition), but have only access to IE6 is no longer supported by MS websites.  Tried upgrading to IE7, but receive error message that IE7 requires at least SP1a.  Suggestions to upgrade Wi

  • Laptop Presario A900: update / install windows 8.1 possible on Presario A900?

    I plan to upgrade my windows OS on my compaq presario A900, running Windows Vista home (new installation). I know that HP does not provide drivers for Vista. Does anyone has installed Windows 8.1 on one of them? I'm planning to do that rather than in

  • Environmental monitoring of Cisco ASA

    Hello, we have an ASA5510 I think about overheating, as fans regularly turn up to the maximum speed for about 10 minutes. Is there a way to display the parameters of the environmental on the SAA as the 'show environment' command on a router? Concerni