LV 2012 Flatten To String / string problems Unflatten

I use a simple flatten to a string in order to save a setup of controls, then a unflatten string read saved orders.  The problem is when I try to read the file, it returns an error message:

122 error to Unflatten string in front Panel.vi Installer

Possible reasons:

LabVIEW: The resource you are trying to open was created in a newer version of LabVIEW and is not compatible with this version.

Which is wrong, because it was created in the same VI about 8 seconds earlier.  Are there known issues with this, or any places that I might want to watch?

Edit: This code correct, unchanged compared to now was working last night without problem.  In fact, the saved files, I have tested with last night are still working fine, but do not load recently saved files.


Tags: NI Software

Similar Questions

  • Updates KB2518864, KB2633880, KB2572073 downloaded several times on 22/05/2012. Is this a problem?

    Updated KB2518864, KB2633880, KB2572073 installed 3 times on 22/05/2012. Is there a problem with that or is this normal to leave it alone?

    Hi ChristineBurda,

    1. are you able to correctly install the other updates?

    2. have you done any hardware changes or software on your computer before this problem?

    This problem occurs when one of the following conditions is true:

    (a) an error has occurred during installation. The update has not been installed.

    (b) the update has been installed. However, a file was not updated to restart the computer.

    You can follow this link & check if it helps:

    Troubleshooting Windows Update or Microsoft Update when you are repeatedly offered an update

    Hope the helps of information.

  • My new copy of Quickbooks Pro 2012 seems to have a problem of compatibility with Explorer 9

    My new copy of Quickbooks Pro 2012 seems to have a problem of compatibility with Explorer 9.  If anyone has experienced this problem and do you know a solution?

    Hello
     
    What is the full error message?
    The average while you can also contact QuickBooks for additional help.
  • Write in text - string channel unflatten file

    Hi all

    This is my first post on the forums!  It was very useful for me, but I was not able to find a solution to my problem (simple).

    Operating system: Windows 7 (64-bit)

    2012 LabVIEW full development

    I use DAQmx unflatten chain channel to get the names of the channels, and when I write to the file text, I get the channel names to display vertically, that is to say a new line for each string in a column.  I would like to "transpose" it, but obviously, you can't transpose a table 1 d.  Any ideas on how I can do this?

    All ideas are to enjoy, thank you in advance,

    -AK

    Show us how you do that.

    My guess is that once you get the data, you have characters line feed separating the channel names rather than some other delimiter such as a comma or a tab.

    Depedning on how you go in the file of the names of channel (a string, an array of strings, write to the spreadsheet file, write in the text file,...) will determine the best way to solve the problem for you.

  • Variant data vs Flattened to string

    Hi all

    I haven't worked a lot with the type of a variant in LabVIEW and after having read about a few items, I wonder what is the fundamental difference between a flattened chain and a variant data type.

    I read somewhere that the variant data types also contain metadata that includes the data type there and again we need to wire the data type to the function 'variant data. Why?

    What is the case of the use of the variant data type? I think essentially to a use case where flattened string cannot do a job which variant data type can do.

    Thank you

    Ritesh

    Use the Set attribute varying function.

  • Why the continuous measurement and Logging in LabVIEW 2012 Project uses strings instead of Enums and orders from the queue?

    Hello!

    I noticed that the continuous measurement and a project in LabVIEW 2012 Logging using chains instead of enums and orders from the queue. I wonder if there is a good reason for it?

    Kind regards

    Anguel

    First, string vs enum debate is probably the version of LabVIEW vim vs emacs. There are good arguments on both sides, and I doubt that there is always a "winner".

    A brief summary of our reasoning for the current state of the project examples:

    1. We used enums for the state machine because it is self-contained. A state machine will never tell himself to enter a State, he does not know. Knowing (as the programmer) all possible States with the help of an enum allows you to enlist the compiler in order to help us avoid mistakes to change the time (because you can't quite out an enum and LabVIEW can be said if you are not covering all cases to a structure of the case, etc..).

      Enums provide greater protection and rigidity by ensuring all withdrew at the time of publishing. This is often the 'default' recommendation that we do.

    2. We used strings for messages in queue manager because the producer of message and the message handler could be independent processes that are reused or traded. Channels avoid the need for the compiler to be able to connect the orders and push this responsibility to the programmer. This allows you to develop some sub-components independently as long as you agree to a series of channel commands that you can manage - you need not to share a file 'messages.ctl' or 'states.ctl '. It is conceivable a loop of message management a message it does not, how you can decide to either silently ignore it or will trigger an error (as we do in the model). The strings make it also easier if you want to swap the queues of LabVIEW outside by a TCP implementation for network vacilitate or intra-Processuse communication where the other end may or may not be written in LabVIEW.

      Channels to provide more flexibility (that is, you can add new commands to an existing via plugins system, you can pass parameters as part of the string, etc.) at the expense of pushing her potential errors at run time and to put more responsibility on the programmer.

    3. The actor's gifts frame a 3rd option - using classes such as messages. For me, it combines many of the advantages of these two enumerations (strictly typed, change errors) and strings (flexible and scalable), but with the disadvantage of being somewhat less transparent (you understand OO, be comfortable to navigate through a multitude of screws, legacy of understanding, etc.).

    I don't know there are other reasons, others to the breast OR had or seen as we validated models and examples of projects in-house, but here are my reasons. We know that we can not design for each situation there - our goal is to get useful models against new users to make them aware of what well thought LabVIEW programs are similar to experienced users know their applications better and I hope they do not hesitate to change what we provide or create their own designs, when they feel it's necessary. (On a side note, please share what you come up with - a community of experts sharing models would be really useful to us all LabVIEW users).

    Best regards

    Simon

  • Sort a table of strings [problem]

    Well, im pretty new in the java development and app, I used to make games using AS3 and now I am with my teacher in certain BlackBerry applications.

    The thing is I can't sort an array of string, I looked around and I noticed that I need to make a comparison.

    I want to sort an array of XML that will be used on a drop-down list. How can a comparator and use it?

    Easy PS:go on me, im really new ^^

    Which part of this is a problem with? Looks like things fairly straigh-forward.

    You write a class that implements the comparison. You have two methods to implement, compare() and equals(). Each method is passed two objects. It is the responsibility of your application to prvide the good performance based on the two objects.

    Since your comparator compares strings, you have already integrated routines to compare.

    String.compareTo)

    and

    String.Equals)

    In both cases, you can simply return the value of the construction compared with chains.

    See the javadocs for comparator, String, and SimpleSortingVector

    Work on it a bit and come back with a more specific question.

  • ASP connection string problems

    Hello

    I have inherited a website and need to make some urgent changes, currently all recordsets is handcoded and is in an absolute mess, I migrated to SQL server to allow me to create new recordsets through DWMX, but the site is far from ready to move to the new DB and I am unable to connect to the DB access.

    The database is a db access with a security.mdw file that controls access how can I make changes to my connection string to connect? I have included my latest effort below.

    Dim MM_conTest_STRING
    MM_conTest_STRING. Mode = adModeReadWrite
    MM_conTest_STRING. Provider = "Microsoft.Jet.OLEDB.4.0".
    MM_conTest_STRING. ("Properties (" Jet OLEDB: System Database ") = Server.MapPath("***\Security.mdw ")
    MM_conTest_STRING. Properties ("User ID") = «*»
    MM_conTest_STRING. Properties ("password") = «*»
    MM_conTest_STRING. "Open Server.MapPath("***\Database.mdb")
    MM_conTest_STRING = "DRIVER = {Microsoft Access Driver (*.mdb)}; DBQ ="& Server.MapPath("***\Database.mdb")

    However this only gets me the following error message:
    Microsoft VBScript runtime (0x800A01A8)
    Object required: "
    fporiginal/connections/conTest.asp, line 9

    If I remove everything except the last line, I get the following error:
    Microsoft OLE DB provider for ODBC (0x80004005) drivers
    [Microsoft] [ODBC Microsoft Access driver] You do not have the necessary permissions to use the object '(unknown) '. Ask your system administrator or the person who created this object establish the appropriate permissions for you.
    / fporiginal/categories.asp, line 15

    Any help gratefully received

    See you soon
    Ossie

    Duh! for anyone interested is solved my problem - the answer:

    MM_ConTest_String = "Driver = {Microsoft Access Driver (*.mdb)}; DBQ ="& Server.MapPath("***\Database.mdb") &" SystemDB = "& Server.MapPath("***\Security.mdw") &"; UID = *; pwd = *** "

  • LabVIEW 6.1 and 2012 at the same computer problem

    Hello world.

    I've been using Labview 6.1 for a while and it worked fine for me.

    I recently installed Labview 2012 on the same computer and looks like the serial port of functions do not work properly. Whenever I try to open an example of VISA communication, labview freezes.

    I guess it's because even though I can install two versions of labview in the same computer, the drivers can be installed once correct?

    But I thought that labview 6.1 and 2012 may share the same VISA driver.

    Is there a way I can resolve this problem with versions of labview works correctly?

    Thanks in advanc.

    The LabVIEW and VISA compatibility chart is here. As you can see, there is no version of NI-VISA which is compatible with the two 2012 and your old 6.1. Indeed, the graphic poster not only any version of older than 7.1.1 LabvIEW.

  • Cannot restore Word 2003 as an editor for Outlook 2003, after May 10, 2012 automatic update. KB2598332 problem?

    Had to go back to May 9, 2012 point to fix this restoration. Equipped AM Vista 32 bit with automatic updates. Office 2003 is the professional version.  Someone else had the same problem?

    Hello

    I suggest you to restore the system to an older restore point and check.

    System Restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/system-restore-frequently-asked-questions

  • TestStand 2012, BatchModel treatment of intermittent problems result.

    During execution of the BatchModel results are supposed to be going to separate directories for each Socket.  What we see is that intermittently, the path is not correct for a few shots, that is to say the results for a socket will be written to the badly taken directory.

    What could be cause the shells to the incorrect path generator?

    To obtain the path and the following file names has been added to USE Start, in NI_ReportGenerator.seq:

    Parameters.ModelPlugin.PluginSpecific.Options.ReportFileBatchModelExpression = ""-"-... \\\Data\\\"+ Parameters.UUT.ModuleType + "-" + StationGlobals.JSFPNR.TestType + (Parameters.UUT.ModuleType == ""?) "" " (Reports\\\":"\\\Reports\\\") + Parameters.UUT.SerialNumber +" \ "+ Parameters.UUT.ModuleType +"[] - TR2_ _MSN"+ StationGlobals.JSFPNR.TestType +" _PN ["+ Locals.UUT.PartNumber +"] [] []. " \"",

    Parameters.ModelPlugin.PluginSpecific.Options.BatchFileBatchModelExpression = ""-"-... \\\Data\\\"+ Parameters.UUT.ModuleType + (Parameters.UUT.ModuleType == ""?) " (Reports\\\":"\\\Reports\\\") +" BatchReport [] []. " \""

    You can insert steps Lock acquire and release the lock "TestStand - determine report File Path Mutex" around the stage that you added AND current steps of determination of file report so that the report expression file values are not changed by a power outlet while being still used by another taken?

    Lock: Acquire 'TestStand - determine the report queue Path Mutex'

    Lock: Open early 'TestStand - determine the report queue Path Mutex'

  • IMAQ flatten image for the 64-bit version of string

    Hello

    I noticed customer odd based on vision "flatten image chain" on labview 64-bit edition. In my program I use flatten image to the string (with compression to JPEG and kind of flatten Image) to compress and send data to another application. I noticed on the compressed image color missmatch. I say red (255,0,0) 32-bit RGB image and I flattened for string and then save this string as a binary JPEG using Write to vi. When I open the file of the picture is blue (0,0,255). It doesen't matter how data is written (big endian, little endian or native) the result is always the same. 32-bit edition Labview, the code worked correctly.

    I reported a bug in the NC and I'm still waiting for a solution to this problem.

    LabVIEW: labview professional development system 2010 32/64 bits (with vision development module) completely v10.0f2 lie

    Systems: labview 64 bit on windows 7 64 bit-> flatten image to string-> false color

    LabVIEW 32-bit on windows 7 64 bit-> flatten image to String-> colors OK

    LabVIEW 32-bit on windows 7 32 bit-> flatten image to String-> colors OK

    A picture of the block diagram that I used to test the conversion is attached.

    See you soon

    Hi 3DVision.

    I think I see the problem... you code looks like he expects that out of "flattening the image of the chain" will actually be a JPG file as a string, because you have chosen to use the JPG compression options. However, this is not the way that VI is intended to be used. It is simply a way to convert an image type of Vision in a string representation which can be easier to haul around (for example via the network, the user file format, etc.). It is a parallel to normal 'flatten' that can be used on any type of data from LabVIEW. The format of this string is the owner and has provisions for storing information that is specific to the Vision images that cannot be represented in the file formats normal image (overlay information, benchmarking, custom, etc. data info). If you are save the string flattened in a file and expects to open as a normal JPG file, it is unlikely to work properly. The only way that it would be guaranteed to work is if you switch to the corresponding VI "unflatten chain. I don't know why it works in 32-bit mode, but it sounds like a lucky fluke.

    For your use case, you probably want to use the VI "IMAQ write the string. This does not give a result string that is identical to the specified file format.

    Eric

  • Flatten to a string to send arbitrary objects by messages from the user interface?

    Hi people,

    I am trying to send arbitrary data by messages from the user interface defined by the user to my labview interface. Something funny happens then: if I send the data through the message of ui, it seems I have something strange. There is only one character or nothing in the message of the user interface that reached my reminder.

    It seems that flatten channel also creates control characters that are interpreted by NI TestStand and Labview not as members of the chain, and for this reason I only get incomplete data. within the action of testand, which creates the flattened data, I put a dialog box to display the string data, and it seems that at least up to 255 (ascii) characters are used.

    Is there something like uuencode/uudecode to avoid this problem?

    Thanks in advance

    Okidoki, found.

    His «binary"produced by «Flatten the string» string Apparently I thought, the LabVIEW data type is incompatible with the API of TestStand from LabVIEW. In conclusion I would classify this as a bug (sorry people, at least there should be documentation) API for LabVIEW TestStand 2014.

    As a solution, I use flatten it in XML, which is a printable and human readable 'normal' string.

    It was trial and error, and I'm not enjoying this.

  • Error 74 to unflatten string in a device helping custom interface hardware Inline

    Hello

    I am creating a custom device Interface material Inline to communicate on a bus series to Veristand. I want only to communicate via RS232 veristand channel values, I use flatten/unflatten to chain to transfer my data. I choose what it because VISA Write/Read uses strings, and he would always use the same size of string (channels Veristand = 64-bit double-online 8 character string).

    But when it comes to try it with veristand, I have error 74: corrupt memory or data structure. I noticed this error came from the "string unflatten".

    So I plugged in a "clear error" vi just after "unflatten to channel" works, for my custom device runs but gives me wrong results. Then I used the tool NI OF Trace to see what I was writing to the RS232 bus. You can find the result of this. When we take a glance on the viWriteasync functions, we can see that the data written on the bus will already '?... " W.... M' which translates as 0,000232195, although the value that I have passed to the bus was greater than 1.

    I plugged the constant 'false' by 'add array or string of size' 'flatten in string' and 'unflattend to the string' functions.

    Does anyone have an idea what's wrong?

    Kind regards

    Maxim

    Is your session series Visa implemented to put an end to strings with the null character? It's been a while since I worked with serial number, but I remember this could be the case. So then you'd have trouble sending binary data flattened since it would have a lot of characters in it null. Another solution would be to format doubles as text with a specified number of digits of precision, although this will be less accurate and can take more bytes to transfer.

  • The null characters to flatten to a string

    Hi all

    I use the flatten the string function to convert a digital picture of a data string flattened in hexadecimal. When I do that, it adds 6-character null (zeroes) before each element of the array. How can I flatten my table without the addition of these null characters?

    Thank you

    Jasmine

    Change your data type to U8 (bytes) and a constant false to precede the wire size.

    With an array of bytes and not prefix size, you might also Type Cast

Maybe you are looking for