Can anyone answer this question? What is used to format a string so that it falls into a certain Row/Column in excel? see text for indepth question.

I'm attaching a file that may help. Just remember this is my FIRST attempt at using NI/FeildPoint so things that would be obvious to the normal users more than likely would slide right by me. So I'll try and explain what the text contains as to make my problem more clear. I'm using a FP-1000, FP-AI-100, and a FP-TB-10. i'm creating a application where I'm using the 8 channels from the FP-AI-100 to monitor a control system ,that we manufacture. The control system is in an environmental chamber. I use the FP-TB-10 to monitor the temperature while in the chamber. The control system is ran for 4 hours under varing enviromental conditions while I monitor vital system voltages with the FP-AI-100. Now the application that i'm building starts with the obvious FP CREATE.VI and so forth I have no problem communicating with the FP's, but the information that I'm monitioring needs to be placed into a file with Headers describing the information below it. Now I use a "WHILE LOOP.VI" to monitor the FP-AI-100 & FP-TB-10 for the 4 hour period. but before that I create and open a file where I use a "CONCATENATE STRINGS.VI" to enter the headers I need. I do this by CONSTANTS, CONTROLS, TABs, AND CARRIAGE RETURN being entered into the "CONCATENATE STRINGS.VI" in the order I want them to appear. I use ROW 1 to enter (OPERATOR:with a CONSTANT) an a (CONTROL so the operator may enter his name and be recorded into the file) using a TAB to seperate Columns and a CARRIAGE RETURNto drop down to ROW 2 for the next headers. I use header names and TABs to seperate the columns. This part works great. I end up with ROW 1 having the operator information then ROW 2 having the headers for all the channels I'm using to monitor the control system with in their own column. The trouble happens when I write to this file during the "WHILE LOOP". The information recorded for DATE:, TIME:, and Channel 0 of the FP-AI-100 end up right under their corresponding header on ROW 3, but the rest of the data ends up on ROW 4 in column 3 and goes down many rows with some of the data not being stored at all. It varies on how many rows are used starting at ROW 4 but hey always stay in column 3. I use the "FP READ.VI" outputing to a "ARRAY TO SPREADSHEET STRING.VI" outputing to a "CONCATENATE STRINGS.VI" for each channel within the "WHILE LOOP" then into the "WRITE.VI". I use the "CONCATENATE STRINGS.VI" to place my data OR atleast I thought you could do that some how I'm not quit doing something write either there is a sampling/timing issue or writing to file issue where things are being confused in the "WHILE LOOP" if someone know a better route to perform what I'm tring here I would be interested. Its not like I'm not giving it the old colledge try here but without proper training and the vagness of the manuals it's difficult to understand what every connection actually does.I'm tring though for everyone who happens to fill pity for me
Thanks for your help
John Morris
Glendinning Marine Product, Inc.
Attachments:
ALLchannels ‏273 KB

