Binary read with one of the many possible definitions - or - how ot loop over different groups?

Hi all

I have a group of different data types that I save as a binary file and read it again at a later date with an another VI. I saved the definiton of cluster with a typedef, so I am sure that I use the same type of reading and writing.

Now, I needed to change the cluster in the writing program should include another value. However, I still want to be able to use the VI of reading to read the old and new data files. I also have the opportunity to change the definition of binary file in the future (in VI writing) and be able to quickly adapt the VI to read the new definition while maintaining compatibility with the old.

My plan was to have a typedef of the pole for each revision, say v1.ctl, v2.ctl, v3.ctl...

Suppose I have a binary input file that has been saved using one of these typedefs but I don't know which. I now open the file and try to read its binary contents with each of my typedefs for data type and to stop once the reading of the binary VI gives no error. Then I would translate this cluster to the definition of cluster current version by wiring through existing values and assigning values of model / default for variables that are not on the binary file.

My idea on how this could work is described here, with three versions of filetype:

For each new version of filetype I would need a new business structure although the content of the business structures is almost identical.

Because I save the file type definition version in my files, I could even simplify and use a separate case structure to update the data and fill in the dummy data:

Now the error structures are completely identical, only their inputs differ by type. How can I work around this? How can I loop over the typedefs from different cluster effectively?

I use LabView 2012 SP1.

Since you already have a version of the cluster, just read this byte digital itself and then use a case structure date back to before the version and read the entire cluster based on whatever the version of the type definition read you.

Tags: NI Software

Similar Questions

  • I have an older version of Firefox 3.6.6 I think I'm having a problem with one of the websites that I sign. Is it possible to upgrade to the latest version

    I have an older version of Firefox 3.6.6 I think I'm having a problem with one of the websites that I sign. Is it possible to upgrade to the latest version. Without losing all my favorites and the saved passwords?

    Yes, see this article:

    After:

  • a problem with one of the files in the TestStand\AdapterSupport\LabVIEW directory

    When looking at the module a LabVIEW VI called for TestStand, I get the following message:

    A problem with one of the files in the TestStand\AdapterSupport\LabVIEW directory.  Please reinstall or repair.

    I made the mistake of cleaning C: in my computer.  Clean the C:\National Instruments downloads

    Why would someone put bits of applications or modules, etc. in such a directory?

    I'm not too crazy about restoring 11FR in this folder.  It's just crazy!

    If anyone has encountered this before?  No "easy"? outside re - install TS...

    Side note: I do not touch anything in the \Program files. National Instruments\TestStand\AdapterSupport\LabVIEW

    What version of LabVIEW and TestStand do you use?

    In 2012, TestStand, this directory is mapped to:

    C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 2012\AdapterSupport\LabVIEW

    Have you tried mass compiling the screws in this folder?

    I had to create a new 'TestStand - default values XX.llb"file, where XX is the last version of LabVIEW you use, but I have not seen this message before.

    Good luck

    PH

  • How did each service assigned to one of the many instances of svchost on startup?

    You use Process Explorer frequently, and I noticed that when the pointer is placed on one of the many svchost processes, there are at least twelve bodies. Procexp displays a tip listing the services it supports, the number of items listed for each instance is different between these instances of active significaltly. Manager tasks indicates that the statistics for the active instances vary widely between these instances. I tried to answer this part of the question myself, but I have not find any instanceswithonoy service except fot some where the [Stop] button is not active.

    The registry entry for each service can contain a value that specifies the group to which it belongs. The groups are listed in the registry key HKLM\System\CurrentControlSet\Control\ServiceGroupOrder.

    The Service Control Manager maintains a database of services and services start-up control.

    You can change the group to which belongs a service or specify that it runs in its own service host using the sc config command. Forcing service is running in an isolated host can be useful in debugging a problem.

    http://TechNet.Microsoft.com/en-us/library/cc990290 (WS.10) .aspx

  • When one of the contolfile is corrupted so how to recover the controlfile?

    When one of the contolfile is corrupted so how to recover the controlfile?

    Simply copy another control on your database to a file simply paste in the location of the corrupted controlfile.

    or

    Manually re-create the control file

    SQL > STARTUP NOMOUNT
    SQL >
    CREATE CONTROLFILE REUSE DATABASE "orcl".
    NORESETLOGS [archivelog/noarchivelog]
    MAXLOGFILES 5
    MAXLOGMEMBERS 3
    MAXDATAFILES 10
    MAXINSTANCES 1
    MAXLOGHISTORY 113
    LOGFILE
    GROUP 1 ' path to the REDO01. LOG' SIZE xxxM,
    GROUP 2 ' path to the REDO02. LOG' SIZE xxxM,
    GROUP 3 'path to the REDO03. LOG' SIZE xxxM
    DATA FILE
    "the data 1' SIZE xxx file path,
    "path of the file of data 2' SIZE xxx,
    "path of the data 3' SIZE xxx file,
    .
    .
    .
    .
    .
    .
    .
    "path of the data file n ' SIZE xxx,.
    ...
    GAME CHARACTERS [characater_set];

  • Can the Sandisk Sansa Fuze 4 GB MP3 read podcasts one after the other

    For health reasons, I need to take a long walk after each meal.  For many years during my walks that I listened to podcasts on my wonderful old Sandisk sansa, who plays a podcast after the other without action from me until I have stop.  It's perfect here in the North when I walk in 30 below zero weather. I mean that I don't want to open my parka and out the player to move to the next podcast.  If I had to do, they would find me lying in the snow, Frost, like all the rest of those poor Devils who bought the wrong MP3 player.  Anyway, after years of using the plug-in on my old Sansa fuze is pretty much exhausted and the player must be replaced.  I buy a sansa clip, but had to return when I discovered that he has not played podcasts one after the other, automatically. (And it's also too small for my needs).  Before you buy a new 4 GB sansa fuse, so I need to know if this greatest player will play my podcasts consecutively and one after the other.  Your advice would be much appreciated.

    MrHat wrote:

    I currently use the Sansa e250 2 GB MP3 Fuze player Walkman.

    There is an e250 (2 GB) and a rocket. They are 2 totally different players. The "rocket" (original) replaced the e200 series model.

    But if your podcasts are placed in the Podcast folder (or even record Audio books) and then ranked in the same "Album" folder, they must play consecutively without stopping, regardless of the model of reader.

  • Q is there away from keep two active windows on the desktop? Using Sandboxie with one of the windows...

    start two game clients 'same game' on my desktop, but when I switch between games, the title on one of the windows changes and freeze the game inplace until I click on it... Q is there away from keep two active windows? Use Sandboxie to run the second client of the game...

    Hello

    (a) what game are you trying to play?
    (b) is an online game or software installed on your computer?

    You have contacted the support of Sandboxie, to determine if the program is able to provide this functionality.
    To do this, click on the following link: Help of Sandboxie
    If it's an online game, you can also use the new session under file in Internet Explorer to connect with two different credentials.

    Thank you, and in what concerns:
    Swati Keni-Microsoft Support

  • I can design print with one of the new touch apps?

    I was ordered to create my friends wedding invitations.  I've been on this site in wanting to try InDesign but then saw the new applications that seem to have a lot of features.  I don't have a mac, just an ipad but because I'm so new to the idea of all this, I can't determine if these applications work for me.  If anyone can help?

    Thank you!

    Hello!

    I'd certainly keep with InDesign for the creation of print media. It is a really great program specifically designed to work with the page layouts and print media.

    TouchApps you can get are great, but not on par with InDesign, especially for what you're trying to do. All TouchApps are listed and briefly described here: http://www.adobe.com/products/touchapps.edu.html

    Photoshop Touch and Collage have the functionality to incorperate text, photos and custom design elements. But they are time limited in your ability to refine and develop a layout - an area where InDesign, Photoshop and Illustrator excellent.

    Proto is designed to create web diagrams and ideas is used for drawing vector, so neither could well meet your needs.

    In short, go with InDesign. It is a very strong application intended for developers of printing. You can really go wrong, you must also focus on Photoshop or Illustrator personality for the more visual aspects of your invitations, like backgrounds, illustrations, etc.

    Good luck!

  • no doubt, use one of the many other search engines so I don't have to deal with that.

    I'm tired of asking questions and spend hours of my cope with this problem. Good bye.

    Uh, Firefox is a web browser, not a "search engine".

  • Disc 6 of 6 of restore disks will not be read. Stuck between the 5 and 6. How do I? HP Pavilion with XP did not come with disks.

    Due to problems with my computer, I decided to start over and restore hard drive in its original state. The computer came with all disks, so I burned the discs to restore immediately after purchase. The first 5 disks has brought but the last one, number 6, the habit of reading. Now I'm stuck on the screen that says 'Number 6 in the drive Insert disk'. I tried to restart the restoration from the beginning, but it passes directly to the same screen asking for disc 6. What can I do?

    HP Pavilion

    Windows XP Home Edition

    Hi Keith,

    I recommend you contact HP for recovery disk. For more information, see this link:

    Order of the recovery disc for Windows 7, Vista or XP

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c00810334&LC=en&DLC=en&cc=us

    Hope the helps of information.

  • one of the many who get the same error lately

    Here is a copy of the results of the Diagnostic tool regarding the received message that my windows 7 is not genuine more... After you for ten years on the computer, I bought brand new which is a HP.  The program is entered in the

    computer itself... have no drive or whatever it is to correct this problem.  I have so many problems with this and can not solve the problem for what anyone... I know that it is and has been a real Windows 7 and never had any problems before... Here's a copy:

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->

    Validation code: 0x8004FE22
    Code of Validation caching online: 0x0
    Windows product key: *-* - 73CQT - WMF7J-3Q6C9
    Windows product key hash: RmurcM3ZxzWyfEP9WtPUJw = + KaFG
    Windows product ID: 00359-OEM-8992687-00010
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 6.1.7601.2.00010300.1.0.003
    ID: {79973038-1A47-4796-A58B-8E56D1C35256} (3)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: Registered, 1.9.42.0
    Signed by: Microsoft
    Product name: Windows 7 Home Premium
    Architecture: 0 x 00000009
    Build lab: 7601.win7sp1_gdr.150722 - 0600
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)
    Default browser: C:\Program Files (x 86) \Mozilla Firefox\firefox.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {79973038-1A47-4796-A58B-8E56D1C35256}1.9.0027.06.1.7601.2.00010300.1.0.003x 64*-*-*-*-3Q6C900359-OEM-8992687-000102S-1-5-21-3652630692-3903378912-618038599HP-Pavilion,NY639AA-ABA p6213wAmerican Megatrends Inc.. 5.43 20090910000000.000000 + 0004EC83207018400F804090409Time(GMT-05:00) Standard is03109

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.1.7601.17514

    Name: Windows 7 HomePremium edition
    Description: operating system Windows - Windows (r) 7, channel OEM_SLP
    Activation ID: d2c04e90-c3dd-4260-b0f3-f845f5d27d64
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 00359-00178-926-800010-02-1033-7600.0000-2392009
    Installation ID: 017644127764563780082063005005533376213904375446581242
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338
    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339
    Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340
    Partial product key: 3Q6C9
    License status: Notification
    Reason for the notification: 0xC004F057.
    Remaining Windows rearm count: 3
    Trust time: 10/11/2015-13:11:28

    Windows Activation Technologies-->
    HrOffline: 0x8004FE22
    HrOnline: n/a
    Beyond: 0 x 0002000000000000
    Event timestamp: 10:9:2015 09:41
    ActiveX: Registered, Version: 7.1.7600.16395
    The admin service: recorded, Version: 7.1.7600.16395
    Output beyond bitmask:
    Altered service: sppuinotify

    --> HWID data
    Current Hash HWID: NAAAAAEAAAABAAMAAwABAAAAAgABAAEAonbKRL7UPuU26CRDjspEQeJsxJYIyhg75qVWuA ==

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes, but no SLIC table
    Windows marker version: N/A
    OEMID and OEMTableID consistent: n/a
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    HPQOEM APIC-SLIC-CPC
    FACP SLIC-CPC HPQOEM
    HPET SLIC-CPC HPQOEM
    MCFG SLIC-CPC HPQOEM
    LASRYVITRAGE HPQOEM SLIC-CPC
    GSCI HPQOEM SLIC-CPC
    SSDT HPQOEM SLIC-CPC

    hope you can help me with easy instructions... I'm not a technician at all less... but hope I can solve this problem with your knowledge and help... If I can have a clear understanding of what I need to do...

    Thank you Gail

    Gail

    Select Start, right-click on computer and select Properties. There is Activation of Windows at the bottom of the windows. Click on change product key and enter the product key (25 characters), and then click Next to activate via the internet. The product key to be entered is to be found on the CoA sticker in the battery or on the underside of the laptop compartment.
    http://Windows.Microsoft.com/en-us/Windows7/what-is-the-Windows-certificate-of-authenticity

  • Why one of the many images will save not the same size?

    I'm very experienced PS user/commercial photographer, normally to do my job without any major problems. But I have lived just an anomaly weird to prepare images for my site and I wonder if anyone can understand what I have to be dominant?  After all changes to color/tone/compositing on each image, I have run through a series of droplets, which variously flatten, sharpening, size, change the color profiles and so on. These droplets self made save me a lot of time and effort and working perfectly for years. The end result for each image should be a jpeg in sRGB that matches the dimensions of the page of my site, with a size optimised for minimal degradation and quick loading. These images should weigh anywhere from 250 to 560 ko, and without exception, they always have. So far. Before going to the last drop (which will save in JPEG format at a certain level of quality), they are all flattened TIFF, all exactly the same pixel dimensions. The final JPEG images vary a bit in size, depending on the complexity of each image, but this one, simple images of winds up to 2,1 MB - more than 5 or 6 times the size of other images.  I went back and looked at this image at each stage of its development, and I can't see for the life of me what it differs from his comrades, or why it won't save to 400 KB or more.  There is no channel stored in the DSP, or anything else I can think of that I might have missed. Any ideas?

    The image is loaded on my site now, big as is.  You can see here in this new collection of images...

    Cruise 1_5 | Todd Pearson - Professional; Photographer

    Thank you

    Todd Pearson

    And we have also seen some cases here recently that came down to the metadata. I know, it seems unlikely, but apparently metadata can reach huge sizes in certain specific circumstances. So if you haven't already done so, try saving for the Web (with metadata set to 'none' or ' copyright/contact').

    Copy and paste into a new file deletes also all the metadata.

  • To convert my Keynote slideshow (09) .mov, I always end up with double blades on slides with sound, a sound and one without the sound. Why? How should I do?

    When trying to convert a Keynote slide show (09) in format .mov, I end up with double blades on slides that have sound. What makes the total video almost twice as long as I wish. How do the conversion with only sound slides appearing and eliminating silent rehearsals?

    You will need to confirm which version of Mac OS, and Keynote, you use as your profile shows very old software that is obsolete and is no longer supported. I assume his keynote address version 4 If you are using Mac G5.

    IV never heard of Keynote, do what you describe in any version, so we need the details of how you have the presentation put in place. If you post a sample file that illustrates this problem on Dropbox I review on my old power Mac.

  • I need to use Livefyre with one of the sites I use. Fyre Live will work properly with Firefox. Do I need a plug-in or whatever it is. There appears to be a pr

    When I created the account Live Fyre to post comments on a blog that allowed me toregister OK. But when I try to post a comment, the comment will not appear, and I do not receive the error messages.

    Do I need an app or an additional plugin or LiveFrye is not compatible with version 12 of Firefox

    Found the problem. Blind squirrel found Acorn, as I'm sure is not well versed in the software. Firefox Privacy was put to not allow 3rd party cookies. Had to livefyre.com a trusted site. After it worked well. Tip came from livefyre help forum.

  • Security of fingerprints: works with one finger, the other does not.

    Just my new iPhone 6s had installed at the local AT & T store. Footprint security has been set as usual.

    It works with your right thumb but not the left. My old phone doesn't have this problem.

    Suggestions? Thanks in advance.

    Use the ID Touch on iPhone and iPad - Apple Support

Maybe you are looking for