Minimum VisualC++ source code to execute a sequence

Hello,
I need to make a small applet that will call TestStand sequence.
It has to initialize engine, run sequence, exit and return exit code of error or success.
No user interaction is needed/wanted. So I dont want to compile file with MFC or ATL libraries.
Theoreticaly I can initialize and run COM object even from console application, but in practice - I'm not sure, which interfaces should I call.
Maybe it should start like:
CoInitialize(NULL); // Init COM
IEnginePtr pEngine (__uuidof(TS::Engine), NULL, CLSCTX_ALL); // get the pointer to interface
pEngine->PutUIMessageMinDelay(0); // do some calls
pEngine->LoadTypePaletteFiles();
CoUninitialize(); // Unitializing COM
Is it a rig
ht/possible way to do it?
Will I get some problems later if I will use such method?
Thank you!

You can discern the minimal code required to execute a sequence from the "SimpleMFCOperatorInterface" in your \Examples\OperatorInterfaces\Simple MFC directory. You are correct in that you do not have to use MFC or ATL in order to load the TestStand engine and execute a sequence, the only requirements are as follows (as well as the general process flow of loading the engine and executing a sequence):
1) Initialize the COM library with OleInitialize()
2) Create an instance of the TS engine with TS::IEnginePtr CreateInstance()
3) Register your UIMessageCallback function with TS::IEngine RegisterUIMessageCallback(). Your UIMessageCallback function should have a structure similar to this:
void __cdecl UIMessageCallback(struct IDispatch *UIMessageDisp)
TS::UIMessagePtr uimsg = UIMessageDisp;
TS:equenceContextPtr seqcontext;
int hr;
seqcontext = uimsg->Thread->GetSequenceContext(0,NULL);
switch((int)uimsg->Event)
case 0:
break;
case 8:
hr = seqcontext->Engine->ShutDown(VARIANT_FALSE);
break;
case 9:
hr = seqcontext->Engine->ShutDown(VARIANT_TRUE);
quit = true;
break;
default:
break;
return;
NOTE: You must handle the "EndExecution" and "ShutdownComplete" UIMessages (eventcodes 8 and 9 respectively) at a minimum in order to properly execute a sequence and shutdown the engine when it is complete.
4) Get a sequence file reference with TS::IEngine GetSequenceFile() (note: you can use the TS::IEngine DisplayOpenFileDialog() method to select a file path with)
5) Start the execution with TS::IEngine NewExecution()
NOTE: That the above UIMessageCallback message handler waits for the "ShutdownComplete" message to set a flag variable named "quit" to true to signify to the rest of the application that the sequence has finished executing.
If you take a look at the source files for the SimpleMFCOperatorInterface, you can see how each of these methods are used.
Jason F.
Applications Engineer
National Instruments
www.ni.com/ask

Similar Messages

  • Error Task Sequence Manager failed to execute task sequence. Code 0x80004005 TSManager

    Dear All,
    I need your Help, as I am getting below mention error in deployment of OS through MDT 2013.
    Expand a string: WinPEandFullOS    TSManager    6/5/2014 11:40:50 AM    1464 (0x05B8)
    Executing command line: cscript.exe "%SCRIPTROOT%\LTIApply.wsf"    TSManager    6/5/2014 11:40:50 AM    1464 (0x05B8)
    Process completed with exit code 5627    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    !--------------------------------------------------------------------------------------------!    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Failed to run the action: Install Operating System.
    Unknown error (Error: 000015FB; Source: Unknown)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Sending status message . . .    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Executing in non SMS standalone mode. Ignoring send a task execution status message request    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Set a global environment variable _SMSTSLastActionRetCode=5627    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Set a global environment variable _SMSTSLastActionSucceeded=false    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Clear local default environment    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Let the parent group (Install) decides whether to continue execution    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    The execution of the group (Install) has failed and the execution has been aborted. An action failed.
    Operation aborted (Error: 80004004; Source: Windows)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Failed to run the last action: Install Operating System. Execution of task sequence failed.
    Unknown error (Error: 000015FB; Source: Unknown)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Sending status message . . .    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Executing in non SMS standalone mode. Ignoring send a task execution status message request    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:\nts_sms_fre\sms\client\tasksequence\tsmanager\tsmanager.cpp,767)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Task Sequence Engine failed! Code: enExecutionFail    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    ****************************************************************************    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Task sequence execution failed with error code 80004005    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Cleaning Up. Removing Authenticator    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Cleaning up task sequence folder    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    DeleteFileW(sVolumeIDFile.c_str()), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,508)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    DeleteFileW(sVolumeIDFile.c_str()), HRESULT=80070002 (e:\nts_sms_fre\sms\framework\tscore\resolvesource.cpp,508)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Successfully unregistered Task Sequencing Environment COM Interface.    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Command line for extension .exe is "%1" %*    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Set command line: "X:\Deploy\Tools\X86\TsProgressUI.exe" /Unregister    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Executing command line: "X:\Deploy\Tools\X86\TsProgressUI.exe" /Unregister    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    ==========[ TsProgressUI started in process 320 ]==========    TsProgressUI    6/5/2014 11:51:18 AM    552 (0x0228)
    Command line: "X:\Deploy\Tools\X86\TsProgressUI.exe" /Unregister    TsProgressUI    6/5/2014 11:51:18 AM    552 (0x0228)
    Unregistering COM classes    TsProgressUI    6/5/2014 11:51:18 AM    552 (0x0228)
    Unregistering class objects    TsProgressUI    6/5/2014 11:51:18 AM    552 (0x0228)
    Shutdown complete.    TsProgressUI    6/5/2014 11:51:18 AM    552 (0x0228)
    Process completed with exit code 0    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Successfully unregistered TS Progress UI.    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    g_TSManager.Run(), HRESULT=80004005 (e:\nts_sms_fre\sms\client\tasksequence\tsmanager\tsmanager.cpp,657)    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Error Task Sequence Manager failed to execute task sequence. Code 0x80004005    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Sending error status message    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    In non SMS staqndalone mode.Ignoring SendStatusMessage request    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Finalizing logging from process 1456    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Finalizing logs to root of first available drive    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Successfully finalized logs to C:\SMSTSLog    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Cleaning up task sequencing logging configuration.    TSManager    6/5/2014 11:51:18 AM    1464 (0x05B8)
    Deployment is going failed.
    Regards
    Sachi

    Note:Only mass storage device drivers and network adapter device drivers should be added to boot images because other types of
    drivers are not needed and will increase the size of the boot image:
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to execute a sequence from cvi code ?

    Hello ,
    I'm programing a test software using Labwindows CVI 9.0 and TestStand 4.2 .
    I'm Using CVI GUI and i want for example to press a button that will lanuch a squence from Teststand .
    the SEQ file is already open because i'm launching the GUI from Teststand .
    How can i execute a seq from CVI ?
    Thank you for your help.... Kobi
    Kobi Kalif
    Software Engineer

    Refer to the Example User Interfaces section in Chapter 9, Creating Custom User Interfaces, of the TestStand Reference Manual (p. 9-1):
    Example User Interfaces
    The <TestStand>\UserInterfaces directory includes the executable, project, and source code files for each example user interface. The Full-Featured subdirectory contains user interfaces for loading, viewing, editing, saving, executing, and debugging sequence files. The Simple subdirectory contains similar but limited user interfaces with fewer commands and options but no menus. Also, the simple example user interfaces display the steps for executions you run but do not display steps for sequences you load. Both subdirectories contain source code for LabVIEW, LabWindows/CVI, Microsoft Visual Basic .NET, C#, and C++ (MFC).TestStand installs the source code files for the default user interfaces in the <TestStand>\UserInterfaces and <TestStand Public>\UserInterfaces directories. To modify the installed user interfaces or to create new user interfaces, modify the files in the <TestStand Public>\UserInterfaces directory. You can use the read-only source files for the default user interfaces in the <TestStand>\ UserInterfaces directory as a reference. When you modify installed files, rename the files after you modify them if you want to create a separate custom component. You do not have to rename the files after you modify them if you only want to modify the behavior of an existing component. If you do not rename the files and you use the files in a future version of TestStand, changes National Instruments makes to the component might not be compatible with the modified version of the component. Storing new and customized files in the <TestStand Public> directory ensures that new installations of the same version of TestStand do not overwrite the customizations and ensures that uninstalling TestStand does not remove the files you customize.
    Note: National Instruments recommends that you track the changes you make to the user interface source code files so you can integrate the changes with any enhancements in future versions of the TestStand User Interfaces.
    You might also find the Example Programs topic in the NI TestStand Help useful for other tasks.

  • How to convert the source code in JSP,HTML&BEANS into executable files?

    Sir,
    We are developing one s/w product in JSP,HTML&BEANS.Now we are in the implementation phase.During the time of Installation,without copying our source code in the customer's site I want to copy the executable files of the entire source codes? Is it possible in JSP,HTML&BEANS?

    In theory you can do it even with JSP but the you will be unable to run it on the standard JSP engine. :-)
    From other hand, all critical logic should be in the Java Beans or at least in custom tags but not in the JSP code. Then you can protect that code and leave JSP open because there is nothing to steal or break.

  • How can I execute a existing source code in visual studio 2012?

    My friend sent me a mini project(ASP.Net) through mail in a zipped folder. I extracted it and it contains source code and databases. I don't know how to execute it in visual studio 2012. I read that I can do it by choosing Project from existing code option
    from the file menu.But I don't find the option.Kindly help me how to execute that project which I received through mail in visual studio 2012. 

    In case of ASP Web Sites, which do not require solution and project files, go to FILE
    à Open
    à Web Site, then select the folder from File System.
    If nothing work, then perhaps you do not have the required version of Visual Studio. Then give more details or clarify it with your friend. The database probably requires some preparation steps too.

  • View source code of the page executed in browser...

    Hi,
    Request you to help me to view the source code of the page executed in browser using a Query/ Web Template. We can view the HTML code when we go to
    Page--> View source code.
    But i want to see the Java code behind the web page.
    Regards,
    Koundinya K

    You can use tools like JD-GUI and the see the code. If you want to customize a cartirdge, you can always extend the class and add your stuff to the contentItem.
    Thanks

  • Larger font in executable than in source code

    The object to the left originates from the executable , and the object to the right is the same, but from the source code.
    It seems when I compile, LabVIEW 2013 converts from font size 14 to 15 in this front panel. I have never experienced
    anything similar in LabVIEW. Does anybody know anytihng about this problem under LabVIEW ?
    Martin

    hmm, where did my JPEGs go ? Lets try again; Na, I though I could use
    pictures within the meaasge, seems not. Ok, here they are as attachments instead.
    Attachments:
    Executable Front Panel.gif ‏3 KB
    Source Code Front Panel.gif ‏3 KB

  • Performance checking inside the source code

    performance checking inside the source code who to check it.
    thanks and regards
    chandra sekhar

    I guess you are asking how to check it, then here is the answer
    SQL Trace transaction ST05
    The trace list has many lines that are not related to the SELECT statement in the ABAP program. This is because the execution of any ABAP program requires additional administrative SQL calls. To restrict the list output, use the filter introducing the trace list.
    The trace list contains different SQL statements simultaneously related to the one SELECT statement in the ABAP program. This is because the R/3 Database Interface - a sophisticated component of the R/3 Application Server - maps every Open SQL statement to one or a series of physical database calls and brings it to execution. This mapping, crucial to R/3s performance, depends on the particular call and database system. For example, the SELECT-ENDSELECT loop on the SPFLI table in our test program is mapped to a sequence PREPARE-OPEN-FETCH of physical calls in an Oracle environment.
    The WHERE clause in the trace list's SQL statement is different from the WHERE clause in the ABAP statement. This is because in an R/3 system, a client is a self-contained unit with separate master records and its own set of table data (in commercial, organizational, and technical terms). With ABAP, every Open SQL statement automatically executes within the correct client environment. For this reason, a condition with the actual client code is added to every WHERE clause if a client field is a component of the searched table.
    To see a statement's execution plan, just position the cursor on the PREPARE statement and choose Explain SQL. A detailed explanation of the execution plan depends on the database system in use

  • Source code has syntax error in SAP PI7.1 Mapping Test

    HI All,
    IN SAP P7.1  created simple two data types, message types and Message Mapping with only 2 fields. While testing the mapping in Message Mapping it is giving the error as
    Source text of object Message Mapping: MM_Source_to_Target | http://abc.com has syntax errors:
    Source code has syntax error:
    I am able to activate the Datatypes and Message Types but not able to activate the Messge mapping.
    Please if any body faced the same problem please give the solution.
    One more thing is I am able to test the Message Mapping available in BASIS 7.1 Software Component objects. It is executing successfully...
    but otherthan this SWC it not working success fully.....
    Regards
    Sridhar Goli

    Hi David,
    please check the default trace. It may contain the entry:
    Error in compiling : java.io.IOException: Not enough space
    If that's the case, maybe there's too little space for the swap file/device.
    You should ensure that at least 2X (preferably 3X) of Heap (-Xmx) is configured as real swap
    Hope that helps.
    Regards,
    Gábor Klauzer

  • Need sample source code for calling stored procedure in Oracle

    Hi.
    I try to call stored procedure in oracle using JCA JDBC.
    Anybody have sample source code for that ?
    Regards, Arnold.

    Thank you very much for a very quick reply. It worked, but I have an extended problem for which I would like to have a solution. Thank you very much in advance for your help. The problem is described below.
    I have the Procedure defined as below in the SFCS1 package body
    Procedure Company_Selection(O_Cursor IN OUT T_Cursor)
    BEGIN
    Open O_Cursor FOR
    SELECT CompanyId, CompanyName
    FROM Company
    WHERE CompanyProvince IN ('AL','AK');
    END Company_Selection;
    In the Oracle Forms, I have a datablock based on the above stored procedure. When I execute the form and from the menu if I click on Execute Query the data block gets filled up with data (The datablock is configured to display 10 items as a tabular form).
    At this point in time, I want to automate the process of displaying the data, hence I created a button and from there I want to call this stored procedure. So, in the button trigger I have the following statements
    DECLARE
    A SFCS1.T_Cursor;
    BEGIN
    SFCS1.Company_Selection(A);
    go_Block ('Block36');
    The cursor goes to the corresponding block, but does not display any data. Can you tell me how to get the data displayed. In the future versions, I'm planning to put variables in the WHERE clause.

  • How to view RUN_REPORT_OBJECT buil-in package source code

    Ps help.
    I'm creating a batch report that will execute from PL/SQL not forms - so I can't use this built-in directly on my PL/SQL procedure. How do I view RUN_REPORT_OBJECT source code and that of the functions that it calls.
    Thanks
    Khombi

    You can't see source code of this package.
    You can use srw package. Please see the following link.
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_evnt.htm

  • How to view RUN_REPORT_OBJECT built-in source code

    Ps help.
    I'm creating a batch report that will execute from PL/SQL not forms - so I can't use this built-in directly on my PL/SQL procedure. How do I view RUN_REPORT_OBJECT source code and that of the functions that it calls.
    Thanks
    Khombi

    good question for the report forum :
    Reports

  • How to read the Java source code (in Netbeans)

    I use OS X10.5.5, NetBeans 6.1 and JSE 6 on a 64 bit mac.
    When I downloaded NB6.1 it had JSE 5 as it's default (and only) java platform. I ran Software Update to get Java 6 from Apple, used the Java Prefrences utitlity to set JSE6 as default. In NB I added the JDK6 platform, registered the JDK6 javadocs and noticed that I also have the option of registering the Java source code.
    I have three questions:
    1) How do I make JDK6 the default in NetBeans. The JDK5 keeps being default after I did the steps above and I don't see anywhere to change that.
    2) How do I read the Java 6 source code? I can see sun provides [source code| http://download.java.net/jdk6/] for their supported platforms. I dont see Apple doing the same for its JDK port. What would I need to do to get to read the java SE6 sources? or is it actually hiding somewhere in the /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home hierarchy?
    3) Where does the JVM look for the binary code to run when I make a call to, say java.util.ArrayList or any other library. In my naivety I would have assumed it would be a .class file somewhere in the java Home folder, but I don't see anything like it.
    thanks in advance,
    chris

    This is taken from the help included with netbeans. In response to question 1.
    By default, the IDE uses the version of the Java SE platform (JDK) with which the IDE runs as the default Java platform
    for compilation, execution, and debugging. You can view your IDE's JDK version by choosing Help > About and clicking the
    Detail tab. The JDK version is listed in the Java field.
    You can run the IDE with a different JDK version by starting the IDE with the --jdkhome jdk-home-dir switch on the command line
    or in your IDE-HOME/etc/netbeans.conf file. For more information, see IDE Startup Parameters.
    In the IDE, you can register multiple Java platforms and attach Javadoc and source code to each platform. For example, if you
    want to work with the new features introduced in JDK 5.0, you would either run the IDE on JDK 5.0 or register JDK 5.0 as a
    platform and attach the source code and Javadoc to the platform.
    In  , you can switch the target JDK in the Project Properties dialog box. In  , you have to set the target JDK in the Ant script itself,
    then specify the source/binary format in the Project Properties dialog box.
    To register a new Java platform:
    Choose Tools > Java Platforms from the main window.
    Click New Platform and select the directory that contains the Java platform. Java platform directories are marked with a  
    in the file chooser.
    Use the Sources and Javadoc tabs to attach Javadoc documentation and source code for debugging to the platform.
    Click Close.
    To set the default Java platform for a standard project:
    Right-click the project's root node in the Projects window and choose Properties.
    In the Project Properties dialog box, select the Libraries node in the left pane.
    Choose the desired Java platform in the Java Platform combo box.
    Switching the target JDK for a standard project does the following:
    Offers the new target JDK's classes for code completion.
    If available, displays the target JDK's source code and Javadoc documentation.
    Uses the target JDK's executables (javac and java) to compile and execute your application.
    Compiles your source code against the target JDK's libraries.
    If you want to register additional Java platforms with the IDE, you can do so by clicking the Manage Platforms button.
    Then click the Add Platform button and navigate to the desired platform.
    To set the target Java platform for a free-form project:
    In your Ant script, set the target JDK as desired in the javac, java, and javadoc tasks.
    Right-click the project's root node in the Projects window and choose Properties.
    In the Sources panel, set the level of JDK you want your application to be run on in the Source/Binary Format combo box.
    When you access Javadoc or source code for JDK classes, the IDE searches the Java platforms registered in the
    Java Platform Manager for a platform with a matching version number. If no matching platform is found, the IDE's default platform is used instead.
    See Also
    Managing the Classpath
    Declaring the Classpath in a Free-Form Project
    Stepping Through Your Program
    Legal Notices

  • How to get Source code of a Schedular Java concurrent program in Payments

    Hi Experts,
    I am very new to Java Concurrent program.
    I need java source code of a schedule java concurrent program.Following are the details of Executable.
    Executable :Format Payment Instructions
    Short Name :IBY_FD_PAYMENT_FORMAT
    Application : Payments
    Execution Method :Java Concurrent Program
    Execution File Name:FDExtractAndFormatting
    Execution File Path : oracle.apps.iby.scheduler
    I searched in execution file path,but i am unable to find required java source.
    Please someone help regarding this issue..
    It's Urgent Issue.
    Regards
    Amar

    Hi Srini,
    Thanks for reply...
    In the attached template of concurrent program "Format Payment Instructions", i need to add voucher number in the template.
    How can i do this?how to decompile the executable?
    It is a check printing.
    Please give me suggestions..
    Regards
    Amar

  • Real-Time Application doesn't run; source code works fine

    The short version is I'm programming a cRIO and apparently the RT code isn't running after being deployed and I can't figure out why. This is further complicated that I'm doing all this remotely and I don't have direct access to the unit since I'm 500 miles away. I'm working through a couple of other guys who know some LabVIEW, but neither works at the site so they have to explicitely travel out there every time I have a bright idea.
    I was out there a few weeks ago. During this time I created a simple cRIO code, since I'm new to cRIO, that allowed the user to move a control and change a graph. It worked fine, but I should note it did not have an FPGA component. After that I worked on the real code, which reads some sensors, displays the results on a UI and logs the results. This did have FPGA. I used it in the LabVIEW environment and it worked fine, but I ran out of time before I could complete a release version and deploy the RT as a compiled application. I sent them the release version later, my contact deployed it but got network stream errors when running the UI.
    After hours of looking at network problems and sending over debug versions, I tried creating a log on the RT level so I could see what was going on. The log doesn't even open, even if it's the first command in the code. I pored through the forums and found http://forums.ni.com/t5/LabVIEW/cRIO-Troubleshooting-creation-and-deployment-of-startup/td-p/1956475... which took me in a new direction.
    I had my contact use the RT debug console and when he pulls up the RT front panel, it shows a broken run arrow. He clicks it and nothing happens -- no running, no bug list. If he pulls up the bug list manually, it's empty. Again the RT works fine if you run it through LabVIEW and not as a compiled real-time application. He also noticed that the Open FPGA VI was grayed out on the block diagram. No other icons are.
    So the problem appears to be that the compiled RT application is getting some kind of error but not telling me what it is, and it seems to be related to opening the FPGA. I've recompiled the FPGA and RT. I've had him recompile the RT himself, but not the FPGA because it would take hours. He's downloading everything correctly to the cRIO. The RT is set to run automatically. He's rebooting the cRIO every time he deploys the RT. They have LabVIEW on a computer there but it doesn't have the right drivers to run the code from the LV environment. I'm resisting having them install the dirvers because downloading big files is complicated there due to security restrictions and a lousy network connection at a remote site. Besides that doesn't solve the problem of the RT executable not running the same as the source code, which according to the thread above appears to be a thing.
    The latest thing I'm trying is that I sent him instructions for how to build a source distribution from the project I sent and try deploying that to the cRIO. Even if that works I'm not sure that's an acceptable solution because I assume running the VI rather than the EXE is slower, and they need speed on this project.
    I simply have no idea where to go from here. I probably need to get direct acess to the cRIO and I might be able to convince them to ship it to me so I can figure this out, but I'm not sure where I'd even start other than the standard voodoo debugging of "try stuff at random until something works". I'm open to suggestions if anyone has managed to solve this before.
    Code snippet of the first part of the project is attached, though I'm not sure how much good it will do. I'm really stumped and the client is getting frustrated with how much of the budget is going to fix this.
    Solved!
    Go to Solution.
    Attachments:
    RTMainSnippet.png ‏623 KB

    Have you checked the cRIO error log? Usually I'd access it through the LabVIEW project (right-click on the target, don't remember the exact menu options and I don't have the RT toolkit installed on this machine to check), but it must be stored somewhere on the cRIO as well, although I don't know if it's in a human-readable format.
    Which cRIO are you using? What exactly do you mean by "debug console"? (This may be related to the cRIO - the newer ones have video out, although I don't know if that's what you're referring to.) With a broken run arrow, you won't get an error list unless you're running in the development environment.
    Have you confirmed that the software installed on the cRIO matches the version you're using for development, including patch level? Get someone to connect to the cRIO with Measurement and Automation Explorer, and get a list of the software installed on the cRIO.
    Sounds like the ability to connect with a remote debugger would be helpful here, if you can get the right drivers installed on the machine with LabVIEW that's connected to the cRIO. Make sure all driver versions match what you're using. Any chance you could then do a remote desktop connection from your work site to the remote LabVIEW machine?

Maybe you are looking for