Save in a variable an instrument handle out

Hello,
I wanna create a sequence in teststand using labview step. the problem is the VI of my labview step has a function with instrument handle in and instrument handle out. How can I store those instrument handle out in a variable to be able to use that variable as the input of an instrument handle in in another VI and if it's possible wich kind of variable should i use in both labView and teststand.
Thanks in advance for your answer
Christelle

You can use the Session Manager. There's an example (in 3.1 anyway), in the SessionMgr\Lv\LVDMM.seq.

Similar Messages

  • Instrument Handle Out as Global variable

    Hi,
    How do i create "Instrument Handle Out" of an IVI function as a global variable.
    Regards,
    Siddu

    I don't work with IVI, but this should work - Open the globals VI and add an IVI Logical Name control (I/O palette).
    As a more generic solution, right click the output terminal and select Create>>Control. Find the control on the FP, copy it (ctrl+c) and paste it into your globals VI. In either case, it should now be a global variable.
    You should take care when working with globals, because you can cause race conditions - for example, you probably have to open communication to your device and pass the value of the reference into the global before being able to use it. If you don't, you may start having problems, and it will be hard to locate them.
    Try to take over the world!

  • Testing an instrument handle

    Labview 8.0, TestStand 3.5,
    Is it possible to test an instrument handle in Labview to see if it is valid and not generate any kind of error if it isnt?
    I want to close an instrument handle if it exists. This will generate a run-time error if the handle does not exist.

    Hello tadk,
    You can run VISA Find Resources and look at the resulting list of interfaces.  You can use this list to verify of an interface is valid.  If I specific error is being generated, you can create a sub-vi to clear that error, and thus ignore that particular error.
    I am not sure what your end goal is, but there is another discussion forum that discusses getting a Session ID by using a Call Library Function Node.  You might want to check this forum out.
    I hope this helps!
    Regards,
    Angela
    Applications Engineer

  • C++ instrument Handle type

    hi, ALL
       I want to use some instrument driver(DLL) to create a sequence.and step type base on C++,When initialized instrument with hp34970a_init("GPIB0::5::INSTR", False, True, Locals.SW) ,the prototype is
    ViStatus _VI_FUNC hp34970a_init(
            ViRsrc resourceName,
            ViBoolean IDQuery,
            ViBoolean resetDevice,
            ViPSession instrumentHandle)
       it works fine,So i want to more operations for intrument,Such as :write,read....
       the arg4 (Locals.SW)is defined as "pointer/handle" -->"by reference &" in the module pane.And Locals.SW is defined as a object reference in Variable pane.After the initialized function is executed,The Locals.SW will be evaluated "Pointer: 0x1fa4f908".So in the next step,I want to use this instrument handle to execute other functions(invoke some functions in the DLL).Example:hp34970a_reset(Locals.SW),the prototype is
    ViStatus _VI_FUNC hp34970a_reset(
            ViSession instrumentHandle)
       it seems not to work.
       How to fix it? Thanks a lot.
    BR
    Johnny

    Using object references (i.e. pointers) is more future proof for 64-bit compatibility. This idea is that on a 64-bit version of TestStand (which does not yet exist) with a 64-bit version of your instrument drivers, the pointers/handles would automatically be treated as 64-bit values, which is what they will have to be if they are addresses in a 64-bit process. This feature of pointers/handles was added in TestStand 2010 for this purpose.
    That said some instrument drivers might continue to use 32-bit values even in a 64-bit process, but if the handles are really addresses they would have to create some sort of map internally to map to the 32-bit value to the correct 64-bit address. You might be able to tell what the driver developer intends by looking at the typedef for the handle type. If it is really a void* or some other sort of pointer then it is very likely that the 64-bit version will require 64-bit handles and thus you should use object references. If it is just a typedef of int, then they might not.
    For Windows SDK APIs handles definitely become 64-bit in a 64-bit process (and are 32-bit in a 32-bit process), so for Windows SDK calls with handles, object reference variables are definitely better than numbers for handles.
    So it really depends on how instrument driver developers end up supporting 64-bit processes.
    Hope this helps explain things,
    -Doug

  • What is the best way to open close and pass instrument handles from labview in teststand parallel model?

    I have a number of test systems that use a parallel model with labview. We have a good number of instruments(PXI).
    What is the prefered method for open,closing and passing instrument handles in teststand using labview? 
    Solved!
    Go to Solution.

    Hi,
    No, Below is a bit from the Session Manager Help
    Currently, Session Manager supports the following instrument session types:
    IVI Sessions—Use an IVI session to obtain the C-based instance handle for an IVI logical or virtual instrument name. NI Session Manager does not support IVI-COM drivers at this time. When IVI-COM drivers are available, you can use an IVI session to obtain an ActiveX interface reference to an IVI-COM driver.
    VXIplug&play Sessions—Use a VXIplug&play session to obtain a C-based instance handle for a VXIplug&play logical or virtual instrument name. Configure VXIplug&play names in the <VXIplug&play directory>\<Platform directory>\NISessionMgr.ini file.
    VISA Sessions—Use a VISA instrument session to obtain a C-based viSession handle to a VISA resource or logical name. Configure VISA logical names in the <VXIplug&play directory>\<Platform directory>\NISessionMgr.ini file.
    Custom Sessions—Use a custom session to create a data container object that shares ActiveX objects you create or other data between software components you write. Use the Attach and Get methods to attach data to and retrieve data from a session. A custom session does not initialize, close, or own an instrument handle. The data you share with a custom session does not have to be instrumentation related. You can create a custom session with any name you request.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Save as local file path is greyed out for certain t.codes

    Hi All,
    After the ECC upgrdation, Save as local file path is greyed out for certain t.codes, while for other excel file export is not automatic.
    ES. for MB51 Transaction, when I try
    Path to save as local file is " System>LIST>Save---> Local file and I choose format Spreadsheet it appears format file txt, while with old release was XLS.
    Thanks

    I would like to known if the Additional Data button in MM02 should be custom. Us not possible to use standard?.
    Suggest to open a new thread for your query related to MM02
    Regards,
    Nick Loy

  • Query property "Save and reuse variable value" doesn't work in BW EHP1

    We have a workbook which contain 4 queries, every different worksheet is a different query.
    All the queries are on the Same InfoCube and all the queries use the same variables.
    In the properties of the query n.2 we set the parameter "Save and reuse variable values" then we refresh the 1st query and all work fine (the system asks the variable values) but when we refresh the 2nd query the system doesn't use the same variable values that we have inserted for the query n.1
    We don't have the same problem in 7.0.
    Any help is appreciated.
    Luca

    Hi,
    I suppose, you need to set the 'Save and reuse variable values' for each query individually in the workbook. I am not sure however there is a option where you can specify to apply the settings of one query to all queries in the work book.
    Please check and hope it helps.
    Regards,
    Adarsh Mhatre

  • Any session scope form handler out of the box in atg commerce

    Is there any session scope form handler out of the box in atg commerce. Let me know if anyone is aware of such form handler.
    Thanks,
    Santosh

    Search based formhandlers are some that come to my mind
    CategorySearch (/atg/commerce/catalog/CategorySearch (DCS))
    CatalogSearch(/atg/commerce/catalog/CatalogSearch (DCS))
    ProductSearch(/atg/commerce/catalog/ProductSearch ((DCS))
    Incidentally i think all of them point to SearchFormHandler
    Few others i can this of are
    GiftListFormHandler
    CompareSkusFormHandler (deprecated i guess)
    CatalogSearchFormHandler (Extension of SearchFormHandler class)
    There could be many more , updates / additions will be nice
    adding
    AdvProductSearch
    ProductTextSearch
    Edited by: Sundar on Dec 4, 2012 3:42 AM

  • How do I save annotations. Even if I close out of the document or email it to myself I don't seethem

    How do I save annotations? Even if I close out of the document or email it to myself I don't see the annotations in the document I email to myself. Thanks.

    Hi,
    Are you editing a local document or a Acrobat.com document?
    If you are using Preview to open the document that you emailed to yourself, you will not see the added annotations. This is a limitation in Preview.
    If you open the same pdf in Adobe Reader app, you would see the added annotations saved in the pdf file.
    Please do let us know if this helps.
    Thanks,
    Rishi

  • CS2 InDesign/Photoshop/Illustrator unable to use Save As Version this action is greyed out.

    Unable to use Save As Version in CS2 running a MAC G5 10.4.6 2GB DDR SDRM. Attempting use Version Cue and Bridge but unable to do a Save As Version because it is greyed out. Have reloaded ran updates etc. etc. I don't normal use bridge to work on a project but recently watched the video training and felt it offered several features of use, but need to be able to save as version. Sherry C

    You must first create a version cue project. In bridge Tools>Version Cue>New Project...
    Create a file and save it (or make a copy) in the folder you saved in the Version Cue workspace(The version cue workspace must be ON), which is default c:\program files\adobe\adobe version cue cs2\data
    now you can save versions of this document.
    Andreas TS

  • Forgot where I linked to save Screenshots on Mac, How to find out?

    Forgot where I linked to save Screenshots on Mac, How to find out?
    hi,
    I have changed the location (default was on desktop) to save the screenshots on Mac (software: MAC OSX Version 10.7.3). But, I forgot where was it linked to (the new location). Is there any way to find out the location? If not, how to delete away those files by recent screenshots. (I use CTRL + COMMAND + SHIFT + F3) to take it. Please help me with this. Thanks a lot.

    >I use CTRL + COMMAND + SHIFT + F3
    If you are using ctrl-command-shift-3, then the screenshots are going to your clipboard and are not saved elsewhere. (I don't know about using F3 instead of 3)
    If you are using command-shift-3, then the screenshots do get saved, with the default location being the Desktop. To look for the current location, download and run TinkerTool, and look in its General tab. You can use that section to alter the screenshot location; it may also tell you the current location even if it had been altered by another method.

  • Hit "Save as Adobe pdf" and pic came out on top of text box.

    Win 7.0 64 bit, acrobat 11.0.10 word 2010, created a .docx file woth a pic and a tex box on top of pic.- hit Save as Adobe pdf and pic came out on top of text box.

    Hi wmckb,
    Please try using PDF Maker option in word and check if the same problem arises.
    Hope to hear from you.
    Regards,
    Anubha

  • Get ivi instrument handle from NISE Session

    In TestStand I begin my sequence with an niSE Open Session.vi and I then pass this NISE session reference around to other VI which use the niSE Connect and Disconnect VI's to connect/disconnect routes specified in MAX.  This works perfectly for me.  How do I convert this NISE session reference into an instrument handle for specific IVI devices in this NISE Session?  I want to be able to use the "ni Switch Get Relay Position.vi".  I tried using the "ni Get IVI device session.vi" but i get an error that says VI was stopped at IUseDCO.  What does this mean?  Is it possible to do what I'm asking?
    Thanks
    I'm using TestStand 3.5 and Labview 8.2
    Attachments:
    error.JPG ‏25 KB

    Hi Chad,
    The problem with the find route.vi is it just tells me if the path is available or not.  It doesn’t tell me what state the relay is in.  When using SPDT relays this is a problem.
    I’m using a 2570 card set for SPDT operation.  So if I do a find route after a reset on “Com->NO” and “Com->NC” both return path available.  I understand this because I have not made a connection call to either one.  If I make a call to connect “Com->NC” the relay changes states.   The connection then returns a path exists.  My problem comes when it comes time to disconnect.  Since it is a SPDT I have to first disconnect “Com->NC” then make a call to connect “Com->NO” (which is very annoying).  If someone just calls disconnect and I try to read the path availability both return path available again and the relay has changed state.  How do I know for sure which pole the common is connected to?
    If I open Switch Soft Front Panel it shows exactly what position the relay is in.  How do I get this info to labview?  This is why I was trying to get the instrument handle to the underlying IVI session so that I can look at individual relays instead of paths between endpoints.
    I hope this makes sense.  I know I can’t be the first one to have this problem, so if anyone has another solution I would appreciate any help.
    Thanks    

  • Handling in/Handling out capacity

    Dear colleague,
             when i run optimizer profile i get message that the material does not use the handling in/handling out capacities.
              can any body advise how can i remove this message from the message log.
    Thanks
    Sandeep

    Hi Sandeep,
    This message generally comes if in the optimiser profile, the handling
    capacity is considered as one of the capacity constraints and in the
    master data for it is not maintained as mentioned by nandha
    Regards
    R. Senthil Mareeswaran.

  • Software Instrument Went Out of Tune - Please Help

    I'm three hours into recording a song on Garageband. I've recorded vocals over a tune I recorded on the Blip Side software instrument (using an Oxygen-8 Midi controller), however Garageband crashed, I never saved properly, and now when I go back to the song, my Blip Side tune is completely out of tune which renders the vocals completely out of tune. I can't figure out how to get it back in tune and I'm worried it might be hopeless. I originally had messed with the Analog Basic settings on the Blip Side instrument and added a Tremelo, getting the insturment just how I wanted it and then I saved it, but now it's not the same. Thanks a lot for reading this and I'd appreciate any help I can get.
    Ryan

    Yeah, the entire instrument is out of tune. I've tried duplicating the track and recording on the new one as well as copying the recorded notes onto the new track. I've also tried re-manipulating the instrument settings to try and match what it used to be, but I have no reference for it other than my voice.
    It sounds like every note I had recorded got re-interpreted as one ore two notes further down the keyboard, messing the whole thing up. The first chord is now two spaces down on my 15 key keyboard for some reason. What do you mean by transpose?

Maybe you are looking for

  • Mail icon constantly bouncing in the Dock, please help!

    Mail has been quite annoying over the past few days. It has been bouncing up and down in the dock, even if it wasn't open! I was wondering why this is happening and wondered if anyone knew a solution? It will do it a few times, then wait about 5 mins

  • Effects timing and clip selection

    i'm a new imovie user (i just got my laptop for christmas) and i've volunteered to do the video editing for a school movie project. so far it's gone pretty well, but i have two issues with features that apparently exist but aren't working for me. i h

  • Central User Administration using EP

    Hi, Can any body tell me how we can do central user Administration using EP. My landscape has multiple SAP systems, BW system and EP system. How should we go about it? Any help? regards, Sujesh

  • Synced Computer Grayed Out - Vista

    I keep having a problem showing my entire library from my synced computer. The synced computer under settings-computers is grayed out and therefore doesn't show everything (I have itunes set as custom sync and show only synced items is unchecked). It

  • Classification on Physical Sample Screen

    Dear All, I want classification system on physical sample screen. Thanks to all.