Second start window in a command line application

I have a CVI vantage command-line application. The bed that a code module using the can Protocol. He takes this information and generates a product label and put on a module, scans the barcode and verifies its accuracy then it ejects the device. This process involves a data acquisition and a PLC. Lately we have had problems with the PLC and data acquisition. I want to start a second window and view the status of the lines of e/s DAQ. Start the second thread is no problem, what I need to know is to know how to trigger the second display window. I try to avoid using window GUI functions if I can. Is it possible and where can I find an example of this?

Hello Rich_G,

Unfortunately, Win32 programs are limited to a console that is used by the process.  You'll either need to view your status information in a graphical interface, or create a child process to host your second console.

An example of creating a child process and communicate with him via named pipes can be found here.  It is in C++, but it should translate quite directly to C.  While the example uses named pipes for interprocess communication, you can use any mechanism you prefer, such as network Variables.

NickB

National Instruments

Tags: NI Software

Similar Questions

  • Rebuild the indexes to search for Windows 7 via command line

    My search index is constantly becomes corrupted and will have problems, looking for things in Outlook. The only way I can make it work temporarily is rebuilt the index and it goes for a week or two before she starts to have problems again.

    Is it possible that I can have research rebuilt via command line so that I can put in a batch file and schedule it to run?

    off @echo
    net stop wsearch
    del "% programdata%\microsoft\search\data\applications\windows\Windows.edb.bak".
    move "% programdata%\microsoft\search\data\applications\windows\Windows.edb" "% programdata%\microsoft\search\data\applications\windows\Windows.edb.bak".
    net start wsearch

  • How can I enter in the start page of the command line "firefox.exe"?

    I want to write a script to use firefox to download information about a series of addresses on a street. For example: 101 State St, 102, 103 State St State St,... etc. The script will travel addresses and streets, on interest. Firefox.exe accepts command line parameters that define a web page specific and data to be filled in this page?

    You can start Firefox to open a specific web page or a local file by adding the url to the command line, but you cannot specify the data to display, unless these data does not appear in the page source.

  • How to reset the windows password using command line in windows 7

    I tried net user Geek crazy * to reset the password but it has not worked. How can I reset it using the command line

    www.beingpc.com

    D:\Users\admin>NET user "xxxx xxxx" xxxx xxxx

    -> "xxxx xxxx" is a placeholder...

    Try this instead:

    NET user 'user %%nom' MyNewPassword

  • PS Installation: Engine command line Application error - could not sign the database < SID > PS user

    Hi all

    I have this problem, tried all means but couldn't solve it. I'm installing peoplesoft on my laptop. PS HCM 9.2 and peopletools 8.53.

    I followed all the procedures explained in the installation guide 8.53 (little missed - such as running app engine after creation of the database). I installed the application server, process schdueler, Web server for my instance and successfully connected to PIA. But I see errors from the compiler Peoplecode as first thing after the connection. Analyzed and found that this is due to lack of a few steps after the creation of the database such as the importation of PPLTLS84CUR, PPLTLS84CURDEL and race engines of demand and the additional dms scripts given in table of installation. (Please correct me if I'm wrong!)

    So I loaded PPLTLS84CUR, PPLTLS84CURDEL, PT84TBLSPC built the project, ran grant.dms and rarest dms as stated in the guide, started with the drivers of demand. I gave order below:

    ETAS - CD PSHCM CT - ORACLE - CO PS - CP PS R INSTALL - I UPGPT850PTFP

    It gives me below error:

    D:\PT8.53\bin\server\WINX86 > ETA - CD PSHCM - CT ORACLE - PS - CP PS r INSTALL CO

    HAVE UPGPT850PTFP

    Failure of LoadLibraryA() in pscompat.dll to 'PSORA64.dll': reason = 193

    Error sign on

    Type of database: 7 (ORACLE)

    The database name: PSHCM

    Name of the server:

    OperID: PS

    ConnectID: people

    The process instance: 0

    Reason: Could not sign database PSHCM with PS user

    But with the same credentials PS/PS given in psprcs.cfg I can start the process schduler, login in the application, or same PIA Designer.

    Please let me know if I'm missing something here. Even tried with SYSADM, but no luck.

    Thank you

    RK

    My bad. Actually I'm supposed to run record. I was running it from the server folder.

    It's real record where I suppose to run AE:

    D:\PT8.53\bin\client\winx86

    Thank you

    RK

  • Launch application from command line

    ImageMagick is a graphics reportoire command line application. I wish I could control this (launch windows command line scripts) within Director.

    Is this possible?

    Thank you

    Free ShellXtra looks like Valentine's day a good fit for you:

    http://staff.dasdeck.de/Valentin/Xtras/shell/

  • Develop an application from command line using LabVIEW

    Hello

    Is it possible to generate an executable command line (CLI) uses LabVIEW? This CLI exe is called with some arguments in command line by another application (written in Visual Basic). The LabVIEW run-time engine can be installed separately on the host PC.

    Thanks for your help

    Siddharth

    The only way I found is to create command-line 'wrapper', where the DLL based on LabVIEW is called. So you can not only pass parameters to the command line application, but also the return values of CLI app.

    Check this thread: tool command line that returns a value

    Andrey.

  • How to start a command-line in synchronous mode LoadPlan

    I want to start a LoadPlan for command line by an external programmer. This external Scheduler is the return code of the execution of the LoadPlan. However, the LoadPlan is executed asynchronously. For running a scenario there is an option to specify (a) synchronous execution, but this option does not exist for the execution of a LoadPlan. How can I solve this?

    I finally found it. It is a bug in the documentation. The startloadplan.sh script is able to start a loadplan synchronousloy, by using the parameter-SYNC =(no|yes).

  • Dual booting - problem with the disk when trying to start windows

    original title: problems with dual boot.  Windows does not play well with others.

    Hello

    I have Windows Vista Home Premium 64-bit included with the computer.  I installed Fedorah and it works on my computer.  When I installed it, but I had my hard drive partion.  I left most of the hard drive (about 400 concerts) as it was, when I booted up Fedorah worked well and gave me the option to boot or windows.  When I started in the window, however, it wouldn't let me start my computer, it says I have a problem with my drive.  With XP, it gives me no problem, I didn't ignore the disk check, but with Vista for some reason it doesn't let me start.  It gives me a few options of restoration to the previous status confuses the computer he says I manually type in which windows in the command line.  I don't have my windows CD, the only other option that I have that seems to work when I click it is restoring to factory fault which I don't want to do because I don't want to lose all my files.  Please tell me what I need to do.

    http://Fedoraforum.org/

    Fedora forums at the link above.

    A refund Stsrtup of Vista Disk link.

    Download the 64-bit on the right.

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use:

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner:http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    See you soon.

    Mick Murphy - Microsoft partner

  • Command line compilation / build and signature

    I'm having a problem minor building my application in the command line.

    Lets take this Simple application:

    import net.rim.blackberry.api.browser.*;
    import net.rim.device.api.ui.UiApplication;
    
    final class AppLaunch extends UiApplication
    {
        public static void main(String[] args)
        {
            // Create a new instance of the application.
            AppLaunch theApp = new AppLaunch();
    
            // To make the application enter the event thread and start processing messages,
            // we invoke the enterEventDispatcher() method.
            theApp.enterEventDispatcher();
        } 
    
        private AppLaunch()
        {
            // do stuff
            System.exit(0);
        }
    }
    

    I use the following to compile the command line application.

    rapc import=net_rim_api.jar codename=D:\AppLaunch\AppLaunch\AppLaunch -midlet D:\AppLaunch\AppLaunch\AppLaunch.jad D:\AppLaunch\AppLaunch\src\AppLaunch.java
    

    a COD, Jar and the rest of the files that all seem to be "compiled" but I get the following compiler error - and the software will not work on Blackberry - although the files are generated and they seem installs successfully on the BB, there is no 'Icon' that is created, and I suppose it has something to do with the compiler could not find the main method :

    ...
    
    Resolving
    Optimizing
    D:\AppLaunch\AppLaunch\src\AppLaunch.java:9: Warning!: method 'AppLaunch.main(St
    ring[])' not invoked.
    Populating
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._description
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._appNames
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._appArgs
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._appFlags
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._appPosition
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._appIcons
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._appNameResourceBundles
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._appNameResourceIds
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._languageResources
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._securityVendorIds
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._securityDescriptions
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._securityKeys
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources..UNDF
    Warning!: No definition found for exported string: com.rim.resources.AppLaunchRI
    MResources._additionalOptions
    No errors.
    

    When I have this build inside the Eclipse, everything works fine and the app works well on the Blackberry.

    Did I miss something specific in the command line for compiling?

    And to save everybody a headache reading this, this is the command to sign the application from the command line (which seems to work):

     java -jar "SignatureTool.jar" -a -c -p  D:\AppLaunch\AppLaunch\AppLaunch.cod
    

    I'm sure I thought about her.

    I had to change - midlet to-CLDC

    rapc import=net_rim_api.jar codename=D:\AppLaunch\AppLaunch\AppLaunch -CLDC D:\AppLaunch\AppLaunch\AppLaunch.jad D:\AppLaunch\AppLaunch\src\AppLaunch.java
    
  • How to stop the command line defragmentation Vista 64?

    I started "defrag - v w" command line 15 hours ago and I think she's still going because I do not have a command line prompt and the hard drive light flashes quickly (and somewhat randomly).  Anyone know how to stop the defrag process command line without altering anything?

    Key does nothing and the Task Manager shows that defragmentation is running.

    The f

    CTRL-c should stop.

  • ADT command-line package - how to add a DONKEY?

    Hello

    I need compile an iOS from the command line application.

    How to add a DONKEY for a package of command line?

    That's what I have so far:

    ./adt -package -target ipa-app-store -storetype pkcs12 -keystore iOS7.p12 -provisioning-profile Foo_DragDrop_iPad.mobileprovision Foo_iPad.ipa Foo_iPad-app.xml Foo_iPad.swf FooIcon29.png FooIcon40.png FooIcon48.png FooIcon50.png FooIcon57.png FooIcon58.png FooIcon72.png FooIcon76.png FooIcon80.png FooIcon100.png FooIcon114.png FooIcon120.png FooIcon128.png FooIcon144.png FooIcon152.png FooIcon512.png FooIcon1024.png Default-Landscape.png 
    

    I hope someone can help me!

    jjust include it at the end of your line. aneFileName.ane

    don't forget to specify your - extdir

  • In ESXi command line

    I have ESXi 4.1. SSH access is enabled.

    How can I start VM using the command line?

    How to unregister and register VM on the different host?

    Thanks in advance

    you do not have to use remoteCLI, for more information please visit: http://www.vmware.com/pdf/vsphere4/r40/vsp_40_vcli.pdf

  • Preview in Browser - Browser command-line switches

    You need to add a command line switch in the browser to "Preview in browser". DW 'add browsers' and 'Edit' will not accept command line switch. Created a shortcut of Windows with necessary command line switch, but DW will not allow a shortcut as a path to the browser either.

    Still, all this resolved?

    p.s. Chrome is notGoogle t allow session cookies (document.cookie) local. A command line switch of "- enable - file-cookies ' will do, however.

    Thanks in advance.

    You need to add a command line switch in the browser to "Preview in browser". DW 'add browsers' and 'Edit' will not accept command line switch. Created a shortcut of Windows with necessary command line switch, but DW will not allow a shortcut as a path to the browser either.

    p.s. Chrome is notGoogle t allow session cookies (document.cookie) local. A command line switch of "- enable - file-cookies ' will do, however.

    I have not tried, but try adding the switch directly in the preferences. The preview in the browser settings are stored here:

    Menus to launch \HKEY_CURRENT_USER\Software\Adobe\Dreamweaver CS5\Browser

    HTH,

    Randy

  • From server managed by using the Node Manager command line

    Hello

    I have configured the Node Manager and it is connected to the administrator of the server without problem. Now, I wanted to start the server managed through the console but it is a failure and my guess is that the syntax of the command line used is not correct.

    My question is, how do I change the command line used to start the Node Manager-managed server? I try to use the configuration tab start the server and it seems that does not. I also try to update the file .properties for the managed server.

    Whenever I look at the managed server logs, it gives me this line...

    NodeManager > < start WebLogic server with command line: <>...

    The command-line in newspapers aren't what I put in the .properties file or on the Server Start tab. She is from somewhere and I don't know where. I just want to set up the command line Node Manager uses to start a managed server.

    If all goes well, I'm clear with my problem and someone might be able to help. Thank you.

    You can try to follow the Option-2) mentioned in the link below: http://jaysensharma.wordpress.com/2010/03/26/nodemanager-based-managedservers-setting-mem_args/

Maybe you are looking for

  • How to create interactive buttons on paper painted?

    I have looked around and cannot find a reference to this anywhere... To my work when I login on my roaming profile on any PC, my office is simple with only the company logo and a list of clickable buttons.  Some are for applications such as Word and

  • Restore the default settings

    I need help. My new T510 got a sector of boot corrupted not even two hours after I got it. I was installing updates Windows could not start, now I can not yet use the ThinkVantage key to restore. What I tried to do so far, it is I put the disc in my

  • Listen to STROKE key during composition of phone

  • "System Summary" is empty

    This used to work, but doesn't seem to be working in the IDE. If I go to the window-> Show View-> other ..., then select "System Summary" ... the resulting pane is empty.  It shows nothing in any of the focus groups, etc. I probably have to run the a

  • How to complain about false billing to Adobe?

    Hey. I am a student who bought the Adobe Creative Cloud student and teacher package on August 22, 2013. From the day I bought the subscription until 22 August 2014 (1 year), Adobe charged me $ 21.76 per month - which is what I agreed. However, since