Select Switch Executive Route based on Socket Index

Hi,
I have a sequence set up in TestStand which simultaneously tests up to 4 UUT's. In order to run a current measurments, I need to be able to switch each device through the DMM. I have the routes properly configured in Swith Executive, and everything runs fine when I switch manually using the Test Panel feature. What I need to do now though, is choose which device is routed to the DMM based on its test socket number. 
So, for the "Measure Current" test step on "Test Socket 0", I go to the Properties>Switching window and just select "Connect_UUT0" route group. This works fine for a single test socket, but how can I dynamically switch route when I have more than one UUT?
I'm aware of the "RunState.TestSockets.MyIndex" variable, but I can't seem to select a route based on this. ie: In "Routes to Connect" I typed "Str(Connect_UUT)+Str(RunState.TestSockets.MyIndex)" after I read a similar solution on this forum, but I just get an error.
I'd really appresciate some help on this,
Thanks,
Kevin
Solved!
Go to Solution.

Hey Kevin,
You shouldn't need to do Str(Connect_UUT). You're likely getting the error because it's trying to interpret Connect_UUT as a variable instead of a string. Try this instead:
"Connect_UUT"+Str(RunState.TestSocks.MyIndex)
I think that will work, but let us know if you run into any more trouble!
Daniel E.
TestStand Product Support Engineer
National Instruments