> I appreciate your effort to help me, but there is still a slight cloud
> in front of my eyes here.(I must mention that I'm using Labview 5.1
Oh, to bad. I'm using LV 6,02 and tried to save the application as LV5.1,
but it didn't work.
> Lets start with the easy one which is the SECOND main thing you
> wanted to mention. In my application I used individual Create Tag.vi's
> "so your saying that I can use just one Create Tag.vi and one Read.vi
> and what ever I use to display the values will automatically to show
> the individual channels" in other words if I use a "Indicator(DBL)"
> comming out of the Read.vi what ever I use in the "PANEL" layout will
> expand to show all 8 channel if I was using a FP-AI-100? Cool...
Allmost right. The 8 channels come out as 1D-array, ch0...ch7.
> #1--How do I change the delimiter (TAB) to a delimiter (comma) in a
> Array to Spreadsheet String.vi?
> ...cut
I don't use this Spreadsheet VI, because files coming out there allways
start this time consuming EXCEL wizzard. Because of this, I programmed my
own CSV-conversion vi. Maybe you could just use a common texteditor, like
wordpad and put the csv-examples from my last reply down to a text file
and rename it to *.csv. Texteditors terminate lines with "\r\n" by
default, so this is a very quick way for testing.
> FP_Analog_Logging example to record all eight channels it uses a Array
I didn't find the vi you metione above, but there is another good one:
Look at examples\FieldPoint\DataLogging\FP Logger.vi.
In a little case structure, at "false", there is a function called "Format
into string".
Pop up on the format string and adjust >>'\' Codes Display<<.
Then you change the format string into: %.;%-f%s
A Tab string is connected to the lower input of this function. Replace
this one with a comma.
That should do.
>
> #2--If using just one Create Tag.vi and one Read.vi and I have the
> Item Name listed as ALL I take it that the information comming out of
> the Read.vi is data for each channel in a String format starting with
> channel 0 and ending with channel 7 for the FP-AI-100.
Yes, just as explained above. If you put a indicator at the output to
display the values, you can expand the display to show all 8 channels, but
you can't name induvidual cells. In a array, all cells have identical
named labels. If you want to name the individually, you have to attach the
array to cluster function and put the indicator after this one. Enable
labe display and name the output values individually.
> #3--Now I use the following to "Format String" in the Array to
> Spreadsheet string.vi (%.4f)but I don't see anyway of changing the
> delimiter from (TAB) to (COMA)
Explained above.
> #4 you stated text strings need a "as prefix and sufix" and each
> string is seperated by a coma, a period is used as decimal number
> separator and lines have to be terminated by my question is
> WHERE IS THIS ACCOMPLISHED? WHAT VI OR WHAT CONNECTOR PIN?
Well, modifying strings are done with string functions.
Above, as I explained how the sample FP Logger.vi can be modified to do
the job for numbers. The pre- and suffixing with ", you only need for
strings, which EXCEL should interpret a string and as nothing else as a
string, even if there's a number inside. You usually need this only for
headers. So its easyest, if you just write your string into a string
constant or control and concatenate it to the previous csv-file contents.
Oh, I just see by looking at the above mentioned example... Inside the
case structure, but in the "true" case, there are error messages
concatenated to the logfile. At this point it is importent, to use " for
integrating the message into the CSV file, because a error message usually
looks like this: >> ERROR 2345 in vi yxz <<
Here you have text and number strings mixed in one line. EXCEL does not
know, if it should interpret the number inside the error line as separate
number, separating the line into three colums i.e. string before number,
number and string after number. So tell EXCEL by putting a " before and
after the line each.
For this, expand the Format To String function by one input, move down all
connections, to be able to insert a string constant with a " to the first
argument connector. Change the contents of the string constant at the
bottom argument from tab to ", (quotation mark AND comma)
> #5 You gave me an example of what a 3 column header could look like:
> "col0","col1","col2"\r\n Now is this something that you enter
> somewhere cause I know that \r is carriage return and \n is newline so
> I take it that the above is entered somewhere maybe in the Write.vi to
> the connector called Header (F)? See this is what confuses me because
> NI manuals have no examples of certain connectors types being used or
> any reference as to how they manipluate data with there varing type
> inputs. Or maybe I'm just missing them.
The example I mentioned above help here to.
Look at the Write File function. This function receves data from a
function named concatenate strings. Expand this function to have one more
spare input at the bottom. Create a string constant. Switch the constant
display to "\" mode. Enter "col0","col1","col2"\r\n into the constant.
Connect the constant to the spare input.
Doing this, every dataline in the csv file is followed by
"col0","col1","col2"\r\n .
I wish you a nice weekend,
Rainer Ehrt

Similar Messages

  • Can anyone answer this question about unlimited data?

    I currently have a phone with ATT... a Samsung. Contract has been up for several months.
    I have the unlimited data plan for $30 a month.
    When I buy the new iPhone will I be able to just transfer my $30 a month unlimited data plan from my old Samsung phone to my new iPhone's new 2-year contract? Or, will I have to switch to the new data plan thing (with no more unlimited data)?
    Can anyone answer this? Been looking online for an answer and got zilch. Thanks.

    Why are you asking this in a user-to-user iPhone forum? The ONLY source for a definitive answer about the brand new, not yet implemented AT&T data plans is AT&T. You need to contact them. Any "answer" you get here is purely guesswork.

  • Reconnect question? Can anyone answer this?

    Can anyone answer a this question about using Reconnect:
    I have over 400 pictures that didn't restore out of a 202GB Full Backup. The catalog contains over 5 years of pictures. The Full Backup file is on K: external drive. If I use the reconnect and it reconnects those pictures to that K: external backup file, then do I always have to keep that external drive plugged in while I use that catalog that reconnected those pictures to the external drive?
    If the answer is yes, then is it possible to make a copy of that Full Backup and put it on the C: drive so I can disconnect that external drive and keep it in a safe place? I have plenty of room on the C: drive since I upgraded to a 2TB main drive.
    If it is possible to make a copy of that Full Backup and move it to the C: drive can you please tell me the proper procedure. Thank you!

    Why are you asking this in a user-to-user iPhone forum? The ONLY source for a definitive answer about the brand new, not yet implemented AT&T data plans is AT&T. You need to contact them. Any "answer" you get here is purely guesswork.

  • Can anyone answer this question regarding MAX RAM?

    My old iMac SE DV graphite was purchased and delivered in January, 2000. The original order catalog (which I kept) claimed that it was "expandable to 512mb", as were all the 400mhz G3 slot-loading DV models in various 'flavors' including my Graphite Special Edition model. Also, both / all versions had the ATIRage 128 accelerator with 8mb SDRAM.
    The only differences I can discern are that my Graphite has more ram (128mb) and had a slightly bigger hard drive (13GB on the graphite vs 10GB for the 'fruit').
    Note: I have since replaced the hard drive with a 20GB since the original died within the first 2 years.
    Also, I am running in 10.3.9 most of the time but still have OS 9.2.2 in the machine.
    On this disussion site and other places (including MacWorld articles) I've seen conflicting statements as regards the MAXIMUM RAM my graphite should/could have. Some say 1GB (2x512) and some say 512 (2x256).
    Can anyone once and for all, settle this question for me so that I can make an intelligent purchase?
    (and thank you for the info re: PC100 as the way to go, not PC133)
    Thanks & Peace to all.

    This question was answered in your other post by me. Max RAM is 1 GB.

  • Can anyone answer this one please.

    have a stored proc trying to retrieve blob field(a binary file) from a
    View(in schema1) in oracle10g. After retrieving I am sending it to another
    databsase(schema2) through a dblink which is in oracle9i. I am using TOAD for
    this. My code is
    Insert into [email protected]
    Select VPF.P_ID AS PET_ID,
    DBMS_LOB.SUBSTR(VPF.PDF_FILE, 4000, 1) AS PET_FILE
    FROM V_PDF_FILES VPF, [email protected]
    When i use only select then i am successful.
    Select VPF.P_ID AS PET_ID,
    DBMS_LOB.SUBSTR(VPF.PDF_FILE, 4000, 1) AS PET_FILE
    FROM V_PDF_FILES VPF, [email protected]
    I am unable to insert this into remote database. I am getting an error related to BLOB Field.
    ORA-22992: cannot use LOB locators selected from remote tables.
    My question is, the DBMS_LOB package which I have used is correct or not to
    retrieve? If yes, then is it compatible to send the BLOB from Oracle 10g to
    Oracle9i? What are the limitations for this.? How can I resolve this. Your
    response will be greatly appreciated. If you need more information then let me know.
    Thanks in advance.

    You may be able to utilize this process:
    Re: ORA-22992: cannot use LOB locators selected from remote tables

  • Can anyone answer this for me!!!!

    I live in a some what country area and have been for 7 yrs. I currently have phone and tv service through Verizon. But they do not have any internet available where i live. What i do not understand is that i keep getting offers in the mail about their internet service and how it works, but when I call them they tell me a date of when it might be there. They told me 5 yr ago that not just the DSL would be available to me but also the fois internet would be to in just about a year and a half. Well I can honestly say neither is! When I call them they tell me a date and when i call them back after the date they tell me when it will be available they tell me another one. There are a lot of people where I live that have been living here well over 20 yr+ that have had to use that crappy satellite or slow dial up,that would switch to Verizon in a heart beat! But the HUGE thing that I do not understand is at the end of the street there is a small walk in building that says Verizon, they have told me it is one of the main phone stations in the area, but what funny is it the only one without inernet service! AHHHHHHHHHHHHHHHHHHHHHH Plz can anyone tell me when it might become available

    Unfortunately, Larry's right on target.  Just because there is a building with Verizon on it, there might not be the dslams installed to provide dsl, also known as Verizon High Speed Internet.  It might be just an plain old telephone service.
    It's simple economics.  If you really live in a country area, there may not be enough potential subscribers to cover the cost of the equipment installation to provide service to you.  Probably not what you want to hear.  Sorry.

  • Can anyone answer this question for me

    okay so i have a mid 2012 macbook pro and being a student myself i travel 4 days a week to and from college with my mac anyway while i was in class the other day i placed my laptop onto the desk and i must have put my mac onto my grit and i have slight airline scratch on the bottom caseing i called my apple store and i asked if the case can be replaced the guy said yes it can be but i will need to book an appoment with a genius but as you know apple apple macs laptops have the designed by apple in california and serial number etc on them if i was to buy a new case for it from apple would it contain these any ideas and help is allways welcome. thanks Ryan

    ryan678 wrote:
    okay so i have a mid 2012 macbook pro and being a student myself i travel 4 days a week to and from college with my mac anyway while i was in class the other day i placed my laptop onto the desk and i must have put my mac onto my grit and i have slight airline scratch on the bottom caseing i called my apple store and i asked if the case can be replaced the guy said yes it can be but i will need to book an appoment with a genius but as you know apple apple macs laptops have the designed by apple in california and serial number etc on them if i was to buy a new case for it from apple would it contain these any ideas and help is allways welcome. thanks Ryan
    I'm sorry but it is very difficult to understand your very long one sentence post. Are you asking what information will be contained on the case? Or are you asking how to go about changing the case? Maybe you're asking if it is worth replacing the case because of a scratch. Or, are you asking if the new case will be designed in California?
    Try rephrasing your post.

  • Can anyone answer this????

    I have a java application that interacts with a Microsoft Access database that houses movie information. Such things include (Title,description,rating..etc). I am using this application to catalog my movies. Instead of using the information off the back of the DVD case I generally go to netflix or idmb to gather the information. My problem arises when I copy and past the desired info into my JFrame that adds the info into my database immediately after pressing a button. Everything works fine until I add too many movies into the database and I get a goofy error:
    Exception occurred during event dispatching:
    java.lang.IllegalStateException: cannot open system clipboard
    I noticed that a couple times, that because of this error that it did not add the movie correctly. I want to make this an executable program but I would like to catch this problem and correct it. Any suggestions on what is happening?

    How do you open the system clipboard? Maybe you didn't close it when you opened it before (just a guess, since you indicate it happens after a few iterations).

  • I am trying to reset my security questions and i am not getting an email from apple... can anyone please tell me what i need to do to fix this?

    i am trying to reset my security questions and i am not getting an email from apple... can anyone please tell me what i need to do to fix this?

    Forgotten Security Questions/Answers
    You need to contact Apple by:
    1 - Use the Express lane and start here:
    https://expresslane.apple.com
    then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
    or
    Apple - Support -form iTunes Store - Contact Us
    2 - Call Apple in your country by getting the number from here:
    http://support.apple.com/kb/HE57
    or           
    Apple ID: Contacting Apple for help with Apple ID account security
    3 - Use your rescue email address if you set one up
    Rescue email address and how to reset Apple ID security questions
    For general  information see:
    Apple ID: All about Apple ID security questions

  • Hello! The question is this. In London, took the Iphone 5 as sim free, flew to Moscow put Simcoe, and he writes me that is locked to the operator O2. Can anyone encountered this problem? What to do? How to remove the Unlock?

    Hello! The question is this. In London, took the Iphone 5 as sim free, flew to Moscow put Simcoe, and he writes me that is locked to the operator O2. Can anyone encountered this problem? What to do? How to remove the Unlock?
    <Edited by Host>

    Look at your receipt. Does it say unlocked? It is possible to purchase both locked "sim free" and unlocked iPhones from Apple.
    ONLY the carrier an iPhone is locked to can legitimately unlock it.
    IF your receipt says that it was supposed to be unlocked, and it is not, call AppleCare. They should be able to straighten it out.

  • In using Office Mac 2011 I noticed that there is 3 gigs of data under Documents/Microsoft User data for Message Sources.  Anyone know what this is and if it can be deleted?

    In using Office Mac 2011 I noticed that there is 3 gigs of data under Documents/Microsoft User Data for meassage sorces.  Does anyone know what these files are and can they be deleted?

    Hi SDP1,
    Do you use Outlook or Entourage? If so, that's where all of your emails are stored. If you don't use either of those applications I'd go digging through the folders and see where all the space is tied up. Check the Identifies folders, that's probably where everything is located.

  • Can anyone answer me this 2 questions, thx verymuch:)

    *Write a method which takes as input a List<String> of words, and returns a List<String> which contains the words in the input list in order of frequency (most frequent word first).  For example, if the input list was
                   ("the", "big", "dog", "the", "dog", "the")
              then the output list should be
                   ("the", "dog", "big")
              "the" is first because it occurs three times in the input; "dog" is second because it occurs twice; and "big" is last because it only occurs once.
    *How fast is your method?  Report this as an O() (order), eg O(N) or O(logN) (where N is the number of elements in the input list).  Justify your answer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    lee888 wrote:
    can anyone answer me this 2 questionsYes, quite a few people here can. None of them will (or at least should), though.

  • Can anyone answer my question regarding compile time ?

    can anyone answer my question? What happens exactly during compile time when the program is compiled in java ? My answer is for this question is the compiler places all the references to the variables we used in a stack and also places the references to the objects used in the program in a stack. Is my answer correct and complete ? Does the compiler do anything more ? if so please mention me . THANKS A LOT for all the ones replying for this question . THANK YOU

    suryakiran_s wrote:
    can anyone answer my question? What happens exactly during compile time when the program is compiled in java ? My answer is for this question is the compiler places all the references to the variables we used in a stack and also places the references to the objects used in the program in a stack. Is my answer correct and complete ? Does the compiler do anything more ?That's not correct.
    Compilation is a process which turns a program (or part of a program) written in one language into the same program in another language. This can take place both at compile-time and run-time, but always before execution (when the program code is actually run)
    A stack is a data structure used during program execution to handle variables with a lifespan limited to that of a method call.

  • Can anyone explain this to me, please. It's a static section question.

    Can anyone explain this to me, please. It's a static section question.
    I came across the following style of programming recently and I would like to know what the Static section is actually doing in the class. Thx.
    Here is the code.
    public class ClassA {
         private static Hashtable ClassAList = new Hashtable();
         private ClassB cB;
         private Vector goodLink;
         private Hashtable classCList;
         static
              ClassA cA = new ClassA();
              ClassAList.put("whatever", cA);
         public static ClassA getClassA()
              return (ClassA) ClassAList.get("whatever");

    hi,
    The static section shall be loaded before it's constructor is called. (i.e at the time of loading the class). Therefore making it available for any other objects to call.
    hope this clarifies ur question
    prasanna

  • HT1923 I downloaded the latest iTunes version and now get the following error message: "This copy of iTunes is corrupted or is not installed correctly. Please re-install iTunes." Can anyone provide suggestions on what I should do next?

    I downloaded the latest iTunes version and now get the following error message: "This copy of iTunes is corrupted or is not installed correctly. Please re-install iTunes." Can anyone provide suggestions on what I should do next?

    Let's try a repair install of iTunes first.
    Restart the PC. If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair". If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", click "Change" and then click "Repair".
    Can you launch your iTunes now?

Maybe you are looking for

  • Write/read image to avi file, VI works incorrectl​y from the second run

    Hi everybody, in my labview I write image from IMAQ USB to avi file and read image from avi file, the VI runs correctly at the first run then after that it goes wrong, I can write/read only one frame and it terminates automatically. Does anybody know

  • Premiere Pro CS3 Crashed, and now will no longer start back up again..

    I was working on a project today using Cs3, I've had it since spring and it always worked fine until tonight when i was editing a project.. In the middle of my editing the program unexpectedly froze than crashed... I then tried to restart it and i go

  • Quick Switch Between Mic & Speakers?

    I prefer recording sections through an external mic and then listening to the recording from the main speakers in the computer. Is there a shortcut for doing this? Every time I have to unplug the USB and hit YES to use the main speakers for audio and

  • Office no longer gets templates

    I am building an image for 8.1 with office 2013 and I rearmed office using opprearm.exe because i use KMS.  Now that i rearmed office word no long gets its online templates. Usually what happens when i start work up for the first time, or any office

  • How to set "Impermissible Password"  Section

    Hello gurus, I am entering the security settings in our portal live system. We want users not to enter some words as password. I do not know how to enter impermissible passwords to this section. Anyone help? Answers will awarded points Tolga