Load several binary files (.r32/.r64) with DataLoadSel or similar functions

I want to automatically load several R32-records in the database, there is no DAT file that contains the structure, it must be created. Currently my script gets a list of files one then a loop produces a header for each file and the bed. The structures are beeing set correctly, the first file is read correctly, but after the data of channel of each following file are empty/filled with zeros nearby.

If I read about each file, the data is correct. There is a new DataFileLoadSel function, but it cannot read the binary data files.

I think indexing is correct. I have no idea why playback does not work, any suggestions?

Code:

While (numLoop > 0)

Call HDDelAll()

GHDChnNo = DynChannelNo

GHDChnLength = ChannelLength

GHDChnType = "EXPLICIT."

GHDDispFormat = "digital."

GHDChnFile = chnFile

GHDSaveType = 'BLOCK '.

GHDChnIdx = 1

GHDChnMode = "REAL32".

Call HDCreate()

Call GroupNameChk ("EMB-BKV-Data-" & (numFile + 1)) '... GroupCreateName

Call GroupCreate ("EMB-BKV-Data-" & (numFile + 1), + 1, 0 numFile) '...

Call GroupDefaultSet (numFile + 1) '... TargetGroupIndex

Call DataLoadSel(chnFile,"1-",0) '... Data file, ChnNoStr, IncludeHdLoad

...

loop

...

I found the error: ChannelLength is not equal for each file, it must be calculated first.

' get the length of the file

retVal = filesize (chnFile)

ChannelLength = round (retVal / (sizeOfFloat * DynChannelNo))

If (ChannelLength * sizeOfFloat * DynChannelNo) <> retVal then ' error handling

Tags: NI Software

Similar Questions

  • With the help of a ClassLoader to load several SWF files?

    Hello community,

    Pulling my hair out on this one. I want to use a single charger (from the class Loader) to, in order, load a SWF to a single movieclip on the stage. I have a charger that I want to load external files: 'peel0.swf', 'peel1.swf',..., 'peel9.swf' in 10 corresponding clips (that already exist on my scene): 'peel0_mc', 'peel1_mc',..., 'peel9_mc '.

    The problem with my code is that it does not load, but the last peel. Everything seems to be cranking away as you like, until I have look at the contents of my peeling - only the 'peel9_mc' Gets the external file "peel9.swf" in charge. When I slow down things with 'Simulate download' I see the 0-8 "peelX_mc" loaded with the correct SWF but when the 'loop' moves to the next line, it disappears from the mc. It's as if the *.addChild method does not stick.

    Any input would be greatly appreciated,

    -john

    VarioPegged!

    Yes! It worked like a charm. I do * love * this community.

    I sincerely appreciate your time and efforts to help me.

    Kind regards

    -john

  • Game/load several flv files on a single Web page with links?

    Hello

    I am looking for a way to place thumbnails of video clips (FLV) on a Web page and each load a separate video clip in a 'container box' of all kinds via xml or another script that loads the 'necessary' as opposed to all at once. I've seen a few scripts in flash - I was wondering if there was anything available that would be easy to add/remove without flash?

    Any input would be greatly appreciated (espaecially looking for examples, I can see how works before construction - the flash version, I saw in Adobe offer, scripts and tools to create, but I couldn't find a way to get an overview before going through the motions...)

    Thank you

    Jesse

    Take a look at RAVE Wimpy Streaming Media Player

    http://www.wimpyplayer.com/

    Or this MC free Flash Media Player

    http://www.mcmediaplayer.com/

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics |  Print | Media specialists
    www.Alt-Web.com/

  • Plug-in for Eclipse: how to compile a source in several binary files?

    Hello gurus of BB,.

    recently, I spent my development environment of JDE for the plug-in for Eclipse (mainly because the new Blackberry7 is only available for Eclipse). I was able to transfer my apps; one thing remains to be done.

    Knowledge, I would like to compile the same source in two applications: a Lite and a full. Source code, as I said, is completely identical for both; the only difference is in the metadata (icon, name of the application, etc.) and in the fact that once the compilation of the version Lite, I #define a variable (in the source code, there is a certain //#ifdefs).

    How could I do in Eclipse? In JDE, I simply create a workspace and two projects (.jdp files) inside they can share sources. But in Eclipse, the Application descriptor does not seem to support that?

    Eclipse is very deficient in this way.

    That's why I use Netbeans + BB Ant tools to do all my Blackberry development.

    It provides very easy access to the configurations, a great support for ANT and support of editor/preprocessor much better compared to Eclipse.

    I losers to Eclipse debugging Department, so I created an ANT script to copy the files required in JDE and use it for debugging/profiling.   It is possible to get Netbeans to work with the debugger, but requires a lot of work and is obviosly a config not supported.

    A click or script executed and I have 12 + packages of different distribution ready to be distributed OTA/Desktop/BES all carefully packed in their respective folders.

    Configurations + several builds support has been expressed in BB repeatadly plug so far into the team, but no change.   I know that I'm not a point to track down the leads/developers of plugins at each conference of BB and put up a point on the configs... maybe next year that's going to stick

    p. s.

    You can get the 7.0 files outside Eclipse... you really have nothing other than the Javadocs and the net_rim_... jar, perhaps Cap updated as well.   All of you who are located in the folder of the eclipse plugin.  Just copy JDE6.0 and replace only the files required with the version 7.0 and you are ready to go.

  • Help! How to load several SWF files by using the following code?

    In stock for 1 frame:

    ( var myrequest:URLRequest =new URLRequest ()'A.swf'();
    ( var myloader:Loader =new Loader()();
    myLoader. load () myrequest ();

    img1. addEventListener () MouseEvent. ( CLICK, button click();

    ( function button click ()event: MouseEvent ():void{ }
    Stadium. addChild () myloader ();
    }

    img1.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_5);

    function fl_ClickToGoToAndStopAtFrame_5(event:MouseEvent):void

    {

    gotoAndStop (13).

    }

    In action to frame 13: (img2 is another button)

    img2.addEventListener (MouseEvent.CLICK, unloadFunction);

    function unloadFunction(event:Event):void {}

    stage.removeChild (myloader);

    }

    you want to load another swf (for example, B.swf) when you are in frame 13 and img2 is clicked?  If so, and you do not want A.swf continue to play, use:

    In action to frame 13: (img2 is another button)

    img2.addEventListener (MouseEvent.CLICK, loadF2);

    function loadF2(event:Event):void {}

    myLoader.Load (new URLRequest ("B.swf"));

    }

  • data binary file plugin: navigate through different types of data

    Hello

    I am currently trying to load a binary file in DIAdem with the following structure:

    block 1

    1 x 8 - bit ascii

    12 x double

    block 2

    int16 1280 x

    block 3

    int16 1280 x

    block 4

    12 x double

    Block 5

    int16 1280 x

    block 6

    int16 1280 x

    block 7

    12 x double

    block 8

    int16 1280 x

    block 9

    int16 1280 x

    ...

    I managed to read the first value chain, but I did not get any further.

    Could you please give me an advance on how to proceed?

    / Phex

    Hello Phex,

    Try this. Not sure its exactly what you are looking for, but probably close.

    Andreas

  • external loading of several swf files

    I am trying to load several swf files in my flash project. I have it where it will charge but when I write the code for others it still load them. Here is my code

    Stop();

    Btn1.addEventListener (MouseEvent.Click, f);

    var loader_mc: Loader = new Loader();

    var urlRequest: URLRequest = new URLRequest("swf/graphics.swf");

    function f (e: Event) {}

    loader_mc. Load (urlRequest);

    addChild (loader_mc);

    }

    logos.addEventListener (MouseEvent.CLICK, g);

    var myloader_mc: Loader = new Loader();

    var myurlRequest: URLRequest = new URLRequest("swf/logos.swf");

    function g (e: Event) {}

    loader_mc. Load (urlRequest);

    addChild (loader_mc);

    }

    brochures.addEventListener (MouseEvent.CLICK, h);

    var myotherloader_mc: Loader = new Loader();

    ("var myotherurlRequest: URLRequest = new URLRequest("swf/BROCHURES/brochures.swf ");

    h function (e: Event) {}

    loader_mc. Load (urlRequest);

    addChild (loader_mc);

    }

    the logos.swf and brochures.swf code always loads the graphics.swf. How can I fix?

    While you seem to be creating new loaders, you do not use them.  The functions use the same lines of loading...

    loader_mc. Load (urlRequest);

    addChild (loader_mc);

  • How can I load multiple RAW files into the same workspace (in layers)?

    I want to load several raw files from my windows files in a workspace to manpulate together. How can I do this?

    You can place in the RAW files as layers of smat object. I also think that you can also use the script load Photoshop files in a stack. Other Scripts cal also be downloaded and used >

    Photo Collage Toolkit

    Scripts for Photoshop is powerful and I think that this package demonstrates this a video showing a collage of 5 model PSD image fills with images:

    The package includes four simple rules to follow to make Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.

    1. Models of photo collage for the desired print size - width and height of the size and DPI print resolution.
    2. Photo collage templates must have a background layer in Photoshop. The content of this layer can be anything.
    3. Photo collage templates must have alpha channels named "Picture 1", "Picture 2"... "Picture n".
    4. Photo collage templates layers above the background layers must provide transparent areas to reveal the images which will be placed below them.

    There are fifteen scripts in this package, they provide the following functions:

    1. HelpPhotoCollageToolkit.jsx - online help
    2. TestCollageTemplate.jsx - used to test a model of Collage of Photo while you're doing it with Photoshop.
    3. CollageTemplateBuilder.jsx - can build models that are compatible with this toolkit scripts.
    4. LayerToAlphaChan.jsx - used to convert a stack of the Prototype Image layers in a document template.
    5. InteractivePopulateCollage.jsx - used to fill interactively model Any Photo Collage. Offers more user control insert images and text.
    6. ReplaceCollageImage.jsx - allows to replace an object layer dynamic image collage populated with another image resized and positioned correctly.
    7. ChangeTextSize.jsx - this script can be used to change the size of text Image stamps when the size used by the filling did not work well.
    8. PopulateCollageTemplate.jsx - used to fill a Photo Collage template and leave the populated copy automatically opened in Photoshop.
    9. BatchOneImageCollage.jsx - used for the models automatically batch fill Collage that have only a single image inserted. The Collage or picture may be stamped with the text.
    10. BatchMultiImageCollage.jsx - used to model automatically batch fill any Photo Collage with images in an image source folder. Easier to use than the interactive script. Recorded collages can be twisted.
    11. PasteImageRoll.jsx - paste Images into a document to print on roll paper.
    12. BatchPicturePackage.jsx - used to model automatically batch fill any Photo Collage with an image in the image source folder.  Rotation of images for a better fit.
    13. BatchPicturePackageNoRotate.jsx - used to model automatically batch fill any Photo Collage with an image in the image source folder.
    14. PopulatePicturePackage.jsx - used to fill a Photo Collage fill with the same single image model and leave the populated copy automatically opened in Photoshop.
    15. PCTpreferences.jsx - edit this file to customize Collage fill preset scripts and add your own layer styles.

    Documentation and examples

  • Flash player 10.3.181.14 broke my site, multiple loading of SWF files in a table

    I load several SWF files into an array, I have add and remove objects on the stage, it is a carousel.

    All locations of the items are set in xml format. If I only have one loaded in the table it works very well, if I have more so we have) play the swf file, or b) display the swf file.

    Sovereign wealth funds themselves contain code that trigger events in the main container. Causing other elements to play or load.

    Does anyone else have this problem?

    Hi howet,

    EDIT:

    I opened a bug of flash in their system of bug that I was able to reproduce the problem, I found: https://bugs.adobe.com/jira/browse/FP-7071

    There are workaround solutions I found there.

    ORIGINAL MESSAGE:

    I had a similar problem using a load component which I use for several years with no problems. As with you, the question arose when you load multiple SWFs (or even a swf, then a jpg file) on 10.3 and later. It works fine on 10.2 and below again.

    I found a solution that I'm looking for an appropriate response and it is to delay the subsequent charges using a setTimeout hacky.

    For example:

    protected function manageLoaded (p_event: Event): void {}

    setTimeout (loadNext, 1);

    following line breaks the loaded SWF stop.

    loadNext();

    }

    I hope this help you, let me know.

    See you soon,.

    Dan.

    Post edited by: Dan Wilkinson, 06/01/2011 11:37 CEST (GMT + 1)

  • Help to load several images through LoadVars

    Hello everyone.

    I need a hand load several images using the LoadVars with a text file. I can get it to upload 1 image but no more than that. I'm aware of other methods such as the use of components, but I'm looking for a method where I can access and modify all data of the 1 text file (there will be a text variable in the file aswell to, but I am more concerned about the images at the moment).

    In any case on the issue. I created a simple .fla file of many that describes my problem.

    The film contains 3 layers:

    -top layer contains ACE

    -middle layer contains a clip empty film with the name of the instance of mcImage1

    -lower layer contains a snippet of film empy with the name of the instance of mcImage2

    The AS level contains the following code:

    ImageData = new LoadVars()
    ImageData.Load ("Data.txt")
    imagedata.onLoad = {function (ok)}
    {if (OK)}
    mcImage1.loadMovie (this.) Image1)
    mcImage2.loadMovie (this.) Image2)
    } else trace ("loading issue")
    }


    In the same folder of my .swf file, I have a text file called data.txt that contains the following

    & Image1 = image1.gif
    & Image2 = image2.gif

    In the same folder of my .swf file, I also image2.gif and two image image1.gif.

    When I run the flash the image2.gif is correctly imported. Image1.gif does not appear.

    You can download my source files and all images here

    http://www.myrealpage.com/projects/var_test/var_test.zip

    Any help that can be made on this problem is highly appreciated.

    Thank you

    Matt

    Hi again Rothrock.

    I just wanted to say thank you for taking the time to help me. I have the file works as expected today.

    For those who are interested here is what I ended up doing

    In my data.txt file:

    & Image1 = image1.gif & Image2 = image2.gif

    All first framework covering the timeline with the video clips.

    var img1:String;
    var img2:String;
    var img3:String;
    var img4:String;
    var img5:String;
    ImageData = new LoadVars();
    imagedata.onLoad = {function (ok)}
    {if (OK)}
    img1 is this. Image1;
    img2 is this. Image2;
    img3 is this. Image3;
    img4 is this. Image4;
    img5 is this. Picture5;
    } else trace ("loading issue");
    }

    ImageData.Load ("Data.txt");

    And on each individual framework where I wanted my movieclips mcImage

    mcImage1.loadMovie (_root.img1); or mcImage2.loadMovie (_root.img2); and so on.

    Thanks again for your time. It was very appreciated.

    Matt

  • read in a labview complex binary file written in matlab and vice versa

    Dear all. We use the attached funtion "write_complex_binary.m" in matlab to write complex numbers in a binary file. The format used is the IEEE floating point with big-endian byte order. And use the "read_complex_binary.m" function attached to read the complex numbers from the saved binary file. However, I just don't seem to be able to read the binary file generated in labview. I tried to use the "Binary file reading" block with big-endian ordering without success. I'm sure that its my lack of knowledge of the reason why labview block works. I also can't seem to find useful resources to this issue. I was hoping that someone could kindly help with this or give me some ideas to work with.

    Thank you in advance of the charges. Please find attached two zipped matlab functions. Kind regards.

    Be a scientist - experiment.

    I guess you know Matlab and can generate a little complex data and use the Matlab function to write to a file.  You can also function Matlab that you posted - you will see that Matlab takes the array of complex apart in 2D (real, imaginary) and which are written as 32 bits, including LabVIEW floats called "Sgl".

    So now you know that you must read a table of Sgls and find a way to put together it again in a picture.

    When I made this experience, I was the real part of complex data (Matlab) [1, 2, 3, 4] and [5, 6, 7, 8] imagination.  If you're curious, you can write these out in Matlab by your complex function data write, then read them as a simple table of Dbl, to see how they are classified (there are two possibilities-[1, 2, 3, 4, 5, 6, 7, 8], is written "all real numbers, all imaginary or [1, 5, 2, 6, 3, 7, 4) [, 8], if 'real imaginary pairs'].

    Now you know (from the Matlab function) that the data is a set of Sgl (in LabVIEW).  I assume you know how to write the three functions of routine that will open the file, read the entire file in a table of Sgl and close the file.  Make this experience and see if you see a large number.  The "problem" is the order of bytes of data - Matlab uses the same byte order as LabVIEW?  [Advice - if you see numbers from 1 to 8 in one of the above commands, you byte order correct and if not, try a different byte order for LabVIEW binary reading function].

    OK, now you have your table of 8 numbers Sgl and want to convert it to a table of 4 complex [1 +, 2 + 6i, 5i 3 +, 4 + i8 7i].  Once you understand how to do this, your problem is solved.

    To help you when you are going to use this code, write it down as a Subvi whose power is the path to the file you want to read and that the output is the CSG in the file table.  My routine of LabVIEW had 8 functions LabVIEW - three for file IO and 5 to convert the table of D 1 Sgl a table of D 1 of CSG.  No loops were needed.  Make a test - you can test against the Matlab data file you used for your experience (see above) and if you get the answer, you wrote the right code.

    Bob Schor

  • Read file test.txt (binary or what?) with LabVIEW 8.6

    Dear friends!

    Please, how to read the attached file (test.txt) with LabVIEW 8.6.  In the same VI, can I convert it in a txt file real with the results presented in the rows and columns? Please, any idea? I need help!

    The rebooting of the trace file is binary.

    Unfortunately, without a description of the real file by developers RELAP format, I don't think you are going to get very far on the decoding of the file.

    You must get directly in contact with the authors RELAP.

    Here's the blurb to the RELAP Manual:

    3.1.4.2 the reboot-Plot file.

    The restart-trace file contains almost all the parameters of calculation

    (Sub fractions, pressures, temperatures, flow rates, etc.) for transient computing together.

    A common misconception is that a parameter must be specified using a minor in change request

    in order to be available in the reboot-trace file when the calculation is complete. Affects a minor change request

    only the printed output. The restart-trace file is accessible repeatedly that the new data should arise. However,.

    during a calculation, the data are written to the reboot-trace only for minor editing file (and the plot point)

    frequency. Once a calculation has been performed, it is not possible to recover data between data

    written to the file to restart-track of the points. Therefore, it is important to choose a minor edit (and plot the point)

    frequency that provides the plot to an interval appropriate to the problem is resolved. In practice,.

    the minor change (and plot point) frequency must be changed during the calculation as the product of the problem

    from one phase to the other. Common points must be selected in the phases of problem where rapid

    RELAP5-3D/2.4

    INEEL-EXT-98-00834-V5 3-18

    setting changes are expected. For the economy, less common points must be selected in the phases

    where the conditions of rest are expected.

    Calculations are usually made using several reboots. (See Volume II for the restart entry

    requirements.) For example, a new problem runs from 0 to 10 seconds. This first part is analyzed and

    Run again from time zero that errors will be corrected. When a managed to 10 seconds has been calculated, a

    restart run is made (for example, 10 to 30 seconds), and so on. RELAP5-3D

    © offers you the possibility of

    change of almost any feature of the model at any point of restart. When changes to the model are incorporated on

    reboot, reboot-plot file reflects those changes only after the decimal point in the calculation, where they have been

    implementation. In the example above, if an injection system is added to the model to 10 seconds, then data

    for added components exists only for the time after 10 seconds. Changes, deletions and additions of model

    are constantly being implemented. If a model change is done in 10 seconds, the revised model remains in

    effect unless other changes are made to subsequent restart points.

    When a calculation is completed, the restart-trace file becomes a valuable document of the

    calculation. If lost, replacement would require reperforming the calculation, usually to the considerable

    loads. At a later date, the file can be accessed and previously compressed data can be obtained as

    necessary to extend the analysis. Therefore, it is recommended that files of restart-track of the important calculations

    be protected safely and permanently.

  • We put good permissions to pdf files on our webserver with XI Acrobat pro. Then, we want to load these pdf files on our web page client side, for examle into firefox (ff). Exist permissions or settings due to the ff load

    We would like to buy the adobe XI teacher, but we have already purchased software with which we can set the appropriate permissions for our PDFs (on our web server), but when someone downloads our Web page (with either firefox or ie) and open one of these files, the permissions installed is not supported connsideration due to the ff or ie use the pdf reader clean when loading the pdf file is inside of the web page.

    So we do not understand that such authority is - it, only a third of software (like ff, ie) - except acrobat reader - can crush and not take into consideration?

    The permissions are part of the PDF and do not change.  But as Adobe clearly warn some third party applications will ignore permissions.

    The PDF standard is open - this is why there may be several different applications to read PDF files. This open standard includes safety instructions, some developers do not know for various reasons, including an aversion to the idea that you should be able to protect your files. Make a complaint to the enforcement officials.

  • Could not load the .zip file in the media internal binary

    Hi all

    We are facing a problem in the application migrated to atg10.2 where Bcc we are not able to download the .zip in media-internal-binary file extensions.

    I went through the documentation that says it can be used for the .gif, .jpeg extensions, but we were able to use this feature in 9.2.

    So is it possible to customize it and allow zip files in the media internal binary?

    Thank you

    OK so got the mapping for this view and now able to load the zip file.

    The mapping of the view is AmPValImageExtensions. You must add the extension .zip inside with .gif, .jpeg.

  • Failed to load several files to Essbase using generics and MaxL characters

    I have several data files to load:


    Files:
    Filename.txt
    Filename_1.txt
    Filename_2.txt


    According to the following link, Essbase is able to load several files to the BSO via MaxL databases using wildcards:

    http://docs.Oracle.com/CD/E17236_01/EPM.1112/esb_tech_ref/frameset.htm?launch.html

    However, when I try to run the following, I get the following error:


    MaxL:
    import data from database MyApp.DB of data_file text Server "... /.. '. /MyApp/filename*.txt' using the rules_file server 'L_MyRule' error add to '\\Server\Folder\L_MyRule.err ';

    Error:
    ERROR - 1003027 - failed to open file [DB01/oracleEPM/user_projects/epmsystem2/EssbaseServer/essbaseserver1/app/MyApp/DB /... /.. / Filename*.txt].
    ERROR - 1241101 - Essbase unexpected error 1003027.


    I can run the following fine without any problems, but it deals only with the first of several files, and I'd rather not hardcode several files as the number may vary in the future:

    MaxL:
    import data from database MyApp.DB of data_file text Server "... /.. '. ' / MyApp/Filename.txt "using Server rules_file error ' L_MyRule' add to '\\Server\Folder\L_MyRule.err ';


    Any ideas? And what about ASO databases?

    Good point John, concatenate the files don't get you all that. Not sure about post of James it is fair after the wildcard for the usability or performance option.

Maybe you are looking for