Creating a delay in labview until a c program completes in system exec.vi without using "wait until completeion"

I want to run two related C programs. The second one reads a text file that the first created. So I need to wait until the first is completed.
I use "system exec.vi" and I know I can set "wait until completeion" to true, but this way I won't see the screen and the C program announcments. Someone has an idea?

Hi Dror,
my idea: just wait for the text file created by the first C program. Check for the presence of this file (maybe using 'list directory') or check for the size of this file...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Need to deauthorize again. but systems says I have to wait until february. need to do it now. Spent tons of cash with Apple and need extra special service please

    need to deauthorize again. but systems says I have to wait until february. need to do it now. Spent tons of cash with Apple and need extra special service please

    You can still deauthorize an individual computer from the iTunes Menus.
    You can de-authorize only once a year 'all' computers from your iTunes account page.
    MJ

  • BAPI commit without using Wait? need to get the data for created order

    I am using BAPI to create or change sales order and by using 'BAPI_TRANSACTION_COMMIT' updating the database.
    Immediately after that there is some requirement to fetch VBAP with the created order number, but there is no data found.
    If i use call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                   wait          =  'X'.
    then i am able to fetch data from VBAP, but its impacting the performance. Is there any alternative way to get data without fetching or without using wait.
    Can i use ABAP memory or SAP memory to get the details?
    Please help...........

    Hi Tapas379,
    Yes technically you can:
    set data before commit
    DATA memory_id(20) TYPE c.
      CONCATENATE 'VBAP_01_' sy-uname INTO memory_id.
      DELETE FROM DATABASE indx(as) ID memory_id.
      EXPORT vbap_tab = vbap_tab "<-input
        TO DATABASE indx(as)
        CLIENT sy-mandt
        ID memory_id.
    Get data from anywhere after setting it.
      data memory_id(20) type c.
      concatenate 'VBAP_01_' sy-uname into memory_id.
      import vbap_tab = vbap_tab " ->output
        from database indx(as)
        client sy-mandt
        id memory_id.
      delete from database indx(as) id memory_id.
    Thanks,
    Duy

  • There was an error importing some photos from my iphone, and since then I can not close the program ... it gives the mesage 'please wait until import is conclued'...but nothing is being tranfered. Any help ? Iphoto version 9.5.1

    there was an error importing some photos from my iphone, and since then I can not close the program ... it gives the mesage 'please wait until import is conclued'...but nothing is being tranfered. Any help ? Iphoto version 9.5.1

    Force Quit the application from the Apple menu.

  • How do I create a table of 3 data elements for each trial and have it updated instead of waiting until the end of the program?

    I am trying to record 3 pieces of data, all (software) timing in ms (in U8 integers). I managed to finally get each data in the right column but now it doesn't record anything in the table and it doesn't update the numeric indicators during the experiment like it should. I can't figure for the life of me what I did wrong. I know at least the trial part of the program works, but so far the data recording part is giving me a headache.
    Thanks
    Attachments:
    BETACRT.vi ‏241 KB

    Why it is not reporting the data is easy; fixing the program may not be. LabVIEW uses a dataflow paradigm. This means that no part of the program executes until all of its data inputs are availble. In your case the table and the array functions driving it are fed by outputs from the outer while loop. Thus no data gets to the table until the while loop has finished executing (which is at the end of your experiment). One possible approach would be to store the data in a shift register and move the table inside the loop.
    Many experienced LV programmers try to avoid or minimize the use of sequence structures and local variables to read and write to/from front panel objects. We use a state machine which is a while loop with a case structure. Queues can be u
    sed to pass data between the user interface and the data acquistion loops. This subject is too involved to be handled in a brief posting, but if you search the archives and examples you can learn more.
    Also, be aware that software timing can be problematic if you are using a desktop operating system. If the OS decides to check the net for software updates or something you could have large discrepancies in your timing. These might be rare, but there is no reliable way of detecting them. I have built several systems similar to what you seem to be trying to do and have never been successful with software timing.

  • For some reason my iPod Touch is unable to verify the email address that I used to create my Apple ID. I can access the iTunes store just fine but cant use Facetime until it verifies my email.

    Has anyone encountered this issue? Any sugestions highly appreciated. Thanks!

    You have to continue to use that old ID for these apps.
    Apps and all purchased content are always tied to the Apple ID that was used to purchase the content. You can't use a new ID, transfer the content to that ID and sync the content with the new one. You have to use the old ID in order to sync and update those apps.
    Log into the old ID on the iPad in Settings>Store>Apple ID.
    BTW - that was not a great idea - purchasing apps with the old ID and then creating a new ID. If you can continue to use that old ID - just keep using it and forget the new one.

  • Question about the Wait Until Next ms Function

    Hello,
    I met a problem when I tried to use wait until next ms function to control the period of the loop.
    I use Labview2009 now. I wrote a VI to sample the current values at 100Hz and then store the samples in a text file. The currents are sampled once in a loop and then wait for next 10ms to begin the next loop. After 360,000 loops (should be an hour), it will creat a new file to store the new samples in the following an hour.
    I left the VI runs on CompactRio for the whole weekend. The result I got is shown in the picture below:
    24 files should be created in one day. While there were only 3 files created in the firest 24 hours ( from Fri 16:00 - Sat 16:00). And after that it worked very well.
    When I checked the first three files (created from Fri 16:00 - Sat 16:00), I found that it didn't sample at 10Hz. It sampled at the frequency of about 20Hz (sometimes 18Hz, sometimes 19Hz).
    I am confused by the problem a lot. What may cause it didn't work in the first 24 hours and worked after 24 hours? And How could I fix this problem?
    Thank you very much!

    You need to show us some code!
    This cannot happen in a single loop, but can easily happen if you have e.g. stacked loops or sequences containing multiple wait statements.
    Also have a look at these old threads:
    Synchronization problems during measurements (using while loop)
    accurate timing between events
    If accurate timing is important, use a timed loop. Your incorrect times are faster, so I don't think there is a problem with the inner code taking too long.
    LabVIEW Champion . Do more with less code and in less time .

  • Using LabView to run VB program with parameters

    Hi,
    It's my first message here so I hope I am doing things correctly. I tried to do some research before asking and I found a lot of good informations but right now, I seem to be stuck.
    I am quite new to LabView, I did few VIs here and there but nothing really "serious". I am currently working on a LabView interface that deals with VB, Excel macros and Data extraction from Text file.
    The VB program is in charge of a motor position, then, some Excel macros are used to do some measurement and the results are written in a text file that I use to plot some graphs.
    The VB program I made give the window I put in the picture in the attached files. Basically, you have to enter some values in those TextBox then click on Move and the motor will move. When you click on the button Home, the motor moves back to the position "0", no need of the two TextBox. In my labview interface, I created two ComboBox that contain all the possible values for both of the TextBox of my VB program. What I would like to do, when I click on my "Measure" button on LabView that initiates the VB program, is that it can fill the two TextBox from VB with the data entered in my LabView ComboBox and then run the program, simulating a "click" on the Move button.
    Right now, I found a VI (included in the attached files) that runs my VB program from LabView (I use it as a Sub-VI) but I still have to manually put the values in my VB program. My goal would be that when I click on my LabView button to start my measure, the motor moves but the VB program doesn't show up for the user to manually enter the values he wants.
    I hope I was clear but if you need any clarification.
    I did the the VB program myself.
    I can also link the LabView interface I already created if need be.
    Thanks for your help,
    Baptiste
    Attachments:
    Moteur.png ‏5 KB
    lancerEXE.vi ‏9 KB

    First, thank you for your answers.
    I know that I don't need to use VB or LabView. I just want for myself to be able to use LabView to manage a program in VB, one in VBA and use data from a text file. I know I could write everything in VBA and that would get the job done. The thing is I want to get away from VBA and Excel as much as I can. In the future, the plan would be to re-write my VBA program with LabView but as of now, I just want to use LabView to manage everything. I know I don't really need it but I want to learn how to do it and have something that works.
    So I would like to know if there is way to do what I wish to do, running my VB program with parameters coming from LabView.
    Thanks

  • Labview system exec matlab

    Hi, I am trying to implement  a v.i where i call matlab  from labview to run a script using system exec.vi of labview. When i call the script using octave as the .exe to be called it works fine..however with matlab as the .exe it doesn't seem to work properly,,,.i have attached my v.i...please help  me figure what i could be doing wrong..thank you
    Attachments:
    PartialDebug.vi ‏14 KB

    yes it was just supposed to open matlab..i hadn't tried running it without any script..anyway i have figured it out..i was passing wrong commands to system exec..i used this link to figure it out http://www.mathworks.it/it/help/matlab/ref/matlabu​nix.html...thanks

  • Text flows create a delay when an overflow creates a new page, preventing you from reading the page number, giving error

    Hi all!
    I am creating a script to generate automatically a photo catalog; the idea is to prepare a master document with a text frame in the master spread with auto flowing, then insert images with their caption by the script, letting the system create automatically the subsequent pages when necessary by an unique flow of text.
    My catalog is divided in sections, each represented by a different master spread; so I have to know in which page I am working when the script put there an image, just to link the current page to the proper master spread.
    To simplify everything I have resumed the core of my script here, using text instead of images:
    /* load a master document, only containing an empty text frame in the master spread, connected to the main text flow */
    var doc = app.open(new File("~/Desktop/mySampleDoc.indd"));
    /* I work on the story, thinking that whenever the textframe of the first page will be full, another text frame will be created in the next page (automatically created) */
    var story = doc.pages[0].textFrames[0].parentStory;
    /* now I put some lines of text into the story, expecting the creation of a new page when the first one will be full */
    for (var i = 0; i < 100; i++) {
       /* this is next line: */
        story.insertionPoints[-1].contents = "this is line n. " + i + "\r";
        /* here I want to know on which page is the line just created (error is generated here just during the creation of the new page + text frame) */
        thisPage = story.insertionPoints[-1].parentTextFrames[0].parentPage.documentOffset;
       /* and now I print page number */
        story.insertionPoints.item(-1).contents = "current page: " + thisPage + "\r";
    The big problem is: when the first text frame is full and an overflow is generated, a new page with a new text frame belonging to the main text flow (as the master spread wants) is generated; but it seems my script requests the page number before the new page with the new text frame is born, and an error is given.
    It seems like the script goes too fast in respect to the creation of the new page.
    If I delete the line thisPage = story.insertionPoints[-1].parentTextFrames[0].parentPage.documentOffset; everything is ok.
    I tried to introduce a delay until 3 seconds without any effect.
    I tried also to show or zoom the new page before the page number request, thinking to force the system to wait until page is really born, also without any effect (by the way, I was not able to show the page during the script's additions of text!).
    Someone can help me?
    Many thanks to everyone
    Roberto

    Many thanks: you are right!
    Unfortunately, I am at the very beginning with ExtendScript, and there are so many things I don't know until now...
    With recompose() everything works very well, and it give me a solution also for redrawing the page while the script is working...
    Many thanks, again!
    Roberto

  • Sequence 3 tasks - create a finite pulse train-create a delay by creating a pulse train-measure pulses

    Hello
    i use a board 6023E and pc pentium4 3Ghz
    My problem is how create a delay with few microseconds between two tasks?
    I need creat three tasks.
    Fisrt create a finte pulse train for this i use a counter.
    Second create a delay for this i use again a conter to creat a pulse train in witch the delay is equal to frequency x number of pulses.
    Third measure pulses for this i use again a counter but in this case is a counter input.
    In attachment i send a picture with my program.
    I dont understand why my program dont work? my program take a lote of time during the excution. I think the problem is  between stop une task and start another i would like know how i can resolve the problem if is possible.
    picture with my program
    ftp.ua.pt/incoming/labview/sheme
    Marco

    Hi,
    I hope to understand exactly what you want to do. If you need a long delay with your E series board check the following link
    http://digital.ni.com/public.nsf/allkb/f66ccab02d3b901886256a03005ee14a
    Let me know if it's ok.
    Regards
    Omar S. NI

  • My old email address was hacked and I am no longer able to access it. How can i reset my icloud ID without losing all of my pictures and more inportantly contacts? I have created a new ID but i cannot seem to use it until I delete the old account

    my old email address was hacked and I am no longer able to access it. How can i reset my icloud ID without losing all of my pictures and more importantly contacts? I have created a new ID but i cannot seem to use it until I delete the old account

    You need to use the old ID and password to delete the iCloud account. After you delete the old account, you can sign in with the new ID in iCloud.
    Have you seen this.
    http://support.apple.com/kb/HT5796
    iCloud
    iOS 6 and later: Go to Settings > iCloud.
    If you signed out before changing your Apple ID, enter your current Apple ID to sign in. The data from your iCloud account will download to your device.
    If you're still signed in with your previous Apple ID:
    Scroll down and tap Delete Account. Depending on what iCloud options are turned on, you'll be asked to confirm that you want to delete data from your device. To confirm, tap Delete. (If you're using iOS 7 and have Find My iPhone turned on, you'll be asked to enter the password for your previous Apple ID. Enter the password, then tap Turn Off.) The data will be deleted from your device, but not from iCloud.
    Enter your current Apple ID to sign in. The data from your iCloud account will download again to your device.

  • Creating a delay on an advanced action

    Other than using the timeline, does anyone know of a way to create a delay
    in an advanced action?
    What i'm trying to do is when the user clicks a button, have an object appear, then have it move to the next slide. If i place both actions in an advanced action, the user never sees the object because it appears and moves to the next slide at the same time.
    I do not want to use the timeline for this, because it is relative to when the user pushes a button, and everyone reads and reacts at a different pace. Thanks so much if anyone has any creative ideas!

    Hello,
    Perhaps use 'micro-navigation'? It means using the timeline to put the object later than the pausing of the click box, and use the advanced action to navigate to the frame where the object appears, and add the statement Continue (so that the playhead moves on). Be sure to set the exit action of the slide  to Continue instead of the default No action. Now the user will see the object for the duration of its particular timeline and the playhead will move smoothly to the next slide after that duration is finished.
    More information about 'micro-navigation'? It is a term I used for my latest blog post:
    Micro-navigation in Adobe Captivate
    Lilybiri

  • How to create the folder in LabVIEW 7.1?

    Dear All,
                I need to create the folder in LabVIEW 7.1?.. Then if the folder exsists i need to ceate the new folder with the file name by increate by nemerical number by 1. As well as i need write the data's which i acquired in sepeate test file within that folder itseif. If the file name already exsists i need to create the same file name by increatemet by one in numerical no 1. Any one help to solve this issue?
    Regards,
    Srinivasan.P

    You've asked this question before, and so far have shown nothing to indicate that you've made any attempt to solve the problem by using the tools available to you. Like the functions palette. Or the search tool, since this question has been asked many times before.
    Have you looked in the File I/O palette? There's the New Directory function for creating directories. There the File/Directory Info function that can be used to check if the folder exists (call the function, and if you get error 7 you know the folder doesn't exist). You can also use List Directory on the parent directory.
    Make an effort.

  • Is there a way to create netcdf files in labview?

    I am looking for a way to create Netcdf files in labview rather than having to go through the pains of creating them in C++ and calling that from labview.

    aggieweather,
    See the following post. I think should help out. Thanks!
    Chris C
    Applications Engineering
    National Instruments
    Chris Cilino
    National Instruments
    LabVIEW Product Marketing Manager
    Certified LabVIEW Architect

Maybe you are looking for