Tring to save data for n iterations, beginning when SAVE button is pressed

OK, I'm STILL struggling with this vi.  (See post from 12/16).  I've cleaned up the code considerably, and better defined what it is I want to accomplish.  When the vi begins, I want to immediately begin displaying on the front panel 3 values: Indicated Flow Rate O2, Indicated Flow Rate N2, and Helium Concentration.  When the operator presses the SAVE button, I want the next n iterations to be saved to file.  N is determined by the Measurement Duration (in minutes) divided by the measurement interval (in seconds).  After the desired number of data points are saved, the operator can press the stop button, at which time the vi goes to frame 1 of the sequence, shuts off the Helium Solenoid and returns the detector to standby.  The whole key to this vi is being able to monitor the data in real time, and decide based on measurement criteria when to begin saving the data, initiated by pressing the SAVE button.  Somehow, I know I need to initiate the save with the case statement, and then save the data (n-1) more times.  When I tried a loop within a loop, I just saved the same data for the given # of iterations, and then the displays began updating again.  Is this making any sense at all?  I'm beginning to understand what an aneurism feels like.
Attachments:
Master He Concentration 12_20 V5.vi ‏88 KB

One possibility solution is attached. Basically, we have a shift register that contains zero and regulates a case structure. Case zero is empty. If save is pressed, we feed a positive, nonzero number to it , which triggers the default case that (1) saves a data point and (2) decrements the shift register. This contiunes until the shift register reaches zero again.
Modify as needed.
btw: there is no reason for any local variables, use direct wires.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Master_He_Concentration_12_20_V5MOD.vi ‏75 KB

Similar Messages

  • No batch input data for screen SAPMSSY0 0120 when running BDC in background

    Hi Experts,
    I am facing an  issue "No batch input data for screen SAPMSSY0 0120" when running a BDC for VA01 in background.
    The scenario is like we have EDI orders coming into SAP in the form Idocs. These EDI orders are processed by Function module
    IDOC_INPUT_ORDERS. This FM module internally calls VA01 (Call Transaction) to create Sales Orders in SAP.
    Now we have a scenario in which we want a popup screen to come up  & ask for selection of record from list of records displayed on popup screen. In background since we can not show up a screen, we are programatically selecting the record we want & going ahead.
    Now what is happening is during foerground the functionality is working abosultely fine, that is incoming idoc is getting posted successfully in SAP with status of 53. Incase of back ground processing of the same we are getting an error
    No batch input data for screen SAPMSSY0 0120
    I have checked this screen through screen painer(SE51) & i did not find any element on this screen but Element list
    shows one field Syst-Xcode.
    Kindly guide me how to fix the issue so that the same can work as expected in background.
    Regards,
    Chetan.

    Hi Chetan,
    List screens utilize SAPMSSY0/0120. Please check within your ABAP coding if you have any customer exit that tries to issue WRITE statements. If so, either remove them or add logic to not issue them in background (e.g. SY-BATCH = 'X'). Another culprit might be a SUBMIT statement in a user exit, which triggers a report with list output. I'm not completely sure, but I think the screen is also used for some value helps (do you have any coding forcing a value help popup?).
    Hope this helps, harald

  • User exit in Delivery after the SAVE button is pressed.

    When the Delivery gets picked and Post Goods issued , the Delivery quantity for example instead of 48,000 LBS may be little less say 47,345 LB. We need to update this number in the order quantity which will originally have 48,000 LBS.
    I need to update this quantity in the sales order VA02 after the delivery is saved. Whats the user exit AFTER the save button is pressed?
    Thank you in advance

    Hi,
    Check this User Exits related to Delivery,
    Delivery related exits
    V50PSTAT - Delivery: Item Status Calculation
    V50Q0001 - Delivery Monitor: User Exits for Filling Display Fields
    V50R0001 - Collective processing for delivery creation
    V50R0002 - Collective processing for delivery creation
    V50R0004 - Calculation of Stock for POs for Shipping Due Date List
    V50S0001 - User Exits for Delivery Processing
    V53C0001 - Rough workload calculation in time per item
    V53C0002 - W&S: RWE enhancement - shipping material type/time slot
    V53W0001 - User exits for creating picking waves
    VMDE0001 - Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002 - Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003 - Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004 - Shipping Interface: Message SDPACK (Packing, Inbound)
    V02V0001 - Sales area determination for stock transport order
    V02V0002 - User exit for storage location determination
    V02V0003 - User exit for gate + matl staging area determination (headr)
    V02V0004 - User Exit for Staging Area Determination (Item)MV50AFZ1 - User Exits for Delivery Processing
    MV50AFZ2 - User Exit for Batch Quantity Allocation
    MV50AFZ3 - LIPS-KOQUI (Picking is subject to confirmation) determination
    MV50AFZK - The user exits in this include can be used to fill the condition tables for material listing and
    material exclusion (KOMKG and KOMPG) and product selection (KOMKD and KOMPD) with own data.
    MV50AFZL - In delivery creation process for sales orders there is the possibility to restrict the delivery creation to some order items.
    If these order items are member of a delivery group, but not all items of
    this delivery group are includes in the restriction range of the order item nubers, you can specify in this routine what to do.
    MV50AFZP - This user exit can be used to modify change mode of pricing screens in delivery processing.
    MV50AFZZ - Users Exit for Batch Determination; LIPS-LGORT determination
    Thanks & regards,
    Dileep .C

  • Unlike IE When back button is pressed it takes too long. pleas do something for that. thnx.

    Unlike IE When back button is pressed it takes too long. pleas do something for that. I like firefox and i get to use the back button more often.
    thnx

    In order to be able to find the correct solution to your problem, we require some more non-personal information from you. Please do the following:
    *Click the Firefox button at the top left, then click the ''Help'' menu and select ''Troubleshooting Information'' from the submenu. If you don't have a Firefox button, click the Help menu at the top and select ''Troubleshooting Information'' from the menu.
    Now, a new tab containing your troubleshooting information should open.
    *At the top of the page, you should see a button that says "Copy text to clipboard". Click it.
    *Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.
    If you need further information about the Troubleshooting information page, please read the article [[Use the Troubleshooting Information page to help fix Firefox issues]].
    Thanks in advance for your help!

  • Detect when a button is pressed for more than a certain period of time

    How do I detect if a button is pressed for more than a certain amount of time? E.g. if you press on the delete button on the dialer and hold it there, it continues to delete. Or if you hold down the .com button for more than a sec, it changes to .net and so forth.
    Thanks

    Start a timer when the button is pressed. Reset the timer when the button is released. If the timer expires before being reset then you know the button has been held down at least as long as the timer was set for.

  • "Failed to retrieve data for this request" occurred when I tried to access a database.

    Hi,
    I installed the sql server 2008 Client on my pc, so that I can connect to a remote sql server 2008 Enterprise cluster.  Here is what happened:
    0. Added myself as a db_owner on the two databases in the sql server cluster.
    1. On my windows xp pro, I typed the server name and log in.
    2. After I logged in, I clicked on the Databases to expand the node.  However, an error prompt says,
    "Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
    The server principal "DomainName\MyName" is not able to access the database "DevicelockDB" under the current security context. (.Net SqlClient Data Provider)"
    I only need to connect to two databases that I created on the sql cluster.  I don't know why the DevicelockDB is needed before I can access two databases.  What does DevicelockDB do?  Do I need it for connecting to a database?  Let me know, thanks in advance.

    I had the same problem , this one resolved the problem , thank you  deshmukhsdineshd
    Best
    Regards
    Tony de Leon

  • Is it possible to save a data portion starting from when a "save" button is pressed?

    Hi,
    The below attached vi acquires data from a sensor. The sensor signal output can be reset to zero and the data saved into a file. However, the saved data comprises the data portion starting from when the vi starts running until the "stop" button is pressed. Is it possible to save the data portion starting from when the "save" button until the "stop" button are pressed?
    Best regards,
    Ninjatovitch
    Solved!
    Go to Solution.
    Attachments:
    Sensor Signal Acquisition.vi ‏52 KB

    this should be in 8.2
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    RandomNumberSubVI.vi ‏8 KB
    savefilewhenselected.vi ‏11 KB
    f.txt ‏1 KB

  • User exit name which triggers when a save button is pressed in cs01

    Hi Gurus,
    Can anybody tell me what is user exit which will trigger for a save button in tcode
    CS02
    Regards
    Yathish

    hi,
    Below are the list of user exits available
    for cs02.
    PCSD0001            Applications development R/3 BOMS                           
    <b>PCSD0002</b>            BOMs: Customer fields in item                               
    <b>PCSD0003  </b>          BOMs: Customer fields in header                             
    PCSD0004            BOM comparison                                              
    PCSD0005            BOMs: component check for material items                    
    PCSD0006            Mass changes user exit                                      
    PCSD0007            Check changes in STKO                                       
    PCSD0008            WBS BOM: Customer-specific explosion for creating           
    PCSD0009            Order/WBS BOM, determine URL page                           
    PCSD0010            Order/WBS BOM, determine explosion date                     
    PCSD0011            Knowledge-based order BOM, parallel update                  
    PCSD0012            Customer - Mat. number/mat. number during material change 
    PCSD0013            Customer-specific processing of an explosion for BOM rowser
    Hope this helps !!
    Cheers
    Alfred

  • User exit name which triggers when a save button is pressed in CJ20N

    Hi, does anyone knows which user exit is called when press the 'SAVE'  button in CJ20N transaction.
    Thanks

    hi,
    Below are the list of user exits available
    for cs02.
    PCSD0001            Applications development R/3 BOMS                           
    <b>PCSD0002</b>            BOMs: Customer fields in item                               
    <b>PCSD0003  </b>          BOMs: Customer fields in header                             
    PCSD0004            BOM comparison                                              
    PCSD0005            BOMs: component check for material items                    
    PCSD0006            Mass changes user exit                                      
    PCSD0007            Check changes in STKO                                       
    PCSD0008            WBS BOM: Customer-specific explosion for creating           
    PCSD0009            Order/WBS BOM, determine URL page                           
    PCSD0010            Order/WBS BOM, determine explosion date                     
    PCSD0011            Knowledge-based order BOM, parallel update                  
    PCSD0012            Customer - Mat. number/mat. number during material change 
    PCSD0013            Customer-specific processing of an explosion for BOM rowser
    Hope this helps !!
    Cheers
    Alfred

  • How to Create a Dynamic http address that opens the Explorer Window for a List Item When a Button Is Clicked--Currently Trying to Make this Work with Javascript

    I have created a button (via Content Editor) that uses JavaScript to open the Attachments folder of a list item in the Explorer Window in SharePoint 2010. The purpose is to have drag and drop functionality for each list item, having multiple attachments.
    The button works but opens the "Attachments" folder containing all of the other folders for each list item (one folder per item). It seems that when you add an attachment to a list item, SharePoint numbers the folder based on the item's ID. What
    I'm trying to do is take the JavaScript I have and have it run when a button is clicked in a custom form. When it runs, I'm trying to get it to open the "specific" folder for the list item. I have had success creating a hyperlink in the list that
    does this; however, the link WILL NOT work until I use the Content Editor created button that runs JavaScript, that prompts me to click OK to my profile certificate, and then opens the Attachment folder. After that occurs, I can use my hyperlinks without issue
    because I'm no longer prompted to click OK for my cert.
    So I'm trying to take the JavaScript I have and place it in a list item form (custom form) and have it run when a form button is clicked. The problem is I have very little knowledge of JavaScript (did I mention little?) and
    "don't know how to take the "http:" address I have in the script and append to it the list item ID, according to the record I have open."
    So that for any record I open, the script will grab the corresponding record ID (or list item ID) and append it.
    Here's the script I'm working with (which I didn't create but am grateful for):
    <style>
    .httpFolder {behavior:url(#default#httpFolder);}
    </style>
    <script text = "javascript">
       function fnOpenFolderView(){
       oDAV.navigateFrame("https://server/collection/site/subsite/Lists/Sublist/Attachments","_self");
    </script>
    <div id = "oDAV" class = "httpFolder"/>
    <input type = "button" value = "Open Attachment Folder" onclick = "fnOpenFolderView()"/>
    The above script, in the Content Editor, creates a button that opens the Attachments folder for the corresponding SharePoint list.
    JackSki123

    Hello Thriggle,
    Thank you for pointing that out. I appended your "GetUrlKeyValue" to the end and it worked. That said, I noticed it doesn't run as smoothly as when I simply click on the Content Editor button I created that resides on the SharePoint List
    ASPX page (not the form). The Content Editor button has the same code, minus the "GetUrlKeyValue". I click it; I get prompted to choose my cert; it opens right up.
    Now go to the ASPX Display form where I dump the code in a table cell. Button appears in cell; I click it; wait; wait; I get prompted for cert; it opens. Do I need some sort of "throttle" for the JavaScript? For instance, I thought before running
    JavaScript, you reference the library first. This code doesn't do that. I'm wondering if there's something more I need to make this run smoothly. Thank you both for getting me this far. 
    JackSki123

  • Inserting data in a table when the save button is pressed

    Hello all,
    I have a form displaying all fields in a table. it contains an adjustment column which is null by default and also an adjustment flag which is set to NO by default
    Now when the form is executed the user is able to add a value in that adjustment column and this value is stored in another table order_adjustment. Entries should be made in the adjustment table only when there is a change in the adjustment column and only for that value that was modified
    create table order_adjustement
      adjustment_id number,
      oe_line_id number,
      adjustment_cnt number,
      created_by varchar2(100),
      created_date date,
      modified_by varchar2(100),
      modified_date date
    )i have created a procedure in my form to insert my adjustment value
    PROCEDURE p_adjustment IS
    BEGIN
      insert into order_adjustement
        adjustment_id     ,
        oe_line_id        ,
        adjustment_cnt    ,
        created_by        ,
        created_date     
      values
        order_adjustment_seq.nextval,
        :oe_lines.oe_line_id,
        :oe_lines.adjusted_cnt,
        user,
        sysdate
    END;i have used the trigger when new item instance on that adjustment field but the problem is that its not saving the value i am passing through it the first time but if i modify those same values then those values are recorded in the table.
    Edited by: Kevin CK on Aug 17, 2010 3:34 PM

    Kevin CK wrote:
    for eg
    for order 1 initially its adjustment_cnt is null
    if i insert 1 then save, it saves the null value but if i change the 1 to 10 then it records 1, if i change the 10 to 20, it records 10.If you are calling that procedure in PRE-UPDATE then it should not happen like this. It should insert always the recent updated value.
    It seems as if it keeps those values in a buffer.No nothing called buffer while updating and saving records in forms. Because you are using the field like :my_field_name so it should always give the current value which is in the item.
    i have tried calling that trigger at block level but still doesnt workWhat did you try? And in which trigger did you try?
    -Ammad

  • On my iPad mini, I tried turning off cellular data for specific apps, but when I exit the settings, they're automatically turned back on. This is ridiculous because I can't turn the Cellular data on without it CONSUMING my 1% of remaining data

    I'm almost out of data and I really can't afford to lose what I have left.

    Did you get anywhere with this? I'm considering wiping it and setting it up as a new device.

  • I want to run my program with continuous aquisition and write data to file when a button is pressed and get the most recent samples from the DAQ board.

    This is an update to a question I asked earlier. I am still trying to solve the problem. I have included a zip file with a library file. The file to open in pj_pushbutton.vi. I have placed comments explaining the issues and problems in this vi and the subvi's.
    When I push my button to write the data to file I think it is writing the data that has already been stored in the buffer and writing to file all at once. I want the data that is taken from the DAQ board from the time that I press the Write File button. How do I do this?
    Attachments:
    pj_pushbutton.zip ‏692 KB

    Hi,
    1. In AI read, you need to set the Read/Search option to "Relative to End of Data".
    2. Next you should not start AI Read VI until you press the Write to File. I am attaching an example VI below. Please see if it helps.
    Regards,
    Sastry V
    applications Engineer
    National Instruments
    Attachments:
    MostRecentAcquiredData.vi ‏97 KB

  • Long pause for render to commence when render button is clicked in After Effects

    I am using after effects on a mac. When I go to render my composition and click on the render button it can take up to 10mins for after effects to actually commence rendering. I have purged all the disk memory and cache which doesn't have any effect. It has only fairly recently started to do this. I'm not sure if there is a setting that has turned on in the preferences or what?
    I called up customer support on Friday 13th and was told i would be getting a call back the same day after being on hold for over 30 minutes. I never got a call back or response!
    Can anyone shed some light on this?
    Thanks

    No effects used on the composition. System info,system preferences MP info and render settings can be seen below.

  • How to get a loop run for 1 instance every time a button is pressed

    I need to get a loop run only once everytime a button is pressed.
    Please help me.

    Read the help built into LabVIEW
    Here's online version of the help: http://zone.ni.com/reference/en-XX/help/371361L-01/glang/event_structure/
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • Itunes does not allow me to play or import songs from my CD

    I just installed a new external Cd rom drive and Itunes recognizes the Cd is there and lists the song titles but when I try to play the songs it zooms through the songs not playing any and when i try to import them it says that all of them are obsurd

  • PhPMyAdmin and Yahoo webhosting

    I am using Yahoo to host my website and I can not figure out how to connect to Mysql database directly through yahoo. Any ideas? Has anyone been able to connect direct? I do not have MySql or PhPMyAdmin installed on my computer.

  • Select command

    Hi, Im  working on asp.net im trying to get price when I select project in dropdown.Dropdown contains project names SELECT [ID] ,[PID] ,[Item] ,[Description] ,[Quantity] ,[Price] ,[Total] FROM [testitem] PID --Foreign key SELECT [ID] ,[Pdate] ,[Proje

  • Incompatibility CS6 and Mac os 10.6.8

    I recently bought CS6 and Ps and Ai don't run on my laptop computer, which runs mac os x 10.6.8 and can't be upgraded to 10.8. Why doesn't Adobe support this os? And is there a way to get version of Ps and Ai that work on that computer with my CS6 li

  • How to read the Chinese characters set?

    Hello, everyone, I have a serial problem about using JavaMail. When i read the mail which contain Chinese characters set ( e.g. Big5 ). It will display a unreadable coding. Example: " =?big5?B?aGl5YXRvbw==?= " How to solve it? Please give me a soluti