Event OnClick TabNavigator ACEs-based

I know that you can create an event onClick for the tabnavigator to the mxml document:

< mx:TabNavigator id = "myTab" width = "100%" height = "100%" change = "fnClick ()" >

But is it possible to do with ActionScript 3.0? So far, they have not worked:

  • myTab.addEventListener (Event.CHANGE, onChangeTabIndex);
  • myTab.addEventListener (Event.TAB_INDEX_CHANGE, onChangeTabIndex);
  • myTab.addEventListener (MouseEvent.CLICK, onChangeTabIndex);
  • myTab.addEventListener (IndexChangedEvent.CHANGE, onChangeTabIndex);

Any ideas?

It's definitely the one specified in the source: 

View Stack source (TabNavigator extends ViewStack and does not override this)

Tags: Flex

Similar Questions

  • ActionBar / bbUI.js - event onclick in the Menu tab overflow of unmarked tab

    Hello

    I use the collection of great bbUI.js for my application.

    Thanks to the team of developer for such things.

    Is it possible to trigger an onclick event to a tab that is not marked as action of overflow in the tab overflow Menu or to hide the tabs not spotted in the overflow Menu?

    Currently the tabs not spotted inside the overflow Menu is any cause at the end of the onclick event missing.

    I hope that someone has ideas for my problem.

    Thanks for the tips!

    Moritz

    Thanks for the tip.

    I opened a new show.

    The link for those interested:

    https://github.com/BlackBerry/bbUI.js/issues/259

  • How to assign the event onClick for the Panel?

    Hello world!

    Now I choose the color by pressing the button and show through the paint of the Panel. I want to remove the button and clicking on the panels only - colored rectangles. This is possible?

    color1.jpg

    ////////////////////////////////////////////////////////////////////////////////////////// ///////////////////

    Iconbutton and edittext button color

    ////////////////////////////////////////////////////////////////////////////////////////// ///////////////////

    #target photoshop

    //

    Choose your 2 colors here:

    colour1 var = [0.30, 0.00, 0.80, 1]; myIconButton color's alpha chanel (1 = opaque)

    Color2 var = [1.00,0.85,0.70];

    var dialogBackgroundColor = [0.55,0.55,0.45];

    var selectedColor = "you must select a color ';

    var w = new window ("dialog", "Example", undefined, {without borders: false, closeButton: false}); {without borders: true, closeButton: false}

    w.orientation = "Column";

    w.Margins = [0,20,0,0];

    w.Size = {width: 320, height: 160};

    w.graphics.backgroundColor = w.graphics.newBrush (w.graphics.BrushType.SOLID_COLOR, dialogBackgroundColor, 1); COR fundo

    IconButton (OPTION 1)

    var p = w.add ('group');

    myIconButton var = p.add ('iconbutton', [0,0, defined, undefined], undefined, {style: "toolbutton"}); // , vy

    myIconButton.size = [20,20];

    myIconButton.fillBrush = myIconButton.graphics.newBrush (myIconButton.graphics.BrushType.SOLID_COLOR, color1); IconButton color

    myIconButton.text = ""; do not use text on iconbutton

    myIconButton.textPen = myIconButton.graphics.newPen (myIconButton.graphics.PenType.SOLID_COLOR, [0.8,0.6,0.3,1], 1); the iconbutton text color (not used here)

    myIconButton.helpTip = "SΘlectionner your color here."

    myIconButton.onDraw = customDraw;  operate the bellows (a must have on any iconbutton so that it is drawn correctly)

    text beside iconbutton

    var myIconButtonStatictext = p.add ("statictext', undefined");

    myIconButtonStatictext.text = "color 1";

    myIconButtonStatictext.preferredSize = [200.20];

    EDITTEXT button (OPTION 2)

    var m = w.add ('group');

    var myEditText = m.add ("' edittext ', undefined, {without borders: false});

    myEditText.graphics.backgroundColor = myEditText.graphics.newBrush (myEditText.graphics.BrushType.SOLID_COLOR, color2, 1); EDITTEXT color

    myEditText.graphics.foregroundColor = myEditText.graphics.newPen (myEditText.graphics.PenType.SOLID_COLOR, [0.5,0.4,0.35], 1); color of the text in edittext (not used here)

    myEditText.graphics.font = ScriptUI.newFont ("Arial", "BOLD", 16)

    myEditText.helpTip = 'SΘlectionner your color here.';

    myEditText.text = "";

    myEditText.preferredSize = {width: 20, size: 20};

    text next to the button edittext

    var myEditTextStatictext = m.add ("statictext', undefined");

    myEditTextStatictext.text = "color 2";

    myEditTextStatictext.preferredSize = [200.20];

    The button

    var doneBT = w.add ('button', undefined, 'Done');

    doneBT.preferredSize = [50,20];

    end/Cancel button

    var closeBT = w.add ('button', undefined, 'Cancel');

    closeBT.preferredSize = [50,20];

    Define event listeners that implement the behavior for the user interface components

    myIconButton.onClick = function() {}

    myIconButtonStatictext.text = "Color 1 selected!";

    myEditTextStatictext.text = "color 2";

    selectedColor = "chose the color was" + color1;

    }

    myEditText.onClick = function() {}

    myEditTextStatictext.text = 'Color 2 choose!';

    myIconButtonStatictext.text = "color 1";

    selectedColor = "chose the color was" + Color2;

    }

    doneBT.onClick = function() {}

    Alert (selectedColor);

    }

    w.Show ();

    It is important to have this when you draw an iconbutton

    function customDraw() {}

    with (THIS) {}

    graphics.drawOSControl ();

    graphics.rectPath (0, 0, size [0], size [1]);

    FillPath (fillBrush);

    affects only the text if exist within iconbutton (if you don't use a text inside the iconbutton, you don't need this)

    ~ If {(text)

    ~ graphics.drawString (text, textPen, (size [0] - graphics.measureString (text, graphics.font, size [0]) [0]) / 2, 3, graphics.font);

    //~         }

    }

    }

  • Defining a button to a function not defined onclick event / custom

    I'm not a developer of captivate, but I develop a page that is embedded in an iframe (webobject) within a page of captivate. Page that I have developed a chart, the data for which depend on which button is clicked in the Captivate parent page.

    Ideally, I wish I could have my captivate developer simply set the onclick event for each button to call a function (by name) I'll set my page in the iframe. To do this, I was hoping there was an option to simply give the name of the function to an event onclick in captivate, so that my iframe can 'reach' in the parent company and equal to a function in my graphic page, I set the value of this function.

    I would like most, the outcome to be (basically) something like this:

    Captivate page:

    < someButton onclick = "CaptivateTest1" >

    < someButton2 onclick = "CaptivateTest2" >

    < iframe src = "myGraph.html > < / iframe >"

    myGraph.html:

    < html >

    <!--... Graph of stuff here->

    < script >

    function myDefinedFunction() {}

    Change a chart of the data

    }

    function myOtherDefinedFunction() {}

    Change a chart of the data

    }

    window.parent.CaptivateTest1 = myDefinedFunction;

    window.parent.CaptivateTest2 = myOtherDefinedFunction;

    < /script >

    < / html >

    Describe your functions in the html document in the iFrame:

    window.parent.CaptivateTest1 = function()

    {

    do stuff

    }

    Then you have Developer run JavaScript in JS linked to the button window:

    CaptivateTest1();

  • When a box has been checked (onclick event) HTTP post?

    Is it possible to make a post http for each event onclick on the boxes?

    I need to display data with parameters to an API or something that can be sent in an HTTP post.

    OK, just wanted to make sure. Take a look at the Net.HTTP object. It has a single method, application, which allows to you providing a HTTP request such as GET, POST, etc. But read the documentation, there are some serious limitations on this method. The a key being i.e. must be run from a script to the folder level.

    Alternatively, you can use the app.launchURL () method to open a web page. The user will need to enable it, if.

  • How can I use a ButtonBar for a TabNavigator?

    Don't ask me why they want < last > < next > to display tabbed navigation, but it is what it is.

    I need a ButtonBar < back > < next > on each of the inner tabs (and of course a < next > and < last > ButtonBar for the first and the last tabs respectively) who go to the next or previous tab.

    I guess a ViewStack component, but lack the knowledge to set up such a component, with regard to the ButtonBar, etc..

    Any help is very appreciated.

    Thanks people...

    -fd

    You simply create a component with two buttons, which each distributes a custom event when you click on it, and and include this component in each view. Then add listeners to events in the parent component of the TabNavigator, the selectedIndex property of the TabNavigator update based on the clicked button.

  • JDeveloper 11.1.2.3: In regard to the contextual events, af:inputtext, af:table

    adf newbie question fast 11g...

    While passing by a nice tutorial on http://www.youtube.com/watch?v=IFl-1RQm_so & feature = plcp Frank, I decided to search with the wizard for creating contextual events. What I noticed that the type of the event produced changes was based on the type of parent (pure!) component.

    Dialog contextual event for an af:inputText nested in an af:table
    http://i.imgur.com/uy0Xh.jpg

    Dialog contextual event for a stand-alone af:inputText
    http://i.imgur.com/SXsXQ.jpg

    The switchable contextual event to ValueChangeEvent for an af:inputText in an af:table type?

    Thank you

    -Wes

    Wes,

    in fact when I reproduce with 11.1.1.6 then change value event is created for the event popup I create for a text entry field in a table. I guess you always focus on the table when you create the popup event. Check the Lady of PageDef. If you see the event under the binding of the tree, then I'm right.

    Frank

  • Simple: How to rotate a symbol onclick?

    Well, my Flash and as old skills seem to be pretty useless with Animate. All the online resources I looked poised to make things jump around as the timeline runs. This isn't what I do.

    All I really need to know is how to use an event onclick for something else on the stage are moving precisely.

    I have a symbol that I'll call "the wheel."  I have another symbol which I will call 'button '.

    When the user clicks on the 'button', I want to 'wheel' to rotate 45 ° around its axis. I can't find a list of Edge code syntax anywhere.

    I opened the Action Committee for 'button '. Not much help in this menu on the right.

    SYM.$("wheel") addresses the symbol I need - but so what? I could discuss this with CSS/JS, but surely there is a SIMPLE way to do this with edge? Or should I return to Flash and use the functionality of HTML scene?

    If it wasn't for the omnipresence of iOS devices, I would not have had to abandon Flash development. But Flash CC/HTML and edge are looking quite awkward as real tools for animation of cross-platform compared to all the scripts by hand...

    Am I missing something really obvious?

    You have made the mistake of having i = 0; several times in your code. Please modify your code in composition ready to:

    var i = 0

    {sym.$('Left'). Click (Function ()})

    I += 90;

    SYM. $('spin_dial') .css ('transform', 'rotate('+i+'deg)');

    SYM.$('spin_dial'). CSS ('-MS-transform ',' rotate('+i+'deg)'); / * IT IE 9 * /.

    SYM.$('spin_dial'). CSS ('-WebKit-transform ',' rotate('+i+'deg)'); / * Safari and Chrome * /.

    });

    {sym.$('Right'). Click (Function ()})

    I += 180;

    SYM. $('spin_dial') .css ('transform', 'rotate('+i+'deg)');

    SYM.$('spin_dial'). CSS ('-MS-transform ',' rotate('+i+'deg)'); / * IT IE 9 * /.

    SYM.$('spin_dial'). CSS ('-WebKit-transform ',' rotate('+i+'deg)'); / * Safari and Chrome * /.

    });

    {sym.$('Upright'). Click (Function ()})

    i = 90;

    SYM. $('spin_dial') .css ('transform', 'rotate('+i+'deg)');

    SYM.$('spin_dial'). CSS ('-MS-transform ',' rotate('+i+'deg)'); / * IT IE 9 * /.

    SYM.$('spin_dial'). CSS ('-WebKit-transform ',' rotate('+i+'deg)'); / * Safari and Chrome * /.

    });

    {sym.$('downright'). Click (Function ()})

    I-= 180;

    SYM. $('spin_dial') .css ('transform', 'rotate('+i+'deg)');

    SYM.$('spin_dial'). CSS ('-MS-transform ',' rotate('+i+'deg)'); / * IT IE 9 * /.

    SYM.$('spin_dial'). CSS ('-WebKit-transform ',' rotate('+i+'deg)'); / * Safari and Chrome * /.

    });

  • Flex Event Dispatcher Questions...

    Hi guys...

    I'm sending a custom of my Player.as and here YouTubeEvent my Main.as would listen to and create the video player... Apparently my eventHandler can't catch the event to create the videoplayer... My flex debug mode is so screw I can even use... My code is as follows... I appreciate really no response or help...

    My custom event...

    package com.youtube.events {}

    import flash.events.Event;

    /public class YouTubeEvent extends Event {}

    Public static const PLAYER_READY:String = "PLAYER_READY";

      

    public void YouTubeEvent(type:String) {}

    super (type);

    }

    }

    }

    My Main.as

    SerializableAttribute public class SearchYoutube extends Sprite

    {

    private var videoPlayer:Player;

    public void SearchYoutube()

    {

    loadPlayer();

    }

    private function loadPlayer (): void

    {

    videoPlayer = new Player();

    videoPlayer.addEventListener (YouTubeEvent.PLAYER_READY, playerReady);

    playReady will never be executed...

    }

    private void playerReady(event:YouTubeEvent):void

    {

    videoPlayer.createPlayer ();   This Manager was never going to be executed...

    addChild (videoPlayer);       This Manager was never going to be executed...

    }

    }

    Player.As

    display only part of the codes here

    public void Player() {}

    }

    public function createPlayer (): void

    {

    _loader = new Loader();

    _loader.contentLoaderInfo.addEventListener (Event.INIT, onLoaderInit);

    }

    private void onLoaderInit(event:Event):void

    {

    _loader. Content.addEventListener ("onReady", onPlayerReady);

    }

    private void onPlayerReady(event:Event):void {}

    dispatchEvent (new YouTubeEvent (YouTubeEvent.PLAYER_READY));

    }

    The is the top-level application. all events will be propagated to the application. So if you save events to the level of the aplcation, you need not worry about losing events.  Application.application will give you the reference application slot and you catch and listen to events at this level based on what I posted in my previous post.

  • A query regarding Cairngorm events

    I'm new to cairngorm.
    I'm designing a StudentApplication using Flex with Cairngorm.
    I am struck at writing a Cairngorm event class. Please guide me

    Assume that this StudentApplication is suppourting Create, Delete, Update, read operations.

    My question is what I have to write 4 event classes, every representative of this operation.

    Or is it possible to do so in an event class by taking 4 different constant Sring, each representing the appropriate Action.

    package com.control
    {
    import com.adobe.cairngorm.control.CairngormEvent;

    public class CreateEvent extends CairngormEvent
    {


    }
    public static const EVENT_CREATE_STUDENT: String = "EVENT_CREATE_STUDENT";
    }

    My question is what I need to do Create, Update, Delete, reading for all events
    Event of my Application?

    Please guide me.

    Thanks in advance.

    Hi Kiran,

    You can write all the events in a class single say StudentEvent class and perform the appropriate action according to the type of event (delete, update, add... etc) but if you do you need to process the result returned by the remote service based on the type of event in command later and write your logic.

    for ex:

    In your layer (StudentCommand) command in the results... Manager function you need to treat them that way...

    public function result (data: Object): void

    {

    If (data! = null)

    {

    If (_eventtype is "deletestudent")

    {

    Write you the logic to remove the student

    }

    ElseIf (_eventtype == "createstudent")

    {

    Write logic to create the student

    }

    ElseIf (_eventtype == "updatestudent")

    {

    Write logic to update students

    }

    on the other

    {

    Write you logic to read the details of the student

    }

    }

    }

    deletestudent, createstudent, updatestudent and readsrstudent are the event four guys who you here as of constant static in StudentEventclass.

    If you want to write event 4 classes for all then also its good so that you can have the class wrapper for all events.

    If you want to have custom and reduces the code, then use the single event class. Its based on your requirement...

    Thank you

    Jean Claude Chari

  • Application.Orientation (cannot unlock...)

    Basically, my application allows the user to switch the orientation and basically the user interface will change based on that. However, there are a few screens that I want to block orientation (settings & help for example).

    I use bbui.js (0.9.6) and use the ondomready: function to check the page (id) to lock and unlock the orientation.

    [...]
    ondomready: function(element, id, params) {
    if (id == 'menu') {
    blackberry.app.unlockOrientation();
    }
    if (id == 'settings') {
    blackberry.app.lockOrientation ('portrait-primary');
    }
    if (id == 'help') {
    blackberry.app.lockOrientation ('portrait-primary');
    }
    [...]
    

    I am able to do block to portrait, but I can't unlock it. I even tried to put an event 'onclick' on the actionbar (back) button to see if it will work. This isn't. Any idea on what I'm doing wrong here?

    Thank you.

    Ok... I solved my problem. It works when I call a new function instead of having within the ondomready function.

    So, I made these functions.

    function lockDisplay()
    {
        blackberry.app.lockOrientation('portrait-primary');
    }
    
    function unlockDisplay()
    {
        blackberry.app.unlockOrientation();
    }
    

    Call them of in the ondomready... and it works.

  • After the recent Firefox updates prevent links to several websites to operate while it doesn't have this problem with other browsers - help please.

    Since a recent update of Firefox links to several Web sites is no longer working. They used to be fine and I liked Firefox. The problems do not exist with other browsers such as Internet Explorer, Google Chrome. Specifically, on talktalk.co.uk news links do not work, any more than those in 'my account '. On Barclays.co.uk the link to print my statement works no-same on MBNA.com
    There are several solutions proposed around the internet, but all are complex, so far none have worked and I don't see why I should have to make the suggested adjustments. Firefox has been great - now, it is not. The problem seems to be the update. Please help me get my Firefox where it should be.

    AFAICT then who are perfectly normal links on the news page

    The http://www.talktalk.co.uk/ opens if I click the guide Link TV/news on the https://sales.talktalk.co.uk/ page.

    If I right click on a link and use inspect element to open the Inspector then I see that there is an event onclick on the links (annex 'ev' button), so make sure that you are not blocking JavaScript.

    Start the computer in safe mode Windows with network support (on the startup screen, press F8) as a test to see if that helps.

  • Malfunction of the button MUTE

    Hello.

    I have the strangest in Logic Pro x from issue of today.

    When I try to mute an individual item in the piano roll, say a drum call, I do what I have always done so far here: I stressed the drum hit in question in the piano roll, and then press the M key on my keyboard.

    Now, when I do that, there) is not mute the drum hit in the piano roll, but it puts mute a track in my window arrangement in the logic.

    See:

    See the drum hit in the piano roll in the left corner at the bottom? I've highlighted.

    Then I pressed the M key on my keyboard and instead of inhibiting the kick drum, he cut the track/region KPAR R #2961.2 in the video setting.

    WHAT THE * is going on here? I restarted, then I restarted the computer, but nothing helped. This problem just jumped upward and any project logic, I'm opening, the question is in each of them.

    Can someone help me?

    You must be aware of which window is "in focus"...

    M cut the channel strip / track.

    Control M puts muted events (notes) or regions based on what is being discussed.

    So if you want to cut a note into the piano roll - make sure the piano roll has the focus and press Ctrl M.

    If you don't cut a single area - make sure that the arrange window has the focus and press control M.

    Where you can get confused, it's if you have content link off in the piano roll, select a note and click in the arrange window (which gives focus to window arrange) - but there is a note has highlighted in the piano roll.  If you press M you will cut the channel bandwidth (period). If you press Ctrl M will take the region (even if the note is highlighted) it's because the arrange window has the focus, which gives it priority on the piano roll (the thin blue line around it).

    If you keep the rules above in mind... you should be fine.

  • Halo 1 and Vista

    So that the information of compatibility of Microsoft Vista Home Premium 64 - Bit tells me that Halo 1 is completely compatible, I have constant errors by trying to play online. I have found it a box "area of delay of doom" appears in the lower right of the screen (this box was running on my old computer, which had a terrible wireless card and virtually no signal). This Toshiba Satellite laptop is brand new and I tried to connect directly to the internet by cable, and it had no effect. The game is absolutely unplayable, and I can't find a reason why. Much more demanding games like Call of Duty 4: Modern Warfare play perfectly fluently and I even tried to run 1 Halo in compatibility mode for XP SP2 with no luck. What is the disk that was used to install Halo 1? This is the only opportunity that I still look in because of the extra money that could be spent in vain if the drive is not the problem. I would have simply sent to Microsoft support. However, they seem to try either one scam by charging $59 for a conversation simple e-mail with a member of the support staff or try to dissuade us from asking questions that we run to Mac where not only they provide free technical support, but the people they hired seem to strive to make your Apple very pleasant support experience (I got in touch with them about the iPod several times)

    Microsoft.com/games/Halo had a support page but no support by email of any kind. The support email link took back me to the Microsoft.com e-mail and support their attempt to scam me out of $ 59 I can't spend on support. The page known multiplayer issues did not, anyway, my problem. I will reiterate my problem:

    Whenever I connect to a multiplayer game, after a short time, I start trolling at the point of the game is unplayable. My internet connection is perfectly well via laptop built in wireless. I tried to plug my computer directly to the internet by cable without effect. My ISP is Comcast Cable Internet so there is no problem of speed. My computer, via the wireless, is able to play much more demanding games such as Call of Duty 4: Modern Warfare quite fluently and without any problem of lag. I have a problem of bandwidth when other members of the family by the use of their laptops for download; However, I tried several times to play while I was alone in the House without result. The game is absolutely unplayable and I am sad at the idea of the game is a waste of money. On my old computer, a desktop computer with free Wi - Fi and a map much less graphic, Ram and processor, Halo has played perfectly fluent. This makes me think to it's some sort of setting on 64-bit Vista that causes this error and I would like to know the opportunities available for me to try.

    I asked this question already. I was told to go to microsoft.com/games/halo. The second and third paragraph was my reply to the person who directed me to this Web page and I have yet to receive any response. I felt that the repost can be a more effective way to get a real answer. I'd like to get real advice instead of being redirected to another site which ends up being a dead-end.

    Hi lieb012,

    Thank you for writing to Microsoft answers Community Forums.

    It is clearly a problem with the game itself and not the Internet or windows, since you can perfectly play other games. Perhaps some of the files used in this game could be damaged. It would also be that some third-party programs may interfere with the game while playing online. I need some information first

    Do you get error during the game codes?

    Have you tried to reinstall the game and check?

    Is your computer up to date with all the latest windows updates and updates to halo?

    If you see any errors I suggest you to check the event viewer for errors based on the program. The link below shows you how you can find errors related to a program or a game. Here support and online help could you suggest a few steps

    Open event viewer

    http://windowshelp.Microsoft.com/Windows/en-us/help/a99f69c1-935f-4116-ba5f-33d8800ef9da1033.mspx

    I also suggest you to install all the latest updates and patches that should take care of most of the questions. You can click on the link and install v1.07 Halo Hot - Fix. The v1.07 Halo for Windows Hot - fix resolves a rare deadlock that could occur if a malicious individual (hacker) deliberately imitates a game server and sends invalid data on a server.

    http://www.Microsoft.com/games/halo/support.aspx#updates

    If fails it step above, you may need to try a clean boot to see what third-party program is causing the game behind. Follow the steps below to clean boot procedures.

    Click Start, type msconfig in the search box and press ENTER. (If you are prompted for an administrator password or a confirmation, type the password, or click on continue.)

    On the general tab, click Selective startup.

    Under Selective startup, clear the check box load startup items.

    Click the Services tab, select the hide all Microsoft Services check box, and then click Disable all.

    Click OK.

    When you are prompted, click on restart.

    Log on to your account.

    Test the game

    If the problem does not reappear when your computer is in clean boot mode, a background program probably causes interference. You may need to update the program or uninstall program for this program works. You can try to determine which background program is causing the problem when the computer is in clean boot mode.

    ---------------------------------------------------

    To find the process or program to cause follow the beginning steps to enable half of the points of service, in the following article:

    How to perform a clean boot procedure to determine if background programs are interfering with a game or a program that you currently use

    http://support.Microsoft.com/kb/331796

    ---------------------------------------------------

    To restore your Normal startup:

    Click Start, type msconfig in the search box and press ENTER. (If you are prompted for an administrator password or a confirmation, type the password, or click on continue.)

    On the general tab, click Normal startup.

    When you are prompted, click on restart.

    I hope this helps.

    Let us know if you need more assistance.

    Kind regards.

    Nicolas Mathieu

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Storage of PDM in one group or many?

    Hi all

    I'm designing a verification tool to the work of an RFID device. I have a PC dedicated box with the NI PCIe 7841 DAQ for this tool.

    Question

    My question is about the segmentation data in the TDMS files between files/groups and channels. How to choose size maximum file to penetrate storage? Is to store in a single group of very long effective channels, or you should break you up into smaller groups in order to improve reading access both later?

    The event definition

    My request to store 'events' is defined by the following fields (each event has these fields):

    • [U64] Timestamp FPGA
    • [U16] Type of event
    • [32] Event SeqID (seqID is based on type and assure all the events recorded in the storage file)
    • [U16] Value0
    • [U16] Value1

    Activity rate of events

    These events are acquired at an average rate of ~ 50kEvents/s and will be processed offline. Sample sessions will last about 1-2 hours, which gives ~ 7-8GB. Sample sessions that occur 1-3 times / WK.

    Storage method

    Forget the FPGA-> mechanism from the host for a moment and just consider the storage of these data. What I have here is a continuous flow of these events. My method of storage is so far:

    • Break the TDMS files to 250 MB (selection of arbitrary size)
    • A group by file
    • 5-way group, each embodying the parameters listed

    Summary of the last Question

    What is a good way to store data? I have a few questions here:

    • Should I break into 5 groups of 50 MB, or a single group, with very long strings?
    • What considerations should I do regarding the max file size? What information about my drive HARD, the PC and the PDM can help choose a reasonable file size? I prefer to store as much as possible.
    • How does the length of a string affect access time afterwards?

    Thank you!

    -Reina Justin

    Hey Justin,

    That seems like a reasonable use configuration.  Storage of each of these entities in the channels with each event corresponds with a single point in these channels seems to be the simplest layout.

    You asked to be split into several groups in the same file:

    I see no need for it in your case.  If, however, you have a distinction you want to keep between the sets of data, it seems that it would be useful; for example, if you see an interesting event and you want to keep track that something is different with the following points, creating a new group would keep logically separate data sets.

    To the extent where storing this amount of data in each file, which looks very good.  The only thing to keep in mind is that when processing the file, you will not be able to load that much data in memory at the same time, so you will need for the fragmentary treatment.  With regard to the determination of what that magic number of samples per file that you want to place in each file, it is a bit arbitrary.  I don't know of a good formula to determine where you should partition data sets, but generally only make sure to consider:

    (1) the overhead in the passage of the files (opening/closing/write a new header)

    (2) how you want to process the data

    (3) your risk tolerance: If something were to happen to a file (deletion, corruption of volume, etc.), what is the most acceptable balance for your needs between the file size and the number of files.

Maybe you are looking for

  • What are the causes a refresh of XMLHttpRequest?

    I'm developing a JavaScript program that uses XMLHttpRequest to retrieve an XML of my Apache server. It all works very well, but in my XML file that I do outside, changes appear not in my test page until I exit and restart Firefox. Is there another w

  • Bluetooth is not ready on Satellite P750

    I'm trying to combine a Bluetooth device on my p750 satellite and when I press on "new connection" in the Bluetooth settings I get a message "Bluetooth is not ready."I've activated Bluetooth with FN F8. In the Bluetooth wizard options, the Bluetooth

  • Stream 8 5901 and 5909

    I decided to treat me this season for a new toy. Microsoft Store has a very good price on the 8 5909 flow, but Amazon has an even better price on the 8 5901 flow.I can't find any difference on the pages of specifications HP, and above all, both offer

  • HP 15-r132wm: Malware

    I bought this new laptop less than 2 weeks ago. When I turned it on so that it first, he loaded a bunch of malware.A friend who does for the library local, deleted, but suggested that someone else could have this computer before me.Another friend who

  • Update error Code 80070020

    Need help to solve this error code.  Can download, but can not install updates.