Jump to content

prads

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

prads's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello, I have a topic running in the path LAVA > Software & Hardware Discussions > LabVIEW (By Category) > Database and File IO. I started it in LabVIEW General section but perhaps the moderator moved me there. Nobody is answering my question in that section so i am posting it here again. Please excuse me. Please refer to the post "Writing to a template file" in the above section. Now that you know the status, here's my problem: I have used the same concept as in the example posted by jgcode. In my implementation, the data file is a 1D array of string and the template is a 1D array of string. However when I use the build array.vi it still produces 1D array of string. Now the output of the build array does not let me connect to the Write to Spreadsheet File.vi's 2D input. So when I check the data.csv output file after running the code, it shows me my template completely first and then my input data. Somebody please help. regards, prads
  2. QUOTE (jgcode @ May 29 2008, 05:01 AM) Hi, I have another small problem. In my implementation, the data file is a 1D array of string and the template is a 1D array of string. However when I use the build array.vi it still produces 1D array of string. Now the output of the build array does not let me connect to the Write to Spreadsheet File.vi's 2D input. So when I check the data.csv output file after running the code, it shows me my template completely first and then my input data. Somebody please help. regards, prads
  3. QUOTE (jgcode @ May 29 2008, 12:27 AM) Oh wow the above code is excellent. However is that possible with Write to Text File.vi as well or only with Write to Spreadsheet File.vi? Thanks, prads
  4. Hello, I want to write text into a text template file. For example, consider I open the template file which already has the following written in it: Name: DOB: Address: Phone: Now I have to write my name corresponding to the name field, and DOB,address,phone etc corresponding to its fields. When opened, it should look like: Name: Prads DOB: 10/10/2000 Address: 122 MyBlvd MyState 11111 Phone: 111-10101010 Can somebody tell me the VI's I got to use? How should I move precisely to the position where data has to be written next. I mean, say I have written the Name and DOB, and now Iam trying to write the address......How do i jump to the location pointer corresponding to the address field. Is there a VI or an example which calculates and correspondingly ignores those text which is already present so that I can write in the required position in the file? Thanks, prads
  5. Hello, I have a text file into which I have to write string data. The data I write consists of (a) Position, (b) Timestamp and © some bits. All these have to be appended to the same file. I started with the Position and then used the Set File Position.vi with a 0-offset and 1-from values for the vi to point to the end of file. Then I connected it to another WriteFile.vi with the refnum from previous SetFilePosition.vi. As required, the Timestamp value was written in the next line in the file. Then I again connected the refnum to another SetFilePosition.vi and WriteFile.vi. However it now writes these bits in the same line and exactly adjacent to the Timestamp. I want these bits and whatever I append in future to the file to be written in the next line. Here's how my textFile looks like: 86.0 21.0 8231.0 05/27/2008 15:10:1200101111000 --as seen here the bits(00101111000) are written adjacent to the Timestamp but I want it to be written in the next line!!! Please help me..... Thanks, prads
  6. Hello Normandinf, You have shown me the connection of label.text to a Write.vi. Can you tell me how I should append more than 1 file source of different data types to a write.vi. regards, prads
  7. Hello, I am new to labview. I want a node which accepts different inputs and gives a single output maybe by placing all the properties/inputs defined adjacent to each other or in a similar fashion (--something like a multiplexer). Is there any VI that I can use? Does the bundle.vi do a similar thing? Thanks, prads
  8. Hello, I have a few doubts in labview...... 1. I have a reference out as the output of a Property Node. Is it possible to write this into a text file? I tried but it gives errors stating that output is reference(output of Property Node) and input is string(Input of a write to a Text File). If yes how? Also I have another important question regarding this. In a Property Node, after setting several properties, does the output of the property node, called the reference out, contain all the set properties in a particular fashion or is there any other explanation for that? Im kind of confused with that. In the sense does a Property node act as a node/Mux which takes in several properties as input and outputs a single value? I want to write the output of this Property Node (The properties that I set in the Property Node initially are a mix of double and Integer data values) to a text file which when opened should have all the values of the properties displayed as set initially.... 2. I want to write several things into a text file. However the inputs are from different sources and hence is becoming a little complex. Can you tell me how I should append 3 sources of text to a single text file. To do this what is the minimum number of VI's(Write to Text File and Set File Position) required? I am making use of three VI's each....... Regards, prads
  9. Hello JFM, My path only consists of ASN.1 data structure and will include the record values. I am not packing it in any format for now. I want to read the data in this file and transmit it to receive it and then write it to another file. Do you have any idea how to proceed with this task. Thanks, prads
  10. Hello, I have a text file with some data in ASN.1 notation. I have to open this file in labVIEW (which I have done and converted the path to string). Now this output string has to be transmitted and Received. Its just a dummy/prototype model which I have to do as of now. 1. Do we have something like a transmitter and a Receiver? 2. Also is there a Property node wherein the names of the properties can be set and selected by me and not from a given fixed collection of properties. 3. I want to convert a path/string to double and path/string to unsigned long. Is there a VI that I can use? I could not find any directly so i used path to string, Fract/Exp string to num, num to unsigned long int and num to double precision float. Is this correct? and is this the only way to do it? Thanks, prads
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.