File save/open table values

I would like to add a 'save/open profile' feature to a table in which the user inputs values into in order to time control the setpoints to an MKS Gas Controller.  The program will be ultimately used as a standalone application.  I am very new at LabVIEW and I am not sure how to even approach the problem.  Any ideas?
Attachments:
Gas Measurement System[2].vi ‏240 KB

Sounds like you want to use a table control that the user can interact with. The table control values are accessed through the control's properties as a 2-D array of strings. You can label the rows/columns separately from the data. You will want to learn about these by opening example vi's on tables. There are a couple good examples.
For your save values function, I would say the easiest way to store the values would be the "Write to spreadsheet file.vi" You would write the 2-D array of strings to the file. When you press the load function, you would use the read from spreadsheet file.vi to read the table of strings.
Your most time consuming part of this function will be error checking the user inputs and parsing the string values into valid, usable data types. Since the values are inputted as strings from the user you will need to check the validity of these inputs before your program tries to use the values. One way is you can check this once the user enters a value using an event structure. However, since you are new to labview, I would recommend checking the validity of the inputs when the user hits the save or apply button. This can be done using the "match pattern" vi in the string palette.
Let me know if any of this helps.
[will work for kudos]

Similar Messages

  • SSMS 2012: Import XML File to SQL Table - 'value' is not a recognized built-in function name!!??

    Hi all,
    I have the following xml file (books1.xml):
    <bookstore>
    <book>
    <BookID>1</BookID>
    <title>Everyday Italian</title>
    <author>Giada De Laurentiis</author>
    <year>2005</year>
    <price>30.00</price>
    </book>
    <book>
    <BookID>2<BookID>
    <title>Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
    <price>29.99</price>
    </book>
    <book>
    <BookID>3<BookID>
    <title>XQuery Kick Start</title>
    <author>James McGovern</author>
    <year>2003</year>
    <price>49.99</price>
    </book>
    <book>
    <BookID>4<BookID>
    <title>Learning XML</title>
    <author>Erik T. Ray</author>
    <year>2003</year>
    <price>39.95</price>
    </book>
    </bookstore>
    In my Microsoft SQL Server 2012 Management Studio, I executed the following SQL Query code:
    --XQuery w3schools example using books1.xml in C:\Temp folder
    ---SQL Query W3books Title
    ---9 March 2015
    USE XML_XQUERY
    GO
    CREATE TABLE W3Books(
    BookID INt Primary Key,
    Title VARCHAR(30));
    INSERT INTO W3Books (BookID, Title)
    SELECT x.book.query('BookID'), value('.', 'INT'),
    x.book.query('title'), value('.', 'VARCHAR(30)')
    FROM (
    SELECT CAST(x AS XML)
    FROM OPENROWSET(
    BULK 'C:\Temp\books1.xml',
    SINGLE_BLOB) AS T(x)
    ) AS T(x)
    CROSS APPLY x.nodes('W3Books/book') AS x(book);
    SELECT BookID, Title
    FROM W3Books;
    I got the following error messages:
    Msg 195, Level 15, State 10, Line 7
    'value' is not a recognized built-in function name.
    Msg 156, Level 15, State 1, Line 16
    Incorrect syntax near the keyword 'AS'.
    I don't know why I got the error of 'value' is not a recognized built-in function name. Please kindly help and tell me what is wrong in my code and how to correct the error.
    Thanks, Scott Chang
    P. S.
    (1) I mimicked the xml file and SQL Qeury code of Import XML File to SQL Table in
    http://pratchev.blogspot.com/2008/11/import-xml-file-to-sql-table.html. The xml file and the code of this sample worked in my SSMS 2012 program.
    (2) I am learning the "CAST" and "CROSS APPLY" in the Create Instances of XML Data of Microsoft MSDN - it is very abstract to me.

    Hi Stan210, Thanks for your nice response.
    I corrected my xml file as you pointed out.
    I made some changes in some code statements of my SQLQueryW3BookTitle.sql as you instructed:
    --XQuery w3schools example using books1.xml in C:\Temp folder
    ---SQL Query W3books Title
    ---10 March 2015
    USE XML_XQUERY
    GO
    CREATE TABLE W3Books(
    BookID INt Primary Key,
    Title VARCHAR(30));
    INSERT INTO W3Books (BookID, Title)
    SELECT x.book.value('/BookID[1]', 'INT'),
    x.book.value('/title[1]', 'VARCHAR(30)')
    FROM (
    SELECT CAST(x AS XML)
    FROM OPENROWSET(
    BULK 'C:\Temp\books1.xml',SINGLE_BLOB) AS T(x)
    ) AS T(x)
    CROSS APPLY x.nodes('bookstore/book') AS x(book);
    SELECT BookID, Title
    FROM W3Books;
    I executed my revised sql and I got the following Message and Results:
    Msg 515, Level 16, State 2, Line 6
    Cannot insert the value NULL into column 'BookID', table 'XML_XQUERY.dbo.W3Books'; column does not allow nulls. INSERT fails.
    The statement has been terminated.
    (0 row(s) affected)
    Results:
    BookID    Title
    I don't know why I just got the names of columns in Results and the "Cannot insert the value NULL into column 'BookID', table 'XML_XQUERY.dbo.W3Books'; column does not allow nulls, insert fails." in Messages.  Please kindly help, advise me
    how to correct the errors and respond again.
    Many Thanks again,
    Scott Chang

  • Problems with file (save, open)

    I save a file with my dates. (You can see save.vi, it's ok)
    Then, I open file but it'snt ok.
    Why? I don't know.
    After, I'd like search one determinate value.
    Can you help me?
    Attachments:
    save.vi ‏31 KB
    open.vi ‏20 KB

    Hola Carlos.
    Lo que escribes en el fichero es texto, ya que los numeros los conviertes a string.
    Para determinar el punto de algo en un fichero de texto, tienes que leerlo usando "read characters from file" y a continuacion "scan from string",que te devuelve el comienzo de la string que buscas.
    No me consta que en Labview exista algun scan file que te devuelva el puntero a lo que buscas. No obstante, dado que parece que escribes lineas, puedes leerlas de 1 en 1 y buscar lo que quieres.
    Espero que te sirva de ayuda
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • File Save & Open in Plus

    The Desktop feature to Open and Save Discoverer reports to your file system is not available in the 9.0.2 release of Discoverer Plus. Are there any plans for including this feature in future releases?
    Thanks
    Chase

    This functionality will be included/implemented in the web versions of Discoverer in a future release.
    rgds

  • Open Hub - Change from File to Database table

    Hello Experts;
    I want to change the Open Hub Service that we create from File to Database table.
    We are using the Delta Update. However, after I change the Open Hub, Activate the transformation and DTP, when I run it, I don't have any value in the table.
    If I run a new delta into my cube, in the table I only get the data from delta.
    Can anyone knows how to upload all the requests that I have in my cube for the first time I run the delta DTP?
    Thanks and regards;
    Ricardo

    Create a new Full DTP and execute, so that you can dump all of the current contents of the InfoCube into the table and push/pull that table to the target prior to the next delta retraction.
    Edited by: Dennis Scoville on Nov 17, 2009 9:37 AM

  • HOW TO: Open SQL Developer from a batch file with specific tables opened

    I use SQL Developer daily as I develop database intensive programs.
    ** Question **
    How can I define a specific configuration of tabs (i.e. tables, procedures, etc) to be opened upon startup of SQL Developer?
    For example, creating a .BAT file to open SQL Developer with a specific set of table tabs already opened. This will save me the time every morning I use to open SQL Developer and configure all the tables I need opened.
    NOTE: I have tried various options of appending a table name to a command line starting sqldeveloper.exe. For example: ..\sqldeveloper.exe mydatabase.mytable. However, this only opens a worksheet tab with the name "mydatabase.mytable" but does not open my actual table.
    Any help will be appreciated.
    - Gary Davis

    what version are you using? Sql Dev 1.5?
    Not an exact answer, but you could try using Table FILTER
    click on your connection
    right button on TABLES
    click apply filter
    as for your question, check out:
    Re: EA1 - Automatically open connection list at startup?
    or
    SQL Developer

  • How to write table values into a configuration file

    Im writing some values in the table, i want to save and load the table values,  how to save the table configuration into configuration file??

    Pls ignore my prev post, I cud not finish edit within 10 mins as req by the forum rule...
    If you are not able to access a VI front panel at all when another VI is called by the first VI, then probably the issue is that the VI properties is set to be Modal. Right click on the VI icon on the right top corner and select VI Properties. Under Window Appearance, you can click on Customise button and ensure the VI is not Modal (and Custom is selected). Before this, you need to ensure the calling VIs are also not set to Modal (I think if you set it to dialog, it will be Modal by def. So don't use that as well). If any of the parent VI is set to Modal and a subsequent child VI is in non-modal mode, then you will not be able to access the child VI front panel when called and may end up with forcing the program to close.
    Probably you may also need to have a different independant loop looking for the events. For this you may need to use Q structure as well, so that you can define a Q outside both loops, add elements to Q as and when the menu is selected within the loop for menu events, while the other loop works according to the Q elements it gets to remove.
    Hope that helps !

  • How to convert Internal table values to excel file

    Hi Experts!!!
    I have requirement to generate a Excel(.xls) file for a requirement. For this the final internal table values has to be moved to excel file. I have used function module "SAP_CONVERT_TO_XLS_FORMAT" to generate it to my local machine. But when i tried to generate the file in "AL11" folder its giving a dump. Ex(/sapia/iface/out/comm/saphr/test.xls). Can anyone please tell me is there anyother function modules or program to generate in sapia folder. 
    Thanks.
    Ganesh R K

    try to save as a tab delimited.

  • Opening a IDML File with a table and 1000 rows simply hangs

    Hello,
    1. I generate IDML files that consist of a table with (1000 rows*9 columns)  colour formatted cells. When I try to open the file it just hangs at "Open Document".
    So you're probably thinking, there's something wrong with my IDML File?
    2. I "place" an equivalent spreadsheet from Excel, with formatting. It transfers correctly. I save it as a IDML file, when I go to reopen this file,  same problem as above.
    3. In step 2, If I instead save the file as a INDD, the INDD file re-opens correctly & fast.
    Our company catalogue has about 11728 rows * 9 columns.
    I have a strange sense of Dejavu, and it all seems to be pointing to the way INDESIGN handles (or doesn't handle) XML
    http://forums.adobe.com/thread/756449?tstart=0
    thx

    Sorry for the wall of text!!
    Ya, i figured a non indesign solution was the way to go. Hence the LaTeX (Typesetting) + php thing. It didnt need to be in a table, but it needed to appear like a "table" format. Cells with each cell having borders etc and it will eventually go to print.
    IDX!? I'll need to investigate this file format
    Well not necessary to use excel, or tables, since I pull the information out  from a MySQL database anyway. I wanted to use IDML because once the file format is just simple XML and extremely easy to manipulate. My awesome theory was, if it was already in a table format, that would make it even easier to manipulate - all i would need to do is write php code to add new rows (Directly into the file). A designer could make the IDML file template file for us, and I could write a script that populates the data directly into it.
    We tried other methods such as merging XML into tag placeholders but while that worked fantastically on small amounts of data it grinded to a halt+crash on large amounts of data.
    Ideally we wanted designers to make a template, and I.T. to just come along and insert the data accordingly. It also needed to be perfectly print accurate without alot of messing around. XSLT would be an interesting alternative, but our designers are again not very XSLT / EXCEL/ XML / X-Anything savvy. It would still need to be a programmers nightmare to get it to appear correctly (eg. mine).
    Thanks for pointing out additional alternatives! There are some good things I had not considered.
    Although I have found some additional benefits using LaTeX; Automatic Index, and table of contents  (Sweet!) - it also handles any required text wrapping.
    I think I'm flagging this thread as more of a bug thread than a request for a solution
    We were looking into purchasing indesign server for some future endeavours but if I have no confidence in the desktop version of indesign, how can I be assured that the server version of indesign wont just cause the company more headaches down the line
    thX!! awesome

  • When I try open a .pdf file my Adobe Reader 11 only allows the download / save opening the related window and don't show me both options 1) open with ... and 2) save as.... probably someone flagged the choise... always perform this way ....

    When I try open a .pdf file my Adobe Reader 11 only allows the download / save opening the related window and don't show me both options 1) open with ... and 2) save as.... probably someone flagged the choise... always perform this way ....
    Could some one give help and let me know where I can probably find the settings option that allows me to change and switch to previous situation where it was possible to decide time to time how to proceed either opening the file or saving it ??
    Thanks in advance
    David

    What is your operating system?
    Open a PDF from where?  If online, in what browser?

  • Open delivery values in S067 table showing as -ve

    Hi All
    Open delivery values in S067 table showing as -ve.
    Could u please explain , what are the reasons!
    Regards
    Raj

    You can check the data in S067 by running the SAP report RVKRED88, this re-evaluates the credit data after update errors. If you find differences between S067 and the result of RVKRED88, you can correct S067 using SAP report RVKRED77. But note as this requires a table lock on various SD tables, you may have to run this report when users are out of the system.

  • PDF file Not opening in Main Table

    Hi,
    I have added PDF lookup field in my main Table in console.
    I m able to import PDF file in PDF table ( after making Allow Invalid PDFs as YES)
    I have also imported PDF file in Main table field.
    But here PDF file is not opening.
    I m able to open PDF file only in PDF table & not in main table.
    Also i am not able to Generate Thumbnail.
    I m getting error:
    Regenerating thumbnail for 'Mahi.pdf'...failed.
    Regeneration of thumbnails complete.
    Can anybody tell me what could be the problem?
    Thanks,
    Mahi

    Hi Maheshwari,
    I have added PDF lookup field in my main Table in console.
    I m able to import PDF file in PDF table ( after making Allow Invalid PDFs as YES)
    I have also imported PDF file in Main table field.
    But here PDF file is not opening.
    You can link the pdf to the Main tabel record by two ways:
    1. Using Import Manager
    2. Using Data Manager itself.
    I have just tried it by the second way and I am able to open the Pdf in the Main Table itself.
    PLease follow these step below:
    1. Import the Pdf in the Pdf table and store the Pdf in the repository itself by choosing the Option - +Store in Repository+
    2.Go to Main Table and double click on the Look up field on the right side. GO to the Data Group Tab and add the Data Group you have created.
    3. Then choose the pdf you want to choose for that particular main table record. You will find the PDf getting attached in the Main Table Record.
    4. Now try and open the Pdf, HopefullyYou will find it opening in the Main Table itself .
    Hope it helps.
    Thanks and Regards
    Nitin jain

  • Adobe air with flex, file new, open and save for Desktop software program

    I already have a headache from all the searching. I cannot believe this to be such a confusing topic as every software program we create must be able to save user input, right.
    Here is the problem:
    Novel writing software program Main window has tabnavigator with four navigatorcontent pages 1. characters, 2. worlds, 3. objects, 4. Editor
    Each navigatorcontent page has user input fields in the form of textinput component, textarea component, richtexteditor component, etc.
    problem 1:
    The user needs to be able to open a new project and give it a name and state where it must be saved. All user input in the Novel writing software program must be attached to the file name the user specified - cannot give sample code cause I don't even know where to start looking anymore.
    Problem 2:
    If the user has now defined a new project name, all his input from the different input components has to be compiled into a single file that can be saved. (Dan Pichelman gave me a satisfactory answer on using the file.borwseforsave funtion.) That makes sense, but I first need to get all the user input into that single file. I was convinced that it must be an xml file and that there would be a guide on how to do this but...
    Problem 3:
    This brings me to another problem. All the pages I've researched so  far tell me how to load data from an xml file into a component, but not how to write the text from the component into the xml file. And this xml file cannot be the prefs file in the storage directory, it has to be named by the user and then after filling in all his text in the different tabs of the software, must be saved in this xml file and saved where the user chooses.
    Problem 4:
    now that the user put in his text and it is written to an xml file that he has named and set the path to, he goes on vacation and in two weeks opens his saved file to work on his project again. All the data that was stored in the xml must now be written back into the different user input components so he can continue working on his project, truth be told, there are some samles and tutorials on this subject, but again from only a single page perspective not a multiple tab perspective.
    Problem 5:
    Now the user has deleted and/or changed some text he put in when he started, he wrote some more text in the textareas and texteditor and he clicks the file - save button. The xml file or whatever needs to be used must be updated and saved with all the changes overwriting the old file.
    Problem 6:
    The data entered by the user will end up being a book of say 400 pages. This data will obviously be mostly in the richtexteditor component, so whatever method of saving is used, database or xml or whatever, needs to be able to contain all this data.
    Thought, if you are working with for instance, microsoft powerpoint, it has multiple pages all containing different user inputs and when you click flie - save, it saves all that input into one file. When I as a user opens that saved file it loads all that content back into its place and I can change and manipulate the input and save it again. I would have thought this would be one of the first things adobe or any other software would teach as this is what sofware programs are all about. But alas, the tutorials on this subject for adobe air for Desktop application is extreeeeemely rare.
    My promise is, if someone can help me with this or there is a tutorial out there that covers this properly I  will write a tutorial on this for other newbies as I progress step by step.  
    Pleeeeeeease help this ignorant novice
    Regards

    to save a file you would do something like:
    FileWriter fw = new FileWriter( fileName );
    textComponent.write( fw );
    fw.close();See the JFileChoose API for filtering files by extension. The API gives an example.

  • Whenever I try to save a file as a PDF, it tells me it can't save because the file is open somewhere else. This is not the case and I have tried it with different files. Please help. You can also call me at:(301)651-9616

    Whenever I try to save a file as a PDF, it tells me that it can't save, because the file is open somewhere else. I don't have anything else open. I have also tried different files and they all say the same thing. Help.

    Given there are so many problems and removed features in Pages 5, why not just continue using Pages '09?
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&mforum=iworktipsn trick
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=432&mforum=iworktips ntrick
    Peter

  • Retrieve data from a text file, incrementing the last value and save new value below

    Hi
    This was working initially. It is part of my LabView Project. I was trying to create a unique number that increments every time the adds the value to the list. It works on computer perfectly. But when I put this on a PDA, it seems to create a blank space when reading the contents of the text file after the last value, which means 0 + 1, which is not what I want.
    Please run the testUniqueNoOnPDA.vi first and change the path to C:\uniqueNumber.txt and save the uniqueNumber.txt file to your C drive and see What I am trying to do. Click the Enter button to increment.
    Why does the PDA create a blank space after the last value and a computer does not?
    I was working perfectly all week and it is not working well now.
    Help please, I think I'm missing something
    Attachments:
    uniqueNumber.txt ‏1 KB
    testUniqueNoOnPDA.vi ‏33 KB
    testUniqueNoOnPDA.lvproj ‏4 KB

    It works perfectly, it was a hardware problem. It depends on what PDA I used.

Maybe you are looking for