Opening TestStand Ref from LabView sometimes fails

I'm having an intermitten problem when opening a TestStand reference from LabView.  The error explaination just says, "LabVIEW:  (Hex 0x80004005) Unspecified error."  Attached is a little vi that can reproduce the problem when set to run continuously. 
Any idea on how to fix this?  Thanks a lot.
Note that because of compatibility requirements I have to use TestStand 2.0 with LabView 7.1.
Attachments:
TS_Ex.vi ‏24 KB

Attached is a screen shot of the error message.  This is one of at least 2 error messages.  I will get the other one when I can get time on the equipment.  Right now, I would like to get the error log (mentioned in the screen shot), but I can't find it.  Where should it be?
Unfortunately, the equipment is being shared and I haven't received time to debug it more.  But this is what I have seen. 
Trying to Highlight Execution with breakpoints seemed to point the vi closing the reference to TestStand as the source of the error message.  Using the Simplified TestStand Operator Interface vi that came with TestStand, and some fake tests, we did not have this error.  Only when we use our customized OI with dynamic test sequence generation do we get the error.  This error doesn't occur with LabView 6.1.  So I think it may be another incompatibility between LV 7.1 and TS 2.0.
Thanks for your help.
Attachments:
Exit-Crash-1.doc ‏24 KB

Similar Messages

  • What is the easiest way to open an application from Labview?

    I need to open an application from labview and depending on a user's selection, load one out of a group of files for the application that is opened. I need to know what is the best or easiest way to open an application and load a file that is used by the application based on a selection.

    Here is the response that I got from Cognex when I asked them about how to do this. Do you understand what they are talking about?
    In order to do something like this you will probably want to look into the Display Control/SDK for In-Sight. The Display Control gets installed along with In-Sight Explorer and includes a control that can be used in an environment like Labview to communicate with In-Sight sensors while the SDK is an enhanced version of the Display Control that gives you more control and functionality. I am not very familiar with the Labview environment so I will give some code snippets in VB.Net and hopefully you can adjust them as necessary. Specifically I see 3 possible avenues to do this:
     1) Using the Display Control you have access to many of the dialog boxes that are used in In-Sight Explorer including the Load Job dialog box. You can spawn this dialog box through a line of code similar to cvsInSightDisplay1.Edit.OpenJob.Execute(). I am not certain if the Labview environment will be able to spawn and display this dialog though. 2) With the addition of the SDK (additional purchase) you can directly access sensor properties including the job. There is a method called LoadJobFile to load jobs from on the sensor and LoadJobFileLocally to load jobs from the host machine. A typical line of code might be cvsInSightDisplay1.InSight.File.LoadJobFile("myjob1.job").3) If Labview cannot handle the dialogs and the SDK is not an option for you then you may still be able to do this using Native Mode commands. Native Mode commands are sent through a socket on the telnet port (typically port 23). Keep in mind that you will need to handle the username/password prompt and response when you first open the socket before issuing any Native Mode commands. The command to load a job file from the sensor would be the Load File command which would be a string similar to "LF myjob1.job". The Native Mode commands are documented in the In-Sight Explorer help file. 

  • Opening HTML window from LabVIEW

    Please,help. How can I open HTML window from LabVIEW?

    Hi A Kirsanov,
    I posted this to bmihura, but it's probably more applicable to you.
    Hope it helps
    Charlie Rodway
    Test Design Engineer
    Rolls-Royce Controls and Data Services Ltd
    Attachments:
    WebBrowser.vi ‏21 KB

  • How to edit an opened spreadsheet entry from LabVIEW

    I would like to provide a GUI in LabVIEW for editing a spreadsheet (which uses custom addIns) which I open from LabVIEW. Is it possible? Any help or example is appreciated.
    Thanks in advance.

    Found a VI in the examples. If anyone wants to do this in future , here is the name of the sub VI:
    Set cell Value With Range.vi in Excel Macro Sample.vi
    Other suggestions/examples welcome, though.

  • Opening a pdf from LabVIEW

    How do I launch Acrobat Reader with a pdf file from Labview? I've tried DDE with Acroview, Control and OpenDoc but I get an error.
    thanks,
    Andrew.

    I always like it when things are in the obvious place ;-)
    Cheers,
    Andrew.

  • Open 2nd PDF from UNC-path fails

    Hallo,
    I use Adobe Reader 11.0.08 on Windows7 SP1 (Enterprise) and I try to open PDF-files from UNC-path. The first attempt is successful. If Adobe Reader is still opened, the attempt to open a 2nd PDF-file from (same or other) UNC-path in Windows Explorer does not work without any error message. The file does not open.
    The following attempts were successful or not:
    (drive P:\ = \\domain\dfs$)
    Double-click on \\domain\dfs$\path\file1.pdf opens the file.
    Double-click on \\domain\dfs$\path\file2.pdf does not open the file - no error message.
    Double-click on P:\path\file2.pdf opens the file.
    In Adobe Reader File - Open - \\domain\dfs$\path\file2.pdf opens the file too.
    Double-click on \\domain\dfs$\path\file2.pdf opens the file.
    Double-click on \\domain\dfs$\path\file1.pdf does not open the file - no error message.
    Double-click on P:\path\file1.pdf opens the file.
    In Adobe Reader File - Open - \\domain\dfs$\path\file1.pdf opens the file too.
    Double-click on P:\path\file1.pdf opens the file.
    Double-click on \\domain\dfs$\path\file2.pdf does not open the file - no error message.
    Double-click on P:\path\file2.pdf opens the file.
    Double-click on P:\path\file2.pdf opens the file.
    Double-click on \\domain\dfs$\path\file1.pdf does not open the file - no error message.
    Double-click on P:\path\file1.pdf opens the file.
    If Adobe Reader is still opened, but no file is opened:
    Double-click on \\domain\dfs$\path\file1.pdf does not open the file - no error message.
    Double-click on P:\path\file1.pdf opens the file.
    As you can see: If Adobe Reader is still opened, I can't open a PDF-file from UNC-path from Explorer. But that's what we need. Our Frontend-application opens an Explorer window and the user has to choose the PDF-files to open via double-click. It would be a very roundabout way to copy the Location from Explorer to open the file in Adobe Reader. We'd like to open the first and all other files for the same session from Explorer via double-click.
    Sure, if I disable protected mode every attempt works fine but unfortunatelly it is no permitted option to disable protected mode (security policy) - it has to be enabled.
    Each change in "ProtectedModeWhitelistConfig.txt" was not successful. For information its current config that works as mentioned above:
    ; Files Section
    FILES_ALLOW_ANY = \??\UNC\domain\dfs$\*
    (no entries in other sections)
    How can I open every PDF-file for a session from UNC-path via double-click from Explorer if Adobe Reader is still opened ?
    Thanks in advance for any help.
    Lisa

    Hi Lisa,
    Can you please update your Reader to latest version "Adobe Reader 11.0.9" and verify that the issue still occurs.
    Thanks,
    Shakti K

  • Running a teststand seqwunce from labview

    HI all
    I want to build a user interface in Labview to execute number of sequences in teststand.
    I already had a look at the examples shipped with TS. But in my case my UI will  be different that the default UI of teststand.
    I want user to select number of sequences(at one time from list box or tree) and then when clicked on execute button , one by one each sequence should get executed.
    For this I need provide seq file path to the invoke/property node before execution. But I am not able to find the current method/property for the same.
    Can someone please help on this?

    By this method you can do the following ( no need to change User interface code -- use the default one ) :
    1) A (Main GUI.vi) vi when executed calls a predfined master sequence to automatically open and run in TestStand.
    2) This predfined master sequence uses a vi to get sequences ( simulating user selected sequences)
    3)The sequences selected are stored in a TestStand string array and run one by one.
    4)TestStand is automatically closed in the end. ( no user intervention is required)
    Setup :
    1) Unzip the files and put it to c:\temp\LVUSER1 ( This path is hardcoded in vi and testsequences )
    2) Go to TestStand menu --> configure --> station options -> user manager and enable automatically login windows user
    3) Create a new user with windows credentials in TestStand using the user manager.( This is to avoid login popup)
    4)Enable report in TestStand if you need a report.
    Run :
    Run the MAIN GUI.vi
    Changes if required :
    1) I have copied CVI user interface from C:\Program Files (x86)\National Instruments\TestStand 4.2.1\UserInterfaces\Full-Featured ( This is because i tested this in )TS 4.2.1
    Feel free to copy any of the user interfaces that you are familiar with from the respective TestStand folder.
    2) Correct the paths if required in vi and test sequences.
    Hope this example will be helpful to you.
    Regards,
    Ravi
    Attachments:
    LVUSER1.zip ‏469 KB

  • Add limits to step settings via TestStand API from LabVIEW

    Dear LabVIEW and TestStand Community!
    I'm trying to add FileGlobal Variables as limits to TestStand step NumericLimit programmatically, via LabVIEW, via TS API. I attach screenshot of the code, which I use (part of it - the module, which only sets values to low and high limit of the step), and also I attach, what I manage to get.
    In TS, when I open sequence file, after running of the code, I can see in the description line of the test, that it accepted limits, which I set from LV - you can see it from the screenshot, it is marked with yellow. But in the Tab "Limits", there are still default numeric values, not FileGlobal Variables.
    Could anyone explain, what doest it mean, and how to set up them correctly?
    Thanks a lot in advance!
    Solved!
    Go to Solution.
    Attachments:
    Limits.PNG ‏33 KB
    Add Limits.PNG ‏15 KB

    It's kind of sequence generator what I'm doing now...
    Thank you very much for fast reply, but when I setup "UsexxxExpr" to true, it doesn't change the situation... Could you, please, check my attachment? Maybe, some mistake in syntax?
    Attachments:
    Add Limits.PNG ‏23 KB

  • How do i read the Shift register value of a vi which is written in the teststand sequence from labview exe

    Dear All..
    My Qusetion is ... I have a VI in which I can writ the data to shift register and I can read( Differenent cases). I am Running the VI in write mode to write SAY '100' in the shiftreg( VI will be In teststand Sequence) . And I am reading the VI in read mode using Labview. I am getting the data in labview.
    When i conver my Reading Vi which is having that Read/Write vi in to EXE even then the test stand is writing the data to VI is Unable to reflect in labview.
    Please Help me out with some solution.
    Thanks
    bhargav

    I'm confused by your question:
    Are you trying to transfer data from an Exe to TestStand and vice versa?
    Or are you changing existing, working VIs into EXEs and then wondering why they won't behave the same?
    Can you clarify some what your goal is?
    There may be a better way to do what you want.
    Thanks,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Opening Photos Library from remote MAC fails

    All,
    I have my main Photos Library on a MACmini (Macmini_1), in the default folder location. I try to open Photos for OS X from another MACmini (MACmini_2), using the 'other location...' button. Photos for OS X can not open the library on MACmini_1, failing with "The Library can not be opened. Photos has atempted to repair the library "MACmini Photos Library, but is unable to open it".
    The Photos Library opens fine on MACmini_1 locally, without attempting to repair.
    Any idea if this 'operation' is supported, can Photos open a remote library? iPhoto would do this without any issues, as long as the Library was located on MAC formatted drive (internal or external). Anyone know if this has changed?
    Thanks

    That is not supported. The only way to share a library between macs is on a portable drive, formatted MacoS Extended (Jourmnled) and with the ignore ownership flag set.  as described here:  iPhoto: Sharing libraries among multiple users
    To access a library from several Macs remotely, consider iCloud Photo Library:
    See:   How to use Photos for OS X with multiple Macs | iMore
    Or: iCloud Photo Library beta FAQ

  • LabView 2012 hangs when opening a file from LabView 8.5

    I have a program originally built in LabView 8.5. I am attempting to migrate it to a new machine running LabView 2012. I can open the program for the first time and make the adjustments needed to clear a few errors having to do with updated VI's and controls. I can then run the VI but after this I close out of LabView and when I attempt to reopen the file LabView hangs on the splash screen while loading the VI.
    Any help would be appriciated. Thank you.
    -Sam

    Please post your original VI and the converted one so we can take a look.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Write teststand globals from labview

    Hi all,
    i just started using teststand and i am not too familiar with the program up to now.
    What I want to do is, writing teststand station globals from a vi that i started asynchronously. What steps do i need to execute in teststand before starting the vi? A small example would also be great.
    thanks for your help.
    Walter

    When using instruments in LV code modules, the code module itself presents a lock (default execution setting of LV VIs when not changed to reentrant execution).
    So if the instrument is used in a single code module (which is used several times in your TS sequence(s)), there is nothing you have to worry about.
    If the instrument is used in multiple (different) LV code modules (by passing its handle from module to module), you might require to include some locking.
    I recommend you to provide the lock in TestStand. Use the Lock steptype in the synchronization palette to do so.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Open an executable from Labview

    Hello,
    I'm developing a vi which needs to run an exe.I have an exe(eg:check.exe)
    created through some other tool(not an exe created by Labview)stored in my drive(eg, C:\check.exe).
    Is it possible to run this check.exe from the Labview ?
    Please help me to figure this out.
    Thanks in advance.
    Regards,
    Nalin

    Hi,
    Just a quick example for your reference
    Regards,
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    IFK_SYS_System Exec Example.vi ‏54 KB

  • Can I open a excel file from labview

    I have a program who write temperature in a excel file and i want to open this file from labview .

    This depends slightly on the amount of data you have stored within Excel.
    You can use the "Labview Functions>>FileIO>>Read from Spreadsheet file.vi" which effectively reads all lines from a text file and converts it into a numeric array.
    Alternatively, if your data structure in Excel is more complex than this, you can use ActiveX calls to Excel to retrieve it.
    Use an "ActiveX>>Automation Refnum" control and select the Excel server class. This will then enable you to access properties and methods of Excel to retrieve data from specific cells and pages.
    The attached example should help.
    Dan
    Attachments:
    Excel_Automation.vi ‏60 KB

  • Open application from labview

    How is possible open a file from labview?

    You can use the Open File VI in the Advanced File Functions Menu. But
    if what your trying to do is to open an Application, then you will
    have to make use of the ActiveX possibilities in LabVIEW. If you need
    more specific information in how to do this, I'd recommend you to give
    more details on what you want to do exactly.
    Cheers
    Mamian

Maybe you are looking for