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

Tags: NI Software

Similar Questions

  • y at - it a keyboard shortcut to navigate through different open files from adobe now that we have put tabs in place?

    y at - it a keyboard shortcut to navigate through different open files from adobe now that we have put tabs in place?

    CTRL + Tab to move forward or Ctrl + Shift + Tab to move backward in the tab order.

  • SkyDrive, I created a folder, the names of 'recipes', I want to drop this file into categories for different types of food.

    If I create a folder called 'recipes' is it possible to create a path to break the categories, e.g., beef, pork, etc.

    SkyDrive, I created a folder name "recipes", that I want to drop this file into categories for different types of food, i.e. beef, pork, biscuits, pies, etc.  Is this possible?

    You can get help with Windows Live here services: http://windowslivehelp.com/forums.aspx?productid=6

  • Batch file, restoring links to different type - InDesign CS4

    Can someone help me to generate a script that will connect all the images of a particular file type in a file of the same name, but a different format?  For example, each linked Illustrator file should be reprinted in PDF or EPS format when the same filename (but of course appropriate file extension).

    Colin

    Hi Colin,

    It is already discussed, but here code below for you

    var doc = app.activeDocument;

    var lk = doc.links;

    for (i = lk.length - 1; i > = 0; i--)

    {

    lkname = lk [i] .name;

    If (lkname. IndexOf(".ai") > = 0)

    {

    var lkname0 = lkname.split (".ai") [0];

    lkfolder = File(lk[i].filePath).parent;

    myFile = File(lkfolder+"/"+lkname0+".pdf");

    If {(myFile.exists)

    LK[i].relink(file(lkfolder+"/"+lkname0+".pdf"));

    }}

    }

    or you can use Kasyan re-edit the link image script

    http://Kasyan.HO.com.UA/relink.html

    Shonky

  • Navigate trough different 'levels' in the XML file from the known item?

    I am quite new to this, so I have to ask even if it's a stupid question...

    I am trying to build a generic oracle procedure that can insert data into a table from a file XML so that message that it contains, but of course the messages has the same structure.

    I need to find the first item after data, in this case "CUS_ORD_HEAD", but it could be any message as PO_HEAD.
    So I need to somehow find the element without knowledge is the name of the element. It goes same for CUS_ORD_LINE that might be PO_LINE. Is it possible to navigate through the different 'levels' in the XML file from a known element.

    < CustomerOrder >
    < metadata >
    < TransActionIdentity > 1 < / TransActionIdentity >
    < / metadata >
    < data >
    < Client CUS_ORD_HEAD = 'ABC' CustomerOrderNumber '1234' = >
    < CUS_ORD_LINE CustomerOrderNumber = "1234" OrderedQuantity = "10" ProductNumber = "1001403" CustomerOrderLinePosition = "1" / >
    < HAPI_CUS_ORD_LINE CustomerOrderNumber = "1234" OrderedQuantity = "1" ProductNumber = "2530" CustomerOrderLinePosition = "2" / >
    < CUS_ORD_LINE_TEXT CustomerOrderLinePosition = '2' Text = "Test" CUSTOMERORDERNUMBER = "1234" / >
    < / HAPI_CUS_ORD_HEAD >
    < / data >
    < / CustomerOrder >

    the tablename parameter is identical to the XML element and attributes are the same as the columns

    OK, understood.

    You can retrieve the name of the element and attribute names in the same time by using something like the following.
    Attribute names are stored in a collection that is accessible iteratively in order to build the dynamic parts of the query:

    SQL> CREATE OR REPLACE TYPE TColumnList IS TABLE OF VARCHAR2(30);
      2  /
    
    Type created
    
    SQL> set serveroutput on
    SQL>
    SQL> DECLARE
      2
      3   xmldoc   xmltype := xmltype('
      4  
      5  
      6  1
      7  
      8  
      9  
     10  
     11  
     12  
     13  
     14  
     15  
     16  
     17  ');
     18
     19   --t_column_list TColumnList := TColumnList();
     20   --v_table_name  VARCHAR2(30);
     21
     22   tmp_cols      VARCHAR2(1000);
     23   tmp_paths     VARCHAR2(1000);
     24   tmp_qry       VARCHAR2(4000);
     25
     26  BEGIN
     27
     28    FOR r IN (
     29      SELECT table_name
     30           , set(cast(collect(column_name) as TColumnList)) as column_list
     31      FROM XMLTable(
     32           'for $i in /CustomerOrder/Data/descendant::*
     33              , $j in $i/attribute::*
     34            return element e
     35            {
     36              element TABLE_NAME {name($i)}
     37            , element COLUMN_NAME {name($j)}
     38            }'
     39            passing xmldoc
     40            columns
     41              table_name   varchar2(30)
     42            , column_name  varchar2(30)
     43           )
     44      GROUP BY table_name
     45    )
     46    LOOP
     47
     48      tmp_cols := NULL;
     49      tmp_paths := NULL;
     50
     51      --dbms_output.put_line(r.table_name);
     52
     53      FOR i in 1 .. r.column_list.count LOOP
     54
     55        tmp_cols := tmp_cols || ', ' || r.column_list(i);
     56        tmp_paths := tmp_paths || ', ' || r.column_list(i) || ' varchar2(35) path ''@' || r.column_list(i) || '''';
     57
     58      END LOOP;
     59
     60      tmp_cols := ltrim(tmp_cols, ', ');
     61      tmp_paths := ltrim(tmp_paths, ', ');
     62
     63      tmp_qry := 'INSERT INTO ' || r.table_name || ' (' || tmp_cols || ') ' ||
     64                 'SELECT ' || tmp_cols ||
     65                 ' FROM XMLTable(''/CustomerOrder/Data/descendant::' || r.table_name || '''' ||
     66                 ' PASSING :1 ' ||
     67                 'COLUMNS ' || tmp_paths ||
     68                 ')';
     69
     70      dbms_output.put_line(tmp_qry);
     71
     72    END LOOP;
     73
     74  END;
     75  /
    
    INSERT INTO CUS_ORD_HEAD (CustomerOrderNumber, Customer) SELECT CustomerOrderNumber, Customer FROM XMLTable('/CustomerOrder/Data/descendant::CUS_ORD_HEAD' PASSING :1 COLUMNS CustomerOrderNumber varchar2(35) path '@CustomerOrderNumber', Customer varchar2(35) path '@Customer')
    INSERT INTO CUS_ORD_LINE (CustomerOrderNumber, OrderedQuantity, ProductNumber, CustomerOrderLinePosition) SELECT CustomerOrderNumber, OrderedQuantity, ProductNumber, CustomerOrderLinePosition FROM XMLTable('/CustomerOrder/Data/descendant::CUS_ORD_LINE' PASSING :1 COLUMNS CustomerOrderNumber varchar2(35) path '@CustomerOrderNumber', OrderedQuantity varchar2(35) path '@OrderedQuantity', ProductNumber varchar2(35) path '@ProductNumber', CustomerOrderLinePosition varchar2(35) path '@CustomerOrderLinePosition')
    INSERT INTO CUS_ORD_LINE_TEXT (CUSTOMERORDERNUMBER, Text, CustomerOrderLinePosition) SELECT CUSTOMERORDERNUMBER, Text, CustomerOrderLinePosition FROM XMLTable('/CustomerOrder/Data/descendant::CUS_ORD_LINE_TEXT' PASSING :1 COLUMNS CUSTOMERORDERNUMBER varchar2(35) path '@CUSTOMERORDERNUMBER', Text varchar2(35) path '@Text', CustomerOrderLinePosition varchar2(35) path '@CustomerOrderLinePosition')
    
    PL/SQL procedure successfully completed
     
    
  • Structuring of data read from binary file

    Hi people,

    I am very new to matlab and trying to get a comprehensive program that will read my library of recordings of electric fish.  It is a simple binary format which auto contains information necessary for playback.  After a few days before the software, I was able to write a single passage that dissects the first record of my file.  However, I want to structure the data, so that I can easily navigate through each record added to a particular file.  I attatched the file .vi so far I came with... I don't know that I have to write a loop and add data to a table or a cluster, although the procedure for this escapes me.  Is there an effective way more to code this?  Thank you very much for any help you can be able to provide!

    Best,
    JG

    Well, I made my mistake cardinal on the forums and called Labview Matlab in my previous post.  Apology.  I've made some progress on this point, with a loop that adds data to a structure...

    Now, I would like to find a way to achieve more effectively... Any ideas?  Thanks in advance!

  • read mixed type C binary file

    Hello

    I have the script program, which can produce the desired data in csv, ASCII and binary file format. Sometimes not all of the useful numbers are printed in the csv file, so I need to read data from the binary file.

    I have atttached what I have so far and also a small csv and the bin file, containing the same data.

    I read the first value of the integer (2), but the second data type is a string, and I can't read this one... I get the error at the end of the file, I guess because the type does not, or I guess I should read the data in a different way?

    According to what I see in the csv file, the structure of the binary file should be the following:

    integer, String, float, and repeated once again all the lines in the file csv...?

    Thanks for the tips!

    PS. : the site does not allow me to upload files, so here they are:

    https://DL.dropboxusercontent.com/u/8148153/read%20Binary%20File.VI

    https://DL.dropboxusercontent.com/u/8148153/init_in_water.csv

    https://DL.dropboxusercontent.com/u/8148153/init_in_water.bin

    Here is a basic example of what I mean. Oh, the whole analysis and the string. The floating-point number at the end is not decode properly. I tested on the first entry in your file binary. If you have access to the code that generates this data, you can see exactly what format the data is. Your data seems to be 22 bytes of length.

  • save data in binary file

    Hello

    I have 700 2D double table to save and I would save in 700 different .dat extension (binary) files. I know that I can save a table in a binary format, but using a dialog box that opens a window so that I can choose the file. Since there are 700 table I don't want to have to choose the right way every time.

    I use a dialog box create a folder where I want to save 700 files. For now I earn 700 tables in the text file of 700 different using the "write to the spreadsheet file" VI and I works well, but it creates text files...

    Is it possible to do the same thing but by memorizing the data in the binary file and without using a bow of dialogue for each file?

    Thanks in advance

    Use writing binary vi to write in binary file. http://zone.NI.com/reference/en-XX/help/371361J-01/Glang/write_file/

    You could ask the user to select the folder you make below and then programatically generate paths, something like this:

  • File containing different types of question

    Hello

    I have a use case where I need to play the file with different types of data delimiter, for example:



    ABC, 123, xyz


    Thank you.

    Hello

    This seems doable with nxsd. In our case, each line seems to be a different record type and you can handle this case with a sequence of elements (one for each record type).

    For example,.

    <[...]>

  • Bug apex 4.1: adding files to a process of type plugin

    I just noticed that it is possible to add files to a process of type plugin on Apex 4.1.0.00.32, something that wasn't possible on 4.0.2.00.08
    Who knows why the development team has decided that is useful only on files to an element, dynamic action, or the plugin area?
    I had some ideas for a plugin where I could use it :)

    But is this a bug or is this a bug in the documentation?

    Hello

    I think I fix this because of a client who was complaining on this matter :-)

    I don't know why it would be useful to have files of plug-ins of type process, because they should only run in the background and do not display any data. In this case, it would be a type of plug-in box.

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • What are the different types of tools available for the siebel file cleaning

    Hi all

    Please let me know what are the different types of tools available for siebel file system cleaning.

    Thanks in advance
    Remy

    assuming that you have installed the Siebel server under d:\D:\dba81

    CD D:\sba81\siebsrvr\bin

    (1) mode considered
    sfscleanup.exe/u SIEBEL-USER /p /C SIEBEL-word of PAST SIEBEL-DATA-SOURCE /d SIEBEL-OWNER of the TABLE/f SIEBEL-LEADER-SYSTEM/m SIEBEL-FILE-SYSTEM-FOR-INCORRECT_FILES/r Y/x 'D:\sba81\siebsrvr\log\sfscleanup_report.log '.

    (2) actual performance
    Replace/r Y, N/r

    Best regards
    EvtLogLvl

  • Initializing the elements of the array to different types of data

    Hello!

    Receiving data sring and write it in the table. Shot data consist of different types of data, so now I have to initialize my element of berries somehow to correct the data type. Table example:

    char

    char

    int

    int

    float

    float

    Is it possible somehow? Or should I use the formula node or something like?

    Thank you! (new)

    These data resembles a cluster to create a cluster, you can create a constant of cluster on the comic book and use the cast function to fill in the cluster. Some things you need to be aware of:

    What is the size of the Int?

    What is the size of the float?

    What is SSE-endian data.

    Here are two examples:

    Tone

  • How can insert different types of data in the table?

    Hello
    How can I insert different types of data in the table, (e.g., numeric and string) in the same index of a table.

    example:
    index0 car 10 green

    car red 11 index1
    Index2 car Blue 12

    where green car red and blue car as string and 10, 11 and 12 in the numeric form.
    then I extracted 10, 11 and 12 a digital table

    and, the green car, red car, blue car in a string array

    Help!

    Use 'Analysis of the chain' as in the picture as an attachment.  This will extract the number and color that you can add tables later.

  • Adds data to the binary file as concatenated array

    Hello

    I have a problem that can has been discussed several times, but I don't have a clear answer.

    Normally I have devices that produce 2D image tables. I have send them to collection of loop with a queue and then index in the form of a 3D Board and in the end save the binary file.

    It works very well. But I'm starting to struggle with problems of memory, when the number of these images exceeds more than that. 2000.

    So I try to enjoy the fast SSD drive and record images in bulk (eg. 300) in binary file.

    In the diagram attached, where I am simulating the camera with some files before reading. The program works well, but when I try to open the new file in the secondary schema, I see only the first 300 images (in this case).

    I read on the forum, I have to adjust the number of like -1 in reading binary file and then I can read data from the cluster of tables. It is not very good for me, because I need to work with the data with Matlab and I would like to have the same format as before (for example table 3D - 320 x 240 x 4000). Is it possible to add 3D table to the existing as concatenated file?

    I hope it makes sense :-)

    Thank you

    Honza

    • Good to simulate the creation of the Image using a table of random numbers 2D!  Always good to model the real problem (e/s files) without "complicating details" (manipulation of the camera).
    • Good use of the producer/consumer in LT_Save.  Do you know the sentinels?  You only need a single queue, the queue of data, sending to a table of data for the consumer.  When the producer quits (because the stop button is pushed), it places an empty array (you can just right click on the entry for the item and choose "Create Constant").  In the consumer, when you dequeue, test to see if you have an empty array.  If you do, stop the loop of consumption and the output queue (since you know that the producer has already stopped and you have stopped, too).
    • I'm not sure what you're trying to do in the File_Read_3D routine, but I'll tell you 'it's fake  So, let's analyze the situation.  Somehow, your two routines form a producer/consumer 'pair' - LT_Save 'product' a file of tables 3D (for most of 300 pages, unless it's the grand finale of data) and file_read_3D "consume" them and "do something", still somewhat ill-defined.  Yes you pourrait (and perhaps should) merge these two routines in a unique "Simulator".  Here's what I mean:

    This is taken directly from your code.  I replaced the button 'stop' queue with code of Sentinel (which I won't), and added a ' tail ', Sim file, to simulate writing these data in a file (it also use a sentinel).

    Your existing code of producer puts unique 2D arrays in the queue of data.  This routine their fate and "builds" up to 300 of them at a time before 'doing something with them', in your code, writing to a file, here, this simulation by writing to a queue of 3D Sim file.  Let's look at the first 'easy' case, where we get all of the 300 items.  The loop For ends, turning a 3D Board composed of 300 paintings 2D, we simply enqueue in our Sim file, our simulated.  You may notice that there is an empty array? function (which, in this case, is never true, always False) whose value is reversed (to be always true) and connected to a conditional indexation Tunnel Terminal.  The reason for this strange logic will become clear in the next paragraph.

    Now consider what happens when you press the button stop then your left (not shown) producer.  As we use sentries, he places an empty 2D array.  Well, we dequeue it and detect it with the 'Empty table?' feature, which allows us to do three things: stop at the beginning of the loop, stop adding the empty table at the exit Tunnel of indexing using the conditional Terminal (empty array = True, Negate changes to False, then the empty table is not added to the range) , and it also cause all loop to exit.  What happens when get out us the whole loop?  Well, we're done with the queue of data, to set free us.  We know also that we queued last 'good' data in the queue of the Sim queue, so create us a Sentinel (empty 3D table) and queue for the file to-be-developed Sim consumer loop.

    Now, here is where you come from it.  Write this final consumer loop.  Should be pretty simple - you Dequeue, and if you don't have a table empty 3D, you do the following:

    • Your table consists of Images 2D N (up to 300).  In a single loop, extract you each image and do what you want to do with it (view, save to file, etc.).  Note that if you write a sub - VI, called "process an Image" which takes a 2D array and done something with it, you will be "declutter" your code by "in order to hide the details.
    • If you don't have you had an empty array, you simply exit the while loop and release the queue of the Sim file.

    OK, now translate this file.  You're offshore for a good start by writing your file with the size of the table headers, which means that if you read a file into a 3D chart, you will have a 3D Board (as you did in the consumer of the Sim file) and can perform the same treatment as above.  All you have to worry is the Sentinel - how do you know when you have reached the end of the file?  I'm sure you can understand this, if you do not already know...

    Bob Schor

    PS - you should know that the code snippet I posted is not 'properly' born both everything.  I pasted in fact about 6 versions here, as I continued to find errors that I wrote the description of yourself (like forgetting the function 'No' in the conditional terminal).  This illustrates the virtue of written Documentation-"slow you down", did you examine your code, and say you "Oops, I forgot to...» »

  • How to determine the size of the binary file data set

    Hi all

    I write specific sets of data in table in a binary file, by adding each time so the file grows a set of data for each write operation.  I use the set file position function to make sure that I'm at the end of the file each time.

    When I read the file, I want to read only the last 25 data sets (or numbers).  To do this, I thought using the position set file to set the file position where it was 25 sets of data from the end.  Math easy, right?  Apparently not.

    Well, as I was collecting data file size as I began the initial tet run, I find the size of the file (using file order size and get number of bytes so) as the size increases the same amount every time.  My size and the format of my data being written is the same every time, a series of four numbers double precision.

    I get increments are as follows, after the first write - 44 bytes, after 2nd - 52 bytes, 3 - 52 bytes, bytes 44 4th, 5th - 52 bytes, 6 - 52 bytes, 7th - 44 bytes and it seems to continue this trend in the future.

    Why each write operation would be identical in size of bytes.  This means that my basic math for the determination of the poistion of correct file to read only the last 25 sets of data won't be easy, and if somewhere along the line after I've accumulated hundreds or thousands of data sets, what happens if the model changes.

    Any help on why this occurs or on a working method, all about the problem would be much appreciated.

    Thank you

    Doug


Maybe you are looking for

  • Satellite A300D-15B - obtaining a recovery after the removal of score media

    Hello I'm trying to find a way to get the recovery CD/DVD for a Satellite A300D-15B. Recently, it has contracted a number of virus and become non-functional. I did not know the recovery partition of HARD drive and stupidly deleted recovery option whi

  • black screen HDMI

    I used to connect to a projector using a cable hdmi without issue but when ever I plug the cable two screens (mac and projector) recently received completely dark, I already tried to delete some files .plist from my record of preference and pressing

  • Satellite P70-A-125 - upgrading memory 16GB

    Hi all I have the Toshiba P70 - A-125 with 8 GB of Ram memory,Now I want to upgrade to 16 GB. 2 Bank are free. What better a 8 GBorTwo 4 GB and compatibility. There are no problems with orExample: Kit of 8GB Hynix (2 x 4 GB) PC3-12800 DDR3, 1600 MHz,

  • I have sounds, too many, on the internet radio.

    SiriusXM radio looks like several stations playing at once. its principal is like an echo chamber. can hear background noises at the same time. is this solar flare or channel mixer? Radio sounds very well in car, but bad on the desktop. I tried solut

  • HP 4520 Envy: Envy 4520 only printing in black and white

    Whenever I try to print a PDF online or a document of microsoft word or powerpoint ect., it prints in black and white. I did a test of color of the printer and align the cartridges and everything went well. The properties are not set to print in gray