How to save data in a state machine.

Need to save 2 data points in a state.  Or how to add both data points from state to the array that is saved in write to file vi.  Please use the vi for reference.
Thank you for your help.
DOG
Attachments:
State.zip ‏32 KB

I'm not entirely sure what it is that you are trying to do here, why are you trying to record the states?
What do you mean by both data points?
There are about a million different ways to do this many of which seem more logical then your current system, If you can explain a little we would probably be able to help a great deal more.
If you are asking about passing out the two numbers from the User state 1 I would suggest building all of the numbers into arrays and passing them out through a concatenating exit to the while loop.
Attachments:
State Mod.zip ‏34 KB

Similar Messages

  • How to save data in ztable after editing in alv report

    how to save data in ztable after editing in alv report?

    Hi,
        Please find the attachment below.This may be usefull to you.
         [http://wiki.sdn.sap.com/wiki/display/Snippets/ALV-Editingandsavingtheeditedvaluesin+Database%28OOPS%29]
    Regards,
    Ramakrishna Yella.

  • Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it. 
    Alex D
    Applications Engineer
    National Instruments

  • How to save data model design in pdf or any format..?

    how to save data model design in pdf or any format..?
    i ve created design but not able to save it any mage or pdf format

    File -> Print Diagram -> To PDF File

  • How to debug Sequential workflow and state machine workflow?

    Hi All,
    How to debug Sequential workflow and state machine workflow?
    Thanks in Advance!

    check this
    http://msdn.microsoft.com/en-IN/library/bb386166(v=vs.90).aspx
    http://msdn.microsoft.com/en-us/library/vstudio/ee231573(v=vs.100).aspx

  • How generate a XML file & how to save data in that file?

    hi,
    How to generate an xml file & how to add data in that xml file? is there anyone who can help me about this? Firstly i need to open a xml file and after that i need to save user data in that file? how i will do it? What will be the solution of this? please give me solution........
    with regards
    Bina

    With an API like Xerces you can parse an XML document into a DOM tree. You can do modifications on that tree manually and then write it back out as XML data.
    http://xerces.apache.org/xerces2-j/

  • How to save data aquired with NI mydaq and save it in a data base using Labview?

    i have developped with labview an interface that can control automatic irrigation station using two sensors ( humidity sesonr and temperature sensor) so i want to save data aquired during a year in a data base so i can compare these results in the next year please help me to do that in my interface labview and thanks 
    Attachments:
    PFE.vi ‏223 KB

    There is a database toolkit for LabVIEW.  I don't think it is a free download however.  With the Data Manipulation toolkit, you can integrate with most databases that use the ODBC protocol.
    If you don;t need anything fancy, you can write the values out to file using the write/read spreadsheet VIs.  If the file is [COMMA] or [TAB] delimited, you can import it into your database with ease.
    Another approach is to format you output to a text file as SQL, and import the records that way.
    INSERT INTO TEMP_HUM_TBL (Temperature, Humidity, Txn_Date)
    VALUES (30, 95, 'Dec-24-2013');
    Machine Vision, Robotics, Embedded Systems, Surveillance
    www.movimed.com - Custom Imaging Solutions

  • How to save data from a waveform chart to a file?

    Hi! I have a question:how to save a real time data from a waveform chart? attachement is a example,how can i do to save the data from 0 second to 25 seconds to a file ?thanks!
    Attachments:
    example.vi ‏23 KB

    You can use a property node to get the chart history as a array. Then you can write that data to the file. The data in the array in you example can also be writen to a file. If you only wnat a portion of the data to be saved, use the Array Subset function to get the part you want.
    Lynn

  • Offline Adobe Form using GP - How to save data to SAP

    Hi,
    I have the following requirement.
              o An offline form is sent to different users and when they fill the form and Click on Submit, the data should be saved to SAP.
              o When the data is submitted, it should be recognize the user and multiple clicks if any so that data is not duplicated
    I have used Guided Procedures for this. I have created an Interactive Form callable object with an xdp template and "Create offline Interactive form and send by e-mail" option.
    Problem:
    1. The document emailed to user can be submitted only once. My requirement is whenever form is submitted it should update the previous data.
    2. How to save this data to SAP?
    Version:
    SAP NW SP12
    Adobe Live cycle designer 7.1
    I have gone through various blogs on Adobe Offline interactive forms and GP but I could not get a solution for this. Please help.
    Thank you,
    Vasu

    Hi,
    IMHO there is no easy solution for your requirement. However there is a workaround: you can create so-called "impersonalized" forms. They can be sent or returned as many times as needed from same or different users. However the effect will be that for each form sent out and accepted by GP, GP will start a new GP process. That means that the forms are the first step of such a process - so to say.
    An offline form "in the middle" of a process can be embedded into the process as a dedicated step only. Once this form is returned to GP by the user, the process is continued and 2nd or later form returns are ignored. However there is the possibility to build an additional step into GP to check the input data and if they aren't valid to send out the form to the user once again.
    So you see that there are some possibilities but no straight forward solution for your needs. Hope I could help anyhow.
    Regards,
        Jan

  • How to save data acquired from NI-DAQ in text format instead of TDMS using the DAQ-mx ANSI C code?

    Hi,
    I wanted to save data acquired from NI-DAQ (for example, NI 9234) in a file using the DAQ-mx ANSI C Code. The response I got was as follows:-
    One way to do it is with TDMS logging. DAQmx comes with functions designed to log to a TDMS file. This is a special file type that is used for collecting data in a logical format. It can be displayed in a TDMS viewer where data is separated into groups and channels. NI-DAQmx provides examples for how to log to TDMS. Look at the TDMS examples in the C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage directory.
    However, now I want to know is there a way that using that same C code, can we save the data in a .txt file format (Text File) instead of a TDMS file? We actually want to access that file through MATLAB (that's why we want to save it in text format).
    Also on an other note, is there a way we can access & open TDMS files by MATLAB?
    Thanks,
    Sauvik Das Gupta

    There's a way you can access TDMS files in MATLAB:
    http://zone.ni.com/devzone/cda/tut/p/id/7446

  • How to save data in 4-bit mode instead of U8

    Hi
    I use LabVIEW to acquire and save data through the counter timer PCI6602.
    My signals are really low so the data can be expressed in 4-bits (0-15).
    I have used the conversion to U8 and write them using "Write Binary Files"
    So this uses 1 byte for each data point but I would like to reduce it to 4bit (half byte) for each data point.
    Can anyone help me with this?
    I am attaching my program for reference 
    Solved!
    Go to Solution.
    Attachments:
    DAQ-longvector1.vi ‏64 KB

    Here's some easy code how to do it.
    Note that this code assumes that the data is 4bit (0..15). If any of the upper 4 bit are set, you've got problems, of course
    See if this makes sense. Good luck.
    This example uses a single 1D array. You would eliminate the decimate/interleave and just use the two arrays.
    A small comment to your code. There are a few weird constructs, but the use of two "split array" operations to take a simple derivative seems overkill. This made a honorary mention in the Rube Goldberg Hall of Fame.
    Message Edited by altenbach on 12-04-2008 05:18 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    8bitTo4bit.png ‏18 KB

  • How to save data in columns with headers?

    I'm trying to save 10 different types of data into individual columns with headers, but I can either get one giant column of data with the given header at the start of each data set (imbeded in the column) or I can get the headers in different columns, but the data all in one row. This seems like a simple problem, but for the life of me I can't figure it out--HELP!
    I've attached my code...don't laugh, I think I've created a monster trying to figure this out. What I'm trying to get is one column with the header "Power (watts)" and then the power data in that column, one column with the header "angular acceleration (rad/s^2)" and then the angular acceleration data in that column, and so on...
    Thanks!
    Attachments:
    RILE-25.vi ‏335 KB

    Hi
    Take a look at this VI / Block diagram pic
    Here, I am demonstrating how to write data to a file column wise along with relevant column headers
    Hope this helps
    Regards
    Dev
    Attachments:
    header_column data.JPG ‏49 KB
    header_column data.vi ‏20 KB

  • How to save data from form into database

    i nid to save data from form into the new table, @abc.
    got any idea ?
    smtg like oObj = BaseAddOn.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes) this but it is a new object or user data source.
    Thanks

    hi
    i have created UDO i have also done registration  i want to bind item master completely to matrix and then in one column i will set check box to check unchecked and then i want to save it to database
    i have one user defined form and 4 matrix and 4 child tables
    for each matrix i have given 1 form and i have to transfer the data from temp form to main form matrix having large data in matrix on temp form to main form matrix
    to load data on matrix i have used for loop that i want to avoid so how i can bind large data to matrix without for loop
    regards
    amey

  • Wiring Data in a State Machine

    I have a state machine with about 20 cases all handling different user interactions and all completely independent of one another. That is, what one case does has nothing to do with what another does (for most of them anyway). They just execute one case and then go back to the default case. Some of them though do require data to be passed out of one case so that it can be read in another (actually not the data but just the data structure to be reused). Shift registeres work just fine of course, but this requires me to wire this data through all the other cases that don't need it just so they can have an output for the tunnel. Is there anything else I can do to avoid wiring paths through every case that doesn't actually need the data?

    Here's a real simple example. I can't give you too much insight with respect to the memory usage, except to say that I've never had any problems doing things this way. I've written a couple of big vi's with 30 - 40 variables clustered this way.
    Attachments:
    Clustered_Variables.vi ‏35 KB

  • How to save data in a string control?

    I want to save data in a string control or indicator. I know that I can rt-click and make the data default. But can it be done through a proberty node or something else when the program is running?

    There isn't a "Make Current Value Default" method that you can invoke programmatically, this would require your VI to be saved when it was closed, which obviously couldn't be done if it had been built into an executable.
    You could read the values from the controls/indicators and save them in a .ini file using the Configuration File VIs on the File I/O palette, and have some code at the start of your program that reads the values from the file and puts them into the objects using local variables.

Maybe you are looking for

  • Scroll One Page at a Time

    Using InDesign CS5 version 7, on a mac OS10.6.8 I would like to be able to scroll through a document one page at a time using my mouse scroll wheel. In some other programs there is a setting to scroll "continuously" or "by pages" - in the latter, eac

  • Product Variants in CRM from R/3

    Hi Everybody, As you know that Product variant in CRM is material variant in R/3. A material variant is created when the available item is in stock. Scenario. I created a configurable material 'KMAT' in the material master in R/3 system . In the basi

  • New Line in pdf display

    Using xdp + xml data to generate pdf. I have a floating field that is bind to data. Data is a paragraph with multiple \n to indicate new line. When form is preview in designer it shows \n char instead of moving next content in paragraph to new line.

  • ........ Expert  suggestion needed for Loading Data in DB

    Hi all The current requirement we have is to Load data from Excel File to oracle Databases. The Excel file has around 30 Sheets , each corresponds to a table, ( means 30 tables in the database) . Currently we are using sqlldr commands to load data fr

  • User input prompt in CASE statement

    I would like to obtain user input via a prompt and use what the user selects in my OBIEE Report case statement. For example &START_DATE AND &END_DATE are user inputs: CASE when SHIP_DATE BETWEEN &START_DATE AND &END_DATE THEN 1 Thanks