Using LabView to Programatically Specify the Module of a TestStand Step Problems

I am writing a LabView App that generates TestStand Sequences.
When programatically 'specifying the module' of a TestStand Step calling a LabView VI, is it possible to set the values of the parameters passed to the VI by Name?  I am currently creating steps fine, but the only way I can set parameter values is by using the parameters index. 
It would be really nice if I could reference the parameters by the name specified in the VI rather than the index derived when the VI is created.
Any ideas?
Steve
There are 10 types of people in the world that understand binary, those that do and those that don't.

Hi Steve,
  you've also posted this on the TestStand forum and it's been answered there.
For anyone else looking for the approach :
http://forums.ni.com/ni/board/message?board.id=330&message.id=9585
Thanks
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer

Similar Messages

  • If I buy a MacBook Air in America, can I use it over here in the U.K. without any software problems?

    If I buy a MacBook Air in America, can I use it over here in the U.K. without any software problems?

    It is true that they are not region free with DVD's even though they let you switch the region 3 or 4 times and then it locks on the last region you choose forever.
    Software is a different story, I myself own a MacBook Pro from Europe but I install software I buy from the US.
    I have friends that own Macs from the US and they live in Europe and they don't have any problems.
    I have a friend from New Zealand with a MacBook and when he comes over in Europe he has installed European software.
    So you see, I think a software region problem if you ever have any should be extremely rare.

  • 100% CPU using LabView 7.1 and DSC module

    Seven years ago I used BridgeView and PXI to execute a project, and the results were so good that after that initial system, I installed one more using BridgeView, and three more using LabView 7.1.
    BridgeView is working very well, but lately, LabView 7.1 is giving me more and more problems. It all started in a system running LabView 7.1 and DSC on Windows XP, using a PXI-8187 controller with a PXI-1042 chassis. I have two PXI-6533 digital I/O boards, one PXI-6030E multifunction, one PXI-6713 analog output board, one PXI-6602 counter board and one PXI-8422 serial com. board. In may/06, all of the sudden, the CPU went to a 100% use. Since I am running PID's to control a flash-butt welding machine in a steel factory, this was extremely dangerous. I changed the controller and everything went back to normal. It was running fine until december/06, when the same behavior appeared again. This time changing the controller did not help. We increased the system memory, from 256 MB to 512 MB and everything worked fine. But one month later (january/07) the fault reappeared. This time we changed the chassis and from that moment to this time, we are running smoothly.
    Application problems were suspect from the very first time this problem appeared, but I was unable to identify the source, if any. I used PROFILE VI's and apparently the write/read tags were taking all the processor resources. However, changing the routines and disabling communications, and optimizing CPU intensive programs never solved the CPU overload.
    Until now, I was aware of only one system showing this erratic behavior. But today I went to check another system, with a totally different application. This one is used to measure the thickness of the steel sheet on a rolling mill. Is not so resource-intensive, but the maintenance folks told me that every time they turned off this particular system, they always had problems trying to turn it on.
    I was suspecting of a PLC-communication related issue, but what I found turned my alarms on. I turned off the system, which was fully functional, and turned it back on, and there it was, CPU load at 100%!. Is exactly the same problem that I have on the welder. This system has a PXI-8184, a PXI-1042 chassis, Windows XP, one PXI-6030E, one PXI-6713 and one PXI-6533. I battled for 20 minutes to put the system back in normal conditions.
    I specified every single board, installed everything and programmed all the applications. The BridgeView applications have never showed anything like this. I am using the DSC (Datalogging and Supervisory Control Module) on both applications, and the Lookout Protocol Drivers are communicating to Modicon PLC's.
    Please, I need help to solve this issue. I believe none of your actual Knowledge Base "100% CPU" articles apply to my case...
    Thanks in advance...
    Antonio Jimenez
    [email protected]

    Thanks for your reply...
    Yes, sometimes I have the feeling that the systems works again because some file or database gets initialized after so many reboots.
    Intentionally I turned off all the events and alarm logging to disk. Also the historical data logging is disabled. This is done by code, every time the main VI is started. This was included precisely to save CPU processing power. However, I am communicating to PLC's, and of course I have to declare variables inside the citadel database to make the communication possible.
    Right now I can't have access to the application, because the mill is rolling, but during the next maintenance stop I will check the database location and size, and I could change the directory location the next time the fault comes up.

  • SQL Server 2012 Management Studio: XML XQuery-query the XML Blob using CTE: How to specify the coorelation name in bulk rowset?

    Hi all,
    I just started doing the XML Xquery programming in my SQL Server 2012 Management Studio. I executed the following code:
    --query the XML Blob using a CTE (pulling from the XML file each time) Products
    WITH XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'H:\Products.xml', SINGLE_BLOB) ) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    I got the the following Msg:
    Msg 491, Level 16, State 1, Line 4
    A correlation name must be specified for the bulk rowset in the from clause.
    How can I specify the correction name for the bulk rowset in my project?
    Please kindly help, advise and respond.
    Thanks in advance,
    Scott Chang

    Hello Scott,
    You have to assign a table alias for the OPENROWSET =>
    --query the XML Blob using a CTE (pulling from the XML file each time) Products
    WITH XmlFile (Contents) AS (
    SELECT CONVERT (XML, BulkColumn)
    FROM OPENROWSET (BULK 'H:\Products.xml', SINGLE_BLOB) AS MyXML ) AS XmlData
    SELECT *
    FROM XmlFile
    GO
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Using LabView to trade in the Futures markets.

    Hello
    I am retired and trade stocks and futures contracts using the TCP read/write
    vi's in LabView and the Interactive Broker's API interface .
    Anybody doing the same that would like to exchange ideas? I appear to be
    the only one on the IB programming forum that uses LabView.
    Everyone else seems to use C++, VB, or Java.
    Poor guys, they don't know what they're missing.
    Leno

    Hi Togos,
    Can you tell us more about what you are trying to do. This question can be read many ways from an IB API question to just wanting to know about the Event Structure.
    If you just want to know how to handle events from the TWS, then you would process those events using an event structure. You might want to take a look at this video about design patterns. There is also a great developer zone here.
    Joe Daily
    National Instruments
    Applications Engineer
    may the G be with you ....

  • I use iGoogle as my start page and none of the modules will work. I use Avast anti virus. The modules work in chrome and opera. can you help

    I have checked my setting and options and I cant seem to get igoogle to load the modules to load.

    Ok, to copy the Drive from one to another, get carbon copy cloner to make an exact copy of your old HD to the New one...
    http://www.bombich.com/software/ccc.html
    Or SuperDuper...
    http://www.shirt-pocket.com/SuperDuper/
    Believe it or not, anything on the Desktop uses 3 times the Resources of the Mac than if stored elsewhere, I can note a slowdown from just 30 items on the Desktop on a really fast Mac, so the less the better on the Desktop.
    DW will not tell you about Bad Sectors, it's just the very best at Repair Directory damage & such.
    At this point I think you should get Applejack...
    http://www.macupdate.com/info.php/id/15667/applejack
    After installing, reboot holding down CMD+s, (+s), then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 6 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 6 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    Trash old Log files.
    First reboot will be slower, sometimes 2 or 3 restarts will be required for full benefit... my guess is files relying upon other files relying upon other files! :-)
    Disconnect the USB cable from any Uninterruptible Power Supply so the system doesn't shut down in the middle of the process.

  • Programatically specifying the configuration Information

    Hi,
    I want to specify all configuration(e.g. cacheconfig,pof config,etc.) programmatically to CacheFactory. Is this possible to do?
    I am using C# NOT JAVA.
    Regards
    Nitin Jain

    Nitin,
    Where do you get the String containing the POF configuration from?
    You could possibly do what you want by extending ConfigurablePofContext on the server side or in your client (as I believe you use C#). You can then get the String from wherever it is convert it to an XmlElement on the server side or to System.Xml.XmlNode in C# and set that as the Config.
    E.G. On the server side...
    import com.tangosol.io.pof.ConfigurablePofContext;
    import com.tangosol.run.xml.XmlElement;
    import com.tangosol.run.xml.XmlHelper;
    * @author Jonathan Knight
    public class CustomPofContext extends ConfigurablePofContext {
        public CustomPofContext() {
            // Get your XML configuration from somewhere
            String xml = ...
            XmlElement xmlElement = XmlHelper.loadXml(xml);
            setConfig(xmlElement);
    } ...And in C#...
    using Tangosol.IO.Pof;
    using System.Xml;
    namespace Coherence.Examples
        class CustomPofContext : ConfigurablePofContext
            public CustomPofContext()
                // Get your XML configuration from somewhere
                string xml = ...;
                XmlDocument xmlDoc = new XmlDocument();
                xmlDoc.Load(xml);
                this.Config = xmlDoc;
    }As I am not a C# developer I cannot guarantee the C# to produce an XMLDocument from a String is correct, but you get the idea.
    You then declare this CustomPofContext class in the various serializer sections of your cache configuration file.
    JK

  • How to use a variable to specify the color when setting an attribute

    Hi
    We are using BI Publisher (XDO) embedded in e-Business Suite. So we are effectively on version 5.6.3.
    I would like to conditionally set the background-color attribute of cells in a table by using a variable reference; something like this (the ways in which I have tried):
    <?attribute@incontext:background-color;$exEmpBGColor?>
    <?attribute@incontext:background-color;'{$exEmpBGColor}'?>
    The 'standard' way of doing this would be:
    <?attribute@incontext:background-color;'#CCCCFF'?>
    Can anybody please help? (i.e. is this even possible?)

    Thanks that works.
    I was using a variable, so I adapted your example to use the variable, not an element.
    <xsl:attribute xdofo:ctx="block" name="background-color"><xsl:value-of select='$exEmpBackgroundColour' /></xsl:attribute>
    Regards

  • How to use Labview ""buttons"" to functioning the program?

    i'm trying to use the ok button to operate the program to add the value in the  cluster X Y (millemetre) [which is from the machine vision operation] with the value X Y offset [which i gonna input them myself] but .. i dont' know how to make it done , now i'm trying to use event structure but it's not working
    plz give me some advice thanks ... by the way i'm got to make this thing done by 3 days due to my project schedule ... thank you
    also this software is to locate the orientation for robot to grip the object by using CCD camera
    Message Edited by NuMetal on 01-04-2010 10:55 AM
    Message Edited by NuMetal on 01-04-2010 10:55 AM
    Solved!
    Go to Solution.
    Attachments:
    Project1.vi ‏97 KB
    1.jpg ‏92 KB

    Place the Event structure inside a while loop. Have a look at some of the examples that ship with LV, they for sure show this.
    Then use the value change event for the ok button (place the button's terminal in that fram to have the latching behaviour set correctly).
    You can pass the data of XY to the loop output in the same event frame to read it at the very moment, the ok button is pressed.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • HT1904 I just put two $50. iTunes and a $15. On my phone and can't use it! This is the second time ive had a problem with iTunes! This is ridiculous

    I bought two $50.00 ITunes cards and a 15.00 because.the 100.00 wouldnt work. I still can't use  my cards.

    You are right, but how could i send it to Apple? when the phone company first replaced my iphone they had in stock alots of iphones and they just sent mine back to Apple and gave me a new one, so all i did is to give them my phone, but now how could i sent it to Apple? and i cant send it by myself, and the store wont do that, its a lost for them.. so sending it to Apple wasnt an option from the begining.
    and for the record, i dont think the store where i bought it is an authorized shop.. its just a store who boughts phone's from Apple in a low price and sells it in much more money..

  • What username and password is used for a Mac on the Install of Adobe Reader,  (Step 8 in procedure)

    Is it a Mac or Adobe password used for installing Reader to a Mac OS? Doesn't. Say in step 8 of procedure.  We cannot. Get past this point.  Thanks.

    See https://forums.adobe.com/thread/1619850

  • Creating LabVIEW module adapter TestStand Steps using the API without loading module prototype???

    Is it possible to programatically create a TestStand step (using the API), that calls a LabVIEW module, without loading the prototype of the module to get a reference to the Module Parameters.
    I want to specify a VI Pathname, but I dont want to use that pathname to load the prototype.  I want to programatically specify the name, type, representation etc. of each of the controls and indicators.
    My reason for attempting this is that I only want the VIs called by the steps to exist on the target hardware not on the numerous development machines running my application.
    Any thoughts greatly appreciated.
    Steve  
    https://decibel.ni.com/content/blogs/DailyCLAD

    Hi Steve,
    Unfortunatly it is not possible to do what you want within Test Stand but I am not sure why it is necessary, I think I am understanding your application incorrectly.  The only time you will need to load the prototype is if you are creating the step but if you are creating the step you will need the VI that the step calls so that VI will need to be present on the system.  If you are not calling the step then you shouldn't need to load the VI prototype.  If this is how you program funtions it may be a problem with your architecture but if not please could you correct my misunderstanding so that I can go about finding a suitable solution.
    Regards,
    Tom
    Applications Engineer
    National Instruments UK & Ireland

  • In LV, using TS API, how do I specify the VI module for a Pass/Fail step?

    I am writing a LabView VI which will let a user write a TestStand sequence. Each step in the seq is the same type, a Pass/Fail test. I need to specify for each step the LabView VI module location, and an input buffer. I am having difficulty finding out how to specify the module for the step using the TestStand API in LabView. How to do this????

    Hi Drew,
    I think Dennis might have come at this from the wrong angle.
    Have a look at the example that ships with TestStand under
    \Examples\SequenceBuilderTool\LabVIEW
    This might give some clues, but I'd suggest posting this question over to the TestStand discussion Forum as suggested by Dennis.
    There'll be a few more people there who can help a bit more in-depth
    My personal suggestion is to create a custom step type that calls the .vi's and then you can create the steps in a new sequence file using your tool easily. This could be cumbersome for you if you already have a lot of steps setup.
    Better then to create a resource to get the steps out of to clone them by creating a sequence file which is full of your steps. When you have a handl
    e to a cloned step, you can change properties about it in memory, before putting it into the sequence (i.e. change it's name and stuff)
    Otherwise you need to get the type and create a new step of this type.
    If all you're stugling with is the module to call, then for the step you have a handle to, change the
    you can either change the "Step.TS.SData.ViPath" as a string (TestStand set property value String with a reference to the sequence_context) or if you wanted to bring up the specify module dialog, if you have a handle to the step itself, call the method SpecifyModule.
    Hope that helps
    Sacha.
    // it takes almost no time to rate an answer

  • How can I change the names of the Excel Worksheets using LabView?

    Hi Everyone...
    I want to start a project but I want to be capable to create and change the names of the worksheets in excel using LabView.
    We know the default name of the worksheets (Sheet 1, Sheet 2...)
    Can I make this change only using labview with some activeX, properties and methods...
    Best regards...
    Mexico
    LabView 8.0

    Hello,
    Yes, you can modify the name of an Excel Sheet with ActiveX property Node or Invoke Node.
    There are some good examples in the NI Example Finder of Labview on "Communicating with external Applications -> ActiveX -> Excel ->..."
    To modify the name of a sheet, you need to use the property "Name" of the reference "Sheet"
    Best regards
    Nick_CH

  • Process Failure when communicating over MODBUS using LabVIEW 2011 and DSC

    I'm currently trying to read from a PLC's holding registers using MODBUS/TCP. I've confirmed that the PLC is updating the values and responding to MODBUS communication correctly using a third party program called Modbus Poll. However, when I try to poll the PLC using LabVIEW's shared variable engine, I am unable to read any values from the same addresses that I'm viewing with Modbus Poll.
    My setup simply consists of a PC connected directly to the PLC over Ethernet, with no router in between. I am using LabVIEW 2011 SP1 with the DSC module.
    I opened the NI Distributed Systems Manager to view the status of all shared variables in the Modbus library that I created and I've noticed that the CommFail bit is permanently set to "true". All other variables with a "read" access mode report "Process Failure". I've tried restarting the process as well as stopping and starting the local variable engine with no success. I've also restarted my computer several times to see if any services were failing, but this does not seem to have fixed the problem.
    I finally resorted to monitoring communications over the network card that I have the PLC plugged into via Ethernet using Wireshark and I've found that while Modbus Poll is communicating with the PLC, many MODBUS and TCP packets are sent and received. However, when solely using LabVIEW or the NI DSM to communicate with the PLC, there does not appear to be any communication over the network card.
    Something that may be worth noting is that I was able to communicate with the PLC and read values from it with the DSM on just one occasion, when I first figured out which addresses I should be reading from. It all stopped working shortly thereafter. Prior to this, "CommFail" was not usually set to "true" with my current configuration. Thinking that it was my firewall, I have since turned my firewall off, but this seems to have had no effect on the problem either.
    Any help on this matter would be appreciated.
    Solved!
    Go to Solution.

    Just a thought but I think the  register addresses used by LabVIEW are one off of the actual register #.  I was using a CRIO as a modbus IO Server and had to shift the register addresses by 1 to get things to work correctly (can;t recall if it was +1 or -1).  This is documented somewhere on ni.com but can;t seem to find it now.  But here is another  link that may help:
    http://zone.ni.com/reference/en-XX/help/371618E-01/lvmve/dsc_modbus_using/
    Dan

Maybe you are looking for

  • JSDS 6.2 and Solaris 10 UNIX Accounts (simple,proxy)

    Hi, I just got my Solaris10 server-client setup working. Here's some items that may be useful to you: All I'm using LDAP for at this point is user authentication to include home directory management from the server ( NFS share and auto_fs setup in LD

  • HT1386 itunes no longer sees my iphone

    iTunes can no longer see my device.I have removed and re installed everything

  • Proper way to migrate schema from one DS5.2 to another

    What is the best error free way to migrate schema from one Directory Server 5.2 to another. Thanks,

  • Post-Processing limit on number of files?

    Hello, When I export a set of pictures, I apply a post-processing Photoshop droplet to that applies the Imagenomic Portraiture filter. It works fine up to a certain point. I noticed that if the number of files is less than 21, it works fine. If the n

  • OSX 10.5.6, LR2.1, PS4...Printing

    Just downloaded 10.5.6! PS4 printing is tack on with Epson R2880 (i.e. R2400 dark print issue). LR2.1 is not (tack on). I'm "assuming" that the impending 2.2 release will include an update to its printing that will encompass whatever Apple may have i