Similar Messages

  • SELECT QUERY  BASED ON SECONDARY INDEX

    Hi all,
    CAN ANYONE TELL ME HOW TO WRITE SELECT QUERY BASED ON SECONDARY INDEX.
    IN WHAT WAY DOES IT IMPROVE PERFORMANCE.
    i KNOW WHEN CREATING SECONDARY INDEX I NEED TO GIVE AN INDEX NO -iT SHOULD BE ANY NUMBER RIGHT?
    I HAVE TO LIST ALL PRIMARY KEYS FIRST AND THEN THE FIELD FOR WHICH I AM CREATING SECONDARY INDEX RIGHT?
    LETS SAY I HAVE 2 PRIMARY KEYS AND I WANT TO CREATE SEONDARY INDEX FOR 2 FIELDS THEN
    I NEED TO CREATE A SEPERTE SECONDARY INDEX FOR EACH ONE OF THOSE FIELDS OR ONE SHOULD BE ENOUGH
    pLS LET ME KNOW IF IAM WRONG

    HI,
    If you cannot use the primary index to determine the result set because, for example, none of the primary index fields occur in the WHERE or HAVINGclauses, the system searches through the entire table (full table scan). For this case, you can create secondary indexes, which can restrict the number of table entries searched to form the result set.
    You create secondary indexes using the ABAP Dictionary. There you can create its columns and define it as UNIQUE. However, you should not create secondary indexes to cover all possible combinations of fields.
    Only create one if you select data by fields that are not contained in another index, and the performance is very poor. Furthermore, you should only create secondary indexes for database tables from which you mainly read, since indexes have to be updated each time the database table is changed. <b>As a rule, secondary indexes should not contain more than four fields</b>, <b>and you should not have more than five indexes for a single database table</b>.
    <b>What to Keep in Mind for Secondary Indexes:</b>
    http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb2d446011d189700000e8322d00/content.htm
    http://www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    Regards
    Sudheer

  • How can Teststand have Switch Executive dynamicall​y change a route.

    I have created routes in Switch Executive and when I try to connect these routes thru Teststand via Action Properties under the Switching Tab.  I get an error saying:
    Details:A reserved for routing channel required for connecting this route is already in use by another route.(Error = -29031) [Error Code: -17500, Operation Failed.]
    I am trying to connect two different routes by the following syntax in the "Routes to Connect"  section:
    "Route1 & Route2"
    It seems that in Switch Executive Route1 and Route2 are both using the same reserved for routing paths.  For example:
    Route1:      [C0->MatrixA/r1->C2]
    Route2:      [C1->MatrixA/r1->C5]
    So my question is then...How can Teststand make Switch Executive change the route path?  I have r0, r1, r2, and r3 set as reserved for routing.  Thanks for your help.

    Thanks for your help.
    For situation 1: 
    When I use this method Switch Executive dynamically chooses a route but its always the same route.   What I need to do is have a set of pins that use only one route and another set of pins that uses a different set of routes.  You can think of it as c1 is one lead of a multimeter and c2 is the other lead.  I need to be able to connect c1 on any other column besides c2 and also c2 to be able to connect to any other pin besides c1.  Since in Teststand I need to connect c1 and c2 simultaneously as a step I get an error because both are trying to use the same route.
    Also when I change the route from: 
                                                      ​        channelA->matrix/r0->channelB
                                                      ​   to: channelA->matrix/r1->channelB,
    then when I save and close Switch Executive and I reopen it the channels automatically routes itself back to channelA->matrix/r0->channelB.
    Is there any way that I can save these routes to my configured route?

  • How do I associate switches in a four layer relay tree using Switch Executive

    I have a three layer relay tree, controlled with a PXI-2567, to route an instrument input to 16 DUT channels. How do I create aliases in Switch Executive to turn the appropriate set of three relays on and off to route the input signal to one of the channels?

    Bob,
    Here is what you need to do to be able to call 2 end channels and create a route though 3 layers.
    1) You have to tell NISE how the independent relays are connected to each other. You will do that by creating Hardwires.
    2) You need to tell NISE that you want the channels connected to the hardwires to be used for routing. You will do that by marking the connected channels as "Reserved for Routing".
    3) You can name the end channels according to your topology. COM for the single input channel and CH0 to CH15 for the output channels by creating aliases.
    In the route editor, you will only need to create a route between COM and CHx and NISE will find the appropriate relays to close. In the route editor, if you only want to see the channels with an alias (COM, CH0, CH1 etc...) select in Options "Hide channels without aliases"

  • Connecting two 1-wire channels to a 2-Wire channel in Switch Executive

    I have a custom IVI 24x16 matrix and will be using the channels in groups of 2 and 4.  I would like to connect these 2 and 4-wire signals to the AB0 and AB1 inputs of a PXI-2503 multiplexer.  In Switch Executive all the signals of my matrix are characterized as 1-wire, but the PXI-2503 multiplexer inputs are characterized as 2 and 4-wire when in those respective modes. I can't figure out how to configure these as hardwires or buses so that Switch Executive will allow me to select one endpoint as the matrix and one as the multiplexer output.
    -Andy

    Andy,
    At this time, Switch Executive does not have support for creating
    routes that span channels with different wire modes. As a work around,
    you could create routes for individual legs of a route that have
    uniform wire mode, and then group them into route groups. This way you
    will lose some of the auto-routing otherwise available to you when you
    have uniform wire mode, but you will still have the flexibility of
    having named routes in your application.
    I hope this helps,
    -Serge
    Srdan Zirojevic

  • How do I find and/or change the pre-set voltage selection switch in an HP TouchSmart IQ500 series

    how do I find and/or change the pre-set voltage selection switch in an HP TouchSmart IQ500 series (specifically an IQ524)
    This question was solved.
    View Solution.

    Doesn't it use an external AC Adapter? If so, all you should need to use in another country is an adpater plug to match the wall socket.
    ... an HP employee expressing his own opinion.
    Please post rather than send me a Message. It's good for the community and I might not be able to get back quickly. - Thank you.

  • Execute query based on LOV

    Hi,
    Is there a special code to execute query based on selecting one of the options by the user in the LOV???? or it is as simple as the following???
    Set_Block_Property('PAYMENT_VOUCHER',Default_Where,'payment_method=:PAYMENT_VOUCHER.payment_method'); >>>> in the search button trigger(WBP):::
    Execute_Query;
    Note that the payment method field has a LOV...

    Tasneem wrote:
    ok..
    I tried to set this thread as answered but cannot!!!! believe me...None of answer you get as Helpful or Correct. ???
    You should read...Before posting on this forum please read

  • Cannot connect to com1 in PXI2530 using Switch Executive

    I have a PXI2530 configured using Switch Executive 2.10.  The first 60 Channels are setup with my signal names on ch0 - ch59.  Com0, 1, 2 and 3 are my Instrument connections.  The IVI Driver Sessions has Driver Setup set to Topology:2530/1-Wire Octal 16x1 Mux. 
    When I try to configure either a Channel, Route or a Group, there is only a com0 pin and no com1, 2, 3, 4, 5, 6 or 7.  There is no way to connect to any pin beyond ch15.
    The configuration looks like it is setup for a 128:1 mux, but when I try to connect ch16 to com0, it cannot complete the route.  Ch16 cannot be connected to com0 or any channel in the list.  Any idea what I am doing wrong?
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

    http://forums.ni.com/ni/board/message?board.id=320​&message.id=633
    Duplicate threadMessage Edited by Berto on 02-28-2006 12:15 PM

  • Microsoft Platform Ready Test Tool - Select Primary Executable when they are on a different server

    I am using the Microsoft Platform Ready Test Tool 4.1 and am trying to run through the SQL Server 2012 Data Platform Test
    My SQL Server 2012 is running on a Windows 2012 server, and all the prerequisite tests are passing.
    But then I come to step 1: Select Primary Executable(s) of Your Application, and get the followin error Message:
    You must identify your application's primary executable(s) in the below list. If no executable is displayed below, you must browse and add your applications's primary executable that makes the connection to SQL Server. If your application is IIS/PHP/COM+
    based solution, then you must add the corresponding framework executable(s) that makes the connection to SQL Server.
    So, my Application is a .Net 4.5 web Application that is running on a diffent VM from the SQL Server.
    So my question is then: How can i add the files needed? And which files am i supposed to add anyway?

    Hi Bjørn Otto,
    If you need to verify the SQL Server 2012 application using Microsoft Platform Ready Test tool, you can add ssms.exe in the ‘Select Primary Executable’ page. For more details, you can review the similar guideline which can be downloaded from below link:
    https://mprprod.blob.core.windows.net/assets/us/MPR_SQL2008R2_GUIDE_05092012.docx
    About adding the executables for other applications such as  .Net application deployed in IIS, you can review the list in this
    blog.
    Meanwhile, since the Microsoft Platform Ready Test tool is not part of SQL product, I would like to recommend that you also ask it in this
    forum. It is appropriate and more experts will assist you.
    Thanks,
    Lydia Zhang

  • Planned order not selecting BOM and Routing.

    Dear All,
    I am runing LTP, but for all simulative Planned order system is not selecting Routing and BOM.When i change it manually its selecting the correct BOM and Routing.
    Please let me know what needed ....
    Regards
    Sathish

    Dear,
    First check the OPU5 setting for routing selection ID for your pant and order type?
    Check setting of OPJM fo the selection ID linked application?
    OS32 setting for alternative selection.
    BOM is selected by the system based on the setting in MRP plant parameters(OPPQ) and in material master MRP view BOM explosion type. I. e based on the validity date, lot size. so on
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on Apr 3, 2010 11:11 AM

  • Scan list using Switch Executive

    I have a number of signal routes using multiple switch cards that I have set up using switch executive. I want to create a scan list that will switch each of my routes in turn each time I see a hardware trigger on the trigger inputs of my switches.
    I have looked at some examples in TestStand and can see that if I use the IVI Switch Step using the IVI Switching setting that I can set up a scan list but that seems to be only for one switch card, I have two that I need to route signals to a Digitizer. I can not see a way of using my routes set up using Switch Executive. 
    I can either use LabView2013 or TestStand 2013 to do this.
    Some help would be most appreciated?
    Wayne 

    Hi Wayne, 
    If I have understood your problem correctly, this VI in LabVIEW sound like it does what you are after. 
    NI Switch Route Trigger Input
    Also at the bottom of this LINK are some examples of scan lists, perhaps you will be able to adapt this to your needs
    Please let me know how you get on
    Kevin R
    Applications Engineer
    National Instruments UK&Ireland

  • Switch executive stops working after labview 2009 installation

    Hi,  After I've installed labview 2009 my old switch executive virtual device routes stop working in such a way even if I try to set a route from switch executive test panel the attached error message pops up.
    I am using:
    Labview 9.0.1 
    TestStand 4.2.1
    Switch Executive 4.6.2 
    Many Thanks in advance
    Mehran Fard
    Mehran Fard
    Attachments:
    niSE.png ‏11 KB

    Hi Fardm,
    I might try doing a repair on LabVIEW, TestStand and Switch as it sounds like a dll might have become corrupt.
    Kind Regards,
    Owen.S
    Applications Engineer
    National Instruments

  • Which Switch and Router to choose?

    I am interested in purchasing a Cisco Switch and Router, or possible a Cisco Switch Router.
    However, I am not sure of what model to go with.
    Currently, we have a network with about 200 Workstations and 30 Servers for our Corporation Infrastructure.
    Also, for our lab, we have about 50 Linux Based Servers, and 30 Solaris Based Servers, that are part of our Network. We are a Research and Development Company, and we have had issues with the Lab machines bringing down our network, as well as our corporate network adversely affecting the lab machines. What we would like to do is segment the network so that the different areas will be isolated. However, we also would like to have a lot of control over the traffic that will be able to cross from our network into the lab so that users will still be able to run their tests.
    Security is also an issue, and it would be great to have more control, and a better view of what kind of traffic is running through our network.
    Currently, we have about 8 Gigabyte Switches which are unmanaged (Linksys and NetGear). Our idea was to get a 1 or 2 Cisco Switch Routers, and then split them up into VLANS and cascade our current switches so that we can still make use of them. The other ideas was to just get a Cisco Switch and use our CheckPoint Router/Firewall to do the routing.
    Can you give me any advice as to what model of Cisco Product you would recommend?
    Is it better to go with a Switch Router, or simply get a separate Switch and Router?
    Please note that all of our Machines have 10/100/1000 NICs, so the device will need to be Gigabyte.
    Thanks you so much!

    You have two choices. Either to use a chassis based solution or to use stacable switches such as a 3750. Are all the cat 5(or 5e,6) runs coming into one centralized location ? Or are there separate wiring closets that you plan to put. If then we need to put separate switches at those locations and run fiber back to the central location which has a chassis based or stackable switch.
    If using a chassis based solution, you can get a 4506 (4507 for redundancy, with a redundant supervisor engine). Supervisor engine is nothing but the CPU of the switch. 4506 is a 6 slot modular switch with 2 power supplies for redundancy. You cannot add two Supervisor engines on a 4506 (4507 can).
    Slot 1 is always for supervisor engine, the remaining 5 slots you can fill using 48 port 10/100/1000 modules.(48 * 5 = 240). So your maximum port density is 240 ports on a 4506. (Note that there are 4507, 4510 which are similar models with more slots)
    If using 3750, you can stack upto 9 switches in a stack using stacking cables on the back side of the switch. Each switch will have 48 ports (10/100/1000) and you can stack 5 switches to get 240 ports.
    For the firewall I would recommend using a PIX 515E, (Why go for Checkpoint firewall when you can use all Cisco). For routing between the vlans, the switches that I recommended above are all Layer 3 switches. They will route between the different vlans. You can also configure ACLs to restrict traffic between multiple vlans.
    HTH

  • Switch "ON" Rules based ATP

    Hi,
    How can we switch on or switch off "Rules based ATP".
    Is it possible to do it at material level or is it done at some group level or system level.
    Thanks and regards,
    Ashok

    Hi,
    The scheduling is done in SCM, and from there, whenever the RBA is triggered, the calculation is done always with the old route in SCM. Until you get back to R/3 this is when your route is determined. But the ATP check is always with the original route. So the idea would be that you change the values of the route while still in APO, this is possible via the user exit. Should be done in scheduling in APO.  
    Hope this information is helpful.
    Regards,
    Tibor

  • LTP consider production version and not consider selection id for routing

    Dear guru.
    I run mrp long term planning for a material.
    The material have a production version linked to a specific bom and routing.
    In trx OPU5 I have defined that the planning scenario consider a specific selection id for routing  , this routing is different from the  routing of production version.
    The result is that for this material ltp donu2019t consider any routing and no evaluation activity is possible.
    Do you know a solution in order that for LTP the system donu2019t consider production version and instead only consider OPU5 settings ?
    Thanks for your interesting.

    Dear CONS SAP,
    Create a new planning scenario in T Code MS31 and then maintain the scheduling parameters for this planning scenario and
    assign this selection Id and then execute and check.
    Check and revert
    Regards
    Mangalraj.S

Maybe you are looking for

  • JavaFX application is cached on client machine

    Hi, I have a developed a browser embedded JavaFx application and deployed on a production machine. When I deploy a newer version of .jar file on production machine it is not updated on all client machines because the .jar file is cached. The only way

  • Can't drag docs from Stacks onto desktop

    Ever since I have had my Mac, which I bought only in March, I've been totally baffled by the Stacks facility. I put documents straight from the desktop onto a folder onto hard disc - it appears to have done this. I then check it a few days later - no

  • AVCHD Reversal Effect Problem

    I have a Sony HDR-SR8E camera that produces AVCHD 1080i anamorphic 1440x1080 files. I recorded a scene over 2 hours and uploaded to the PC and imported to Premiere Pro. The camera supports maximum file size of 2Gb while Vista 64-bit can handle much l

  • External Wiki Security

    I am hosting a Wiki externally. It works fine, but I have a security concern. I have created a group for external Wiki access "only". So I thought. I created a virtual NIC with an IP of 192.168.10.9. I created a new "Site" in the Server admin under t

  • IPhoto 8 Photos Corrupted or Disappeared

    Using iPhoto 7.0.2 (341) I've now had two separate iPhoto libraries where photos were either corrupted or lost. In the first instance I noticed a problem trying to do a Retrospect Back-up and the procedure simply hung the program. Then when I tried t