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.

Tags: NI Software

Similar Questions

  • Write the text of the ae file (Meet written a single line)

    If I run the Toolbox code extended, it works fine,

    But if I run the code through the effect does not work well (all written on one line instead of two lines)

    What should I do so that through the after effects, it will work correctly?

    Thenks

    var a = 3;

    var c = [10,16,7];

    var myfile = new File("~/desktop/test1.txt")

    MyFile.Open ("w");

    MyFile.Write (a + "\n" + c);

    MyFile.Close ();

    Win.Close ();

    Your problem is not that it is to write a line, but add 3 to 10, so the output is:

    13,6,7

    You can operate it by changing this line:

    MyFile.Write (a + "\n" + c);

    TO:

    MyFile.Write(a+"\n"+c.Join(","));

    I don't know why AE work like this, but the solution will not work.

    Personally I do not like the different types of concat, and I write for strings only files.

  • Extract strings in the tdms files and write the strings in the file txt or lvm

    Hi all

    I'm struggling to extract strings from a file of tdms to write them in a txt file.

    The strings were written in tdms is a time stamp data recorded to a compact RIO.

    I put the chain in a different group from the PDM, but when I use the function read tdms with the group name, as I said, an error message is always take place.

    Thanks for all the help.

    PS: I have attached an example of tdms file I got over here.

    Kind regards

    Yifeng

    I tried your attached file and it seems that everything goes file. I have attached the screenshot of my VI here, what do you want?

  • Writes a text file from a network computer to another computer on the network.

    It is possible to write a text file from a computer on the network to another computer on the network through labview without using FTP?

    Hi bebo_lm,

    It depends on how they are connected. If you have a 'normal' access to the pc and you can write on a hard drive of the other computer, you can use the writing functions of files or the copy of the file. If they are not connected like this, then you need another service. Why you do not use FTP?

    Mike

  • Error 1: Write to text file

    Hello. I get an "error 1 write to text file" in my program.

    The error occurs occasionally and I can't understand what is causing the error. What is this error? If I ignore it and press to continue the program seems to work and it stores data. The program acquires the data and records to several files. The screenshot of the error is attached.

    Thanks for the help

    I got it. I added a variable additionl to start recording only after that the name references were initilized. It was the problem of race condition, but now I know more about the labview data flow

  • How to write the text file in Shockwave?

    Someone knows how to write the text file in Shockwave on the disc of the user?

    Thanks in advance.

    These Xtras can cause a lot of havoc when used with the intent to hurt.
    What you can do is to write with setpref and store a list of backups and the
    registers itself separately. Next, you need to build your own save/open
    dialog box for the user:
    * Choose a previously saved file to load or replace
    to create a user type the name of a new file to be saved.

    The only thing that remains is that the user can't decide where files
    are saved.

    Manno

    SiuLinda wrote:
    > Thanks a lot for your answer.
    > Yes, cookies is good, but I have to write a program to save the text file in
    > When the user wants, the user can open these files later if they like as, using
    > Filextra and Fileio, but I found that all these Xtra extensions seem to be not supported by
    > shockwave.
    >

    --
    ----------
    Manno Bult
    [email protected]

  • How to save the string in a file with some special characters

    Hello

    I m using MD5 - llb to create a password.

    So, I want to save this MD5-string to a file and read it later abd compared again.

    Works perfectly with a proplem:

    Some Word create a '\r' in the string of MD5 and when I save this string in a file and read it at the time its read as a '\n' for the comparison does not work.

    My question is: How can I record a string exactly as if it were somewhere and read back (also the invisible characters)

    For example, the word: heinz

    is in MD5: \r\FB^\07\A6\07T\C7\D9\C2\94\AB\C9\1DS\95 (string as display codes indicator)

    When I save the string in a file, then I rerad back: \n\FB^\07\A6\07T\C7\D9\C2\94\AB\C9\1DS\95

    I used the "write text file" and "read text file".

    What should I use to record and play back the same thing?

    THX

    Have you tried right click and deselection "convert EOL?

  • Text string in array of integers - with law enforcement in the text string-

    Hello

    I have a text string containing the measurement frameworks.

    I want to place each image in a first time 0, 11 x 11 array (with the same order in the text file).

    In the figure below, I tried to convert it to a table, but the table only contains the first "column" in the text file.

    Any suggestions?

    Crows is right, your channel is very dirty, with a variable number of spaces, lines starting with spaces and space + newline delimiter.

    In such cases, I like "scan of the channels for tokens", because it can automatically enter into identical consecutive separators in a single. Here's a quick example.

    Your lines are of variable length, a 2D picture seems inappropriate, because all rows have the same number of elements. For example, consider a table 1 d of clusters containing the tables 1 d.

    (Of course, it would be cool "worksheet in table string" could deal directly with identical consecutive separators as found here, so thank you for supporting my idea.) He deserves more than 24 voice )

  • detection of changing text string values

    Hi, I have a text string, the string length is more than 10,000.

    Whenever the value of this string changes, I need to detect and know the index.

    I can loop through the channel and compare if the channel is short. The best ways to do this?

    Thank you.

    Hi IIx,

    The ChnFind expression can only reference global variables of DIAdem.  Then you have to be your "Str2" variable GlobalDim() or simply use one of the existing temporary T1, T2... variable.  Also, you want to refer to all of the channel in the expression, not only one of the values of the string.  The motivation to use ChnFind is so looking through the canal enters the call function and not with primitive VBScript.

    T1 = "Group1/channel 1".
    T2 = 'test '.
    startIndex = 200
    Indexfind = ChnFind ("Ch (T1) T2 =", startIndex ")

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Convert a Boolean trigger in the text string

    Hello

    I would like to know if it is possible to convert some text buttons in a single variable text string.

    Let me try to explain:

    I have 3 buttons: Simulation, send, Quit

    Now, I want to use a case structure, in which it is possible to switch between these 3 options.

    So if you press the button for a second, I would have a string of text with the text: send.

    If I press Quit, having to turn into Quit, text string even if I can connect this string to the structure of the case.

    Is this possible? It sounds easy, but I can't figure out how do it in a simple way.

    How I did it: Boolean convert (0.1), these values multiplied by a number,

    for example (1,2,3), but to make a deal with (1,2,3) structure and write the right text in a text string.

    But I think it can be done much easier, isn't it?

    Thank you!

    Hello

    Check the attached VI. I think this should help you. The mechanical action of the buttons are "switch until released. You can change it according to your requirement.

    The second example uses the Structure of the event.

    Kind regards
    Nitz

    (Bravo to give good answers, mark it as a solution if your problem is resolved)

  • write table 2D data in the file but the file is empty

    Hello

    I tried to write all reading of powermeter data to a file in two ways, I can see the output in the Arrais indicator data but when I write to "File.vi of the worksheet" or write to 'text file', the files are empty.

    Please help me.

    Try to remove the vi "STOP".

    I suspect, it prevents the main vi before the backup occurs.

    As a second point: given that you save data inside a while loop be sure you add the data from the file and not crash each time.

    wire that is a 'real' terminal 'Add file '.

    Kind regards

    Marco

  • Image of a on comment write some text (Vision/beginner

    Hello

    I get an image from a camera and I'd like to write some text on top before generating an AVI file.

    Typical of current process information.

    I do not see how to take the problem or if there is a function all do in the vision palette!

    Has anyone an idea?

    Thank you for your help

    EricC

    Forget this qestion, I hadn't seen the function!

    Sorry for the inconvenience

    Sorry, I didn't choose the right forum

    (and I found the solution by miself)

    the respect of

    EricC

  • How to write a text on an image data

    Hello

    I am facing a problem where I am suppose to write a particular text string, then tagg it with the ie.write of the image on the image and save it, also when retrieving images, it should show the data written to the image respectively.

    Please let me know if you have a response to my query

    Kind regards.

    You must obtain the graphics object from the bitmap to aid

    Graphics g = new Graphics (bitmap);

    Now you can paint on the bitmap to aid

    g.drawText (text, x, y);

    changes made to the graphics object are made directly to the bitmap image (since both speak to eachother)

  • Is it possible to search for text in an Illustrator file from an external source like the Finder (Mac)?

    I'm trying to find some similar text strings on hundreds of files.  Specifically, I'm looking for dimensions.  4.50 "for example.  I want to see how many files have this dimension within them so that I can group them for production purposes.

    Is there a way to search for text in Illustrator (I use CS5) files from Finder?  Or another program of research?  I use a Mac.

    Any help would be GREATLY appreciated and would help save me a lot of time.

    Yes. While the Finder cannot find the content of .ai files, it can do it with .pdf files. If you change the extension of a .ai in .pdf file, you can use Spotlight to search by content.

    This fact, combined with a file rename utility as A Better Finder Rename, you can leave temporarily rename all of your .ai files so they end up in something like 'RENAMED.pdf '. Then, once you have performed your search, find all files ending in RENAMED.pdf, to delete the word "RENAMED" and change the end for .ai again.

    Of course, this isn't something you want to get into the habit of doing.

  • How to replace a block of text by an .ai file?

    Hello

    I am writing a javascript script Illustrator open a file's get a block of text in the layers/pageItems by its content, then replacing it by a placedItem to the incorporation of another file .ai (shape slightly).

    I managed to get the pageItem and to create the placedItem in this way:

    ...
    var item = mainGroupElement.pageItems[i];
    if(item.contents == 'X') {
      $.write("X found\n");
    
      var walkingManFile = File("D:\\walking-man.ai");
      var walkingManItem = mainGroupElement.placedItems.add();
      walkingManItem.file = walkingManFile;
      walkingManItem.embed();
      var scaleX = item.width / walkingManItem.width * 100;
      var scaleY = item.height / walkingManItem.height * 100;
      walkingManItem.resize(scaleX, scaleY, true, false, false, false, 100, Transformation.CENTER);
      var deltaX = item.position[0] - walkingManItem.position[0];
      var deltaY = item.position[1] - walkingManItem.position[1];
      walkingManItem.translate(deltaX, deltaY, true, false, false, false);
      walkingManItem.trace();
    
      item.remove();
    }
    
    

    'element' typename is TextFrame.

    'WalkingMan' form is well drawn, but not translated and resized at all. However, scaleX, scaleY, deltaX deltaY values seem to be good.

    Anyone know what I'm doing wrong here?

    I'd appreciate any help on this!

    once incorporated, walkingManItem no longer exists (like placedItem), then the reference is lost. Get a reference to the new article created by the embed() method and proceed to your script.

Maybe you are looking for