I create a CVI interface that runs a Teststand sequence. I want to set/get the Teststand StationGlobals variable. I use this code to get a string:
If (TSTD_GetStationGlobalsString (ERR_RETURN_PTR, "TS. Username", & result)<>
on the other
and the TSTD_GetStationGlobalsString function is as below:
int TSTD_GetStationGlobalsString (ERR_RETURN_DECLARATION, lookupString char *, char * pString)
int error = NO_TB_ERROR;
char * pTempString;
errChk (TS_PropertyGetValString (gStationGlobalsHandle, errorInfo, lookupString, 0, & pTempString));
* pString = malloc (strlen (pTempString) + 1);
strcpy (* pString, pTempString);
If (pTempString! = NULL)
If (error! = 0)
strcpy (* pString, "");
Returns - 1;
on the other
Howerver when I want to access another different variable of TS it doesn't, it works. Can someone help me please.
Problem solved, I only had to restart Teststand to save the new organization global ^^'
Tags: NI Software
I have to create a report for Teststand coustom generator plugin using c#. In the Teststand API is a built-in method called 'DisplayEditNumericFormatDialog '.
Is there a way to set the value of the sample of the window that appears if the method is called?
I do the following things:
private void button1_Click (object sender, EventArgs e)
mChanged = true;
PropertyObject tempobject = mEngine.NewPropertyObject (PropertyValueTypes.PropValType_Number, false, "", 0); creates a temporary PropertyOgject to view the EditNumericFormatWindow
tempobject. NumericFormat = mConfig.GetValString (P_PluginSpecific_Options_NumericFormat, 0); read the digital format of the plugin options
tempobject. DisplayEditNumericFormatDialog ("Digital Format", out (tempbool), 1); View the EditNimericFormatWindow
If (tempobject. NumericFormat == "") mConfig.SetValString (P_PluginSpecific_Options_NumericFormat, 0, "%$.13g");
else mConfig.SetValString (P_PluginSpecific_Options_NumericFormat, 0, tempobject.) NumericFormat);
MessageBox.Show (tempobject. NumericFormat.ToString ());
Thanks in advance
attached is a sequence that shows how this can be done.
Locals.Local = RunState.Engine.NewPropertyObject (PropValType_Number, False, "", 0x1),.
Locals.Local.AsPropertyObject.NumericFormat = "%b"
Locals.Local.AsPropertyObject.SetValNumber ("", 0, 20),.
Locals.Local.AsPropertyObject.DisplayEditNumericFormatDialog ("false title", False, 0)
Dear community NOR!
Could someone, please, with the following - is there an option to set the path to code modules, within the test sequence, to have a relative path, but not absolute? I add programmatically in code modules to the steps of the sequence, but currently, they have an absolute path. Is it possible to change it to relative with TestStand API?
Thanks in advance.
I was wrong. It is possible to manually cut path to the file (TestStand directories search function). Then, will add the modules of code with relative paths. But be careful - path should be cut properly.
For example, I have the full path
E:\Development\source code\supplementary\TestVIs\ Code Modules\Service\Print.vi
My search directory is
So, I need to cut like this:
and without a bar slash at the beginning!
Then it will be OK.
I am looking for a Visual Studio c# solution to selectively disable the creation of the generation XML report file using the API TestStand.
These XML files are useful for active troubleshooting for technicians, but end up cluttering the important directories with unnecessary information most of the time.
I am aware that the creation of the XML file can be disabled through the element to configure menu the TestStand sequence editor | Result processing | Name output report | Enabled the option unchecked.
This is useful, but:
1. I have not found a way to enable - disable this feature when running.
2. I don't think it would be an effective solution for my paradigm of basic deployment without installation.
Any help or ideas would be appreciated!
Here is an example that works for me. If I run single-pass with a report on, I don't get a report.
I started playing with the API, TestStand, and I have questions on how to configure a TSAdp.LabViewModule.
These examples work as I expect and I understand them. I am struggling with how to specify VI parameter values in the module when the step type is 'Action '. In other words, how to set these parameters?
All the examples I see use of step types that have defined fields, which are accessible through the API with 'AsPropertyObject '. The action type, by default, has the result field.
Set the values of the parameters of a VI with the API TestSTand? If so, how?
Well, I thought about it on my own so I figure I'd share the solution:
I'm looking for an example on how to create a project teststand with the API file. I can not find a method or property to create it and add the project files to a workspace. I tried with PropertyObjectFile (class) without success.
Let me know if you can help.
TestStand 2010 SP1.
CE that you say make sense, I managed to make it work differently using PropertyObject.WriteFile (format) just before SaveWorkspaceAndProjectFiles.
Creating a workspace = Engine.NewWorkspaceFile (WorkspaceFile.AsPropertyObject (PropertyObjectFile.WriteFile [in writeFormat])(PropertyObjectFile.SaveFileIfModified[Prompt])) ((PropertyObjectFile.Path[Path])
Creating a project = Engine.NewPropertyObjectFile [FileType] ((PropertyObjectFile.Path [Path]) (PropertyObjectFile.WriteFile [in writeFormat]) (PropertyObjectFile.SaveFileIfModified [prompt]
Add a project to a workspace = Rootworkspace---> WorkspaceObject.NewFile [Path]---> [obj (NewFileReference)] [Index] WorkspaceObject.insertObject and WorkspaceFile.SaveWorkspaceAndProjectFiles of WorkspaceFile.AsPropertyObjectFile (PropertyObjectFile.WriteFile [in writeFormat]).
Thank you for giving me a helping hand.
I use TestStand for a few months now (self-taught using a LV architect with experience of the TS) and I think I will do certain things programmatically at run time and finished watching the massive array of properties/methods, etc. and ask yourself who are the properties/methods that will allow me to do what I have in mind. Is there something fundamental missing in learning to understand which path to take to get down to the specific class and property/method interests me?
For example, at the moment I am trigger some additional operations on the process model in addition to running the main client generated when you enter Test DUT. I would like to be able to programmatically from within TS itself, or more probably of LabVIEW or hide these tabs when running... I guess it's possible. I know that executions can be set initially hidden but a search for 20 minutes of the API not immediately revealed magical items to let me do this programmatically.
The ApplicationMgr TestStand is located within the TestStand UI control server. To access the Application Manager, you first need to action a step ActiveX (because it is an ActiveX control) and RunState.Engine.GetInteralOption (InternalOption_ApplicationManager), you get a Manager Application object.
"Select the Module tab then under Automation server" NI TestStand XXXX UI controls (Ver X.X)
The object reference"RunState.Engine.GetInteralOption (InternalOption_ApplicationManager)
Class object' ApplicationMgr (IApplicationMgr)
Get the property executions
Which returns an object reference and class performances, thus, create a variable(Local,FileGlobal,etc) of object reference to use to retrieve the properties of the Application Manager.
Also note that to get the individual properties of your Application Manager object you won't be ActiveX measures for the properties you want.
I hope this helps.
I want to load a VI in without LabVIEW TestStand.
Version of LabVIEW 8.5
TestStand Version 4.0
The PC with TestStand just to LabVIEW 8.5 run-time engine, and the VI is used to import data into globals station; Also, this VI called TestStand API and motor TestStand.
On a PC with LabVIEW and TestStand, everything is OK.
But, on a PC with Runtime only, even if I configure adapters in time TestStand and select run in LabVIEW 8.5, an error message (unable to load VI...)
I tested with a simple VI (dialog box), everything is ok;
But with screws unpacking called API, TestSTand, an error
You have an idea?
Thank you for your answers
Yes, I understand that you use TestStand development system and the screws are in a law degree there. What I ASKED, it was where you placed the TestStand screws on the pc only run time. Looks like you do not place them anywhere. If you do not, how do you think that the top-level VI will work? Don't you think that these screws are included in the runtime engine don't you? They are not. Only the ex of LabVIEW is the execution engine.
You should really consider using the deployment tool.
Hello - the members of the Forum.
I have a problem about the execution of a TestStand sequence into LabVIEW. I created a VI that offers the possibility to choose a sequence TestStand-file and then executes the sequence using the TestStand API. The implementation is based on an example in C++-Application found the following link:
The app works pretty solid where the VI is executed the first time. The VI treats the sequence chosen in an acceptable time.
But where execution is started again, the sequence takes approx. 30 sec more than in the first case.
So far I have not found a solution and hope someones got a clue about this problem...
I use 2013 LabVIEW and TestStand 2013.
I enclose my own VI, a sequence of the specimen with a small sample of VI, so you can reproduce the problem.
I have a very difficult time with the Teststand API to do what I want. I need to automate the deployment of the space in our system of Labview, I need to get the path of all the dependencies used in a workspace to create a label in Perforce (SCC) to version control before deployment.
As for now, I managed to: open the workspace > get the RootWorkspaceObject > NumContainedObjects then GetContainedObject (in this case, the project files) > NumContainedObject then GetContainedObject (in this case, the files within the project) > NumContainedObject then GetContainedObject (in this case, the files in the folders).
The problem is this: I can get the project DisplayName and path of the project by the property node file reference. However, the folder object as I get the name and no path, and with the objects of the elements, I get only the name and what looks like a relative path. I want this absolute path, on the second line, for each element in the picture below... that is, the Properties menu of one of the elements.
Once I get these paths, I would do the same thing with a sequence to get the associated EIS. If I can get those that I think that I can get to get their secondary dependencies in Labview and will be able to build a label necessarily for all dependencies.
P.S we use LV8.6
OK, first of all thx Francisco, I tried this invoke node (GetAbsolutePath), but it looks like for some reason I have it did not in the right place the first time...
1. we can get the paths of all files included in the workspace.
2. we can get files albums since a sequence file dependencies, (with a slight modification, sous-séquences too).
3. we can get the top subs dependencies (in this case Vi) files.
It is only a proof of concept, given that all the references are not closed properly. I updated 'TSDependencyGet.vi' to account for the solution of the above 3 assumptions. This example look only for the Modules of VI no other code.
It assumes that your workspace is always at the root level of the 'projects' files and that the first search path is 'space of current work - subfolders selected' and second line of research is "* reeuse root directory * with selected sub.
In my case, the workspace has 1 project with 7 files, the sequence is in folder 5. Specific VI are in the subdirectory of the root workspace folder and reuse of Vi in another way (second search directory).
I hope that this example can help others.
See you soon
Executes a test sequence of labview (essentially running "
\Examples\TestStand API\Executing sequences using API\LabVIEW\Execute with no Model.vi process") I need to get a parameter returned in 'Settings', after the sequence has run.
My problem is that I get the value upon registration of the sequence and not the value after execution.
in order to obtain the values of the execution, you need access to execution. The following screenshot shows how to access.
Please note that this VI is lying will be called by TestStand. DO NOT USE THIS VI IN A CUSTOM USER INTERFACE!
EDIT: This dummy code shows how to read the string parameter 'Return '. Each parameter must be read separately with appropriate playback function.
I'm trying attributes of access (read and write) of the following:
The sequence steps
When you look at the documentation of the API, TestStand, the following functions are available:
I tried to use the SetValString and GetValString commands using the reference of the attributes, but it does not seem that the data is stored in the file.
I can't find the following information in the TestStand API:
- Where the attributes are stored in a property object?
- How can we access through the API?
No advice and no information is appreciated!
You must increment the number of changes to the file after that editing the sequence editor (or UI) won't refresh or mark the file, as amended. Use sequenceFile.AsPropertyObjectFile (). IncChangeCount().
SequenceFile attributes are stored in the SequenceFile.Data, not the object of SequenceFile object. You can change them in the Advanced tab of the properties of the file sequence dialog box.
Hope this helps,
I have a class of LabVIEW and the class contains a method that is a polymorphic VI, and that polymorphic instances has. If I put the scope of Private, and the polymorphic bodies access to the public, then I can force developers who use the class to use the polymorphic VI (and not to call directly the instances). It's great. I like that.
I have build a TestStand API that uses a polymorphic and instances as described above. I create a time of LabVIEW, with a type of call class member, and I target my class. TestStand does not support polymorphic VIs, meaning that polymorphs or its instances appear in the name of the Member list.
This means that, to support my LabVIEW users and my TestStand users, I need to create two separate APIs, which is not a place of happiness to be. No matter who encounter this and found a solution? Or I'm looking at this wrong?
It dawned on me later that we could actually change TS to be a static link to a particular instance VI via the polyVI. After all, you can manually select an instance specific polyVI. It would be just a way to declare in TS "link to this particular instance of the polyVI." Allowing the TS to say "I'm going through a public interface to join a private function."
So instead of linking "A.i" you could bind to ' PolyVI.vi: A.i ".
Actally, I develop my stuff under XP. Everything works fine.
Were a few machines running Windows7. The machines are broken in the custom user interface created with .net
during execution of the models modelsupport2.dll GetReportBody_CImplementation (old deriavte comes with TS2.0 rebuilt with CVI8.5)
I would like to set up a debug environment 2010 CVI, but fails because no TS-CVI-AP fp are installed on the machine.
If you try to open the TS-shipped Cvi UI project. CVI said that "Program Files (x 86) \National Instruments\Shared\CVI\instr\TestStand\API\xxx.fp.
are not present. I have a German Window7 that comes with "ERASMUS (x 86) \National... but there is no file xxx.fp to the left."
I tried to find somewhere on the disc hole without success.
--> How to get the api CVI TS installed on a German machine?
Another couriousity that I reallized running sequence one model with shipped 'Interface user Simple' in .net and cvi it crashes too.
If you try it with the editor and "Full Featured", it works fine.
Just turned off the brain and that, not asking why it turns on this machine, not the otherone.
Forget the above questions, it's nonsense. I received the TestStandxxx\API\CVI .fp as if I uesd to C/C++.
I got the bug with the debugger in the function "RecursiveSubProperties" of the module 'c_report.c '.
He planted when you call CA_FreeMemory (display).
It's really funny, because he has worked for more than 10! years now and only maschine broke or
as the proverb says: "everyone here puts his pants on the same way as you.
Have a nice day
P.S. If you can't find the bug, please do not hesitate to answer.
I want to develop an Interface with c# operator, but I don't know if I have to use the TestStand or motor TestStand API ActiveX API. In my opinion, the API ActiveX TestStand is more a sampler than the API of the engine, but the engine API is more flexible and more powerful.
In fact, us know not what's the different between the ActiveX API and the API of the engine, could you please tell me in this case I use the ActiveX API and in which case I should use the API of the engine?
What is the advantage and disadvantage of the ActiveX API and API engine separately?
Thanks in advance!
The user interface controls are ActiveX controls, designed to help you create a richer user interface, more quickly and easily. These controls are called in the engine API to interact with TestStand. The engine APIs are low-level APIs. The API UI APIs for user interface controls themselves and are usually higher level API. Step usually recommended to use the API of the engine type code non-interface user, such as code modules and code modules. The UI code must use the user interface for most controls.
Hope this helps to clear things up,
Maybe you are looking for
I want to restore my factory setting series L510 I have already tried: 1. hold "0" and press the power button and to hear some noise beep blabla, it brings me to his recovery assistant everything as before,. but now, after hearing the noise, it just
I got my Satellite 1900 303 for about 2 years and no problem. In the last month, I had a problem with him turn off his car suddenly and for no apparent reason. I checked virus and have found no virus. Can anyone suggest why I did this. I was wonderin
The only requirements for the card is a PCI-Express 2.0 compatible motherboard and a power of 600 watts with a PCI Express 6 power connector pins. The system is not a 600 Watt power required installed with the computer, but I bought one and has insta
My laptop comes with a 512 MB memory RAM PC2-4200. The BIOS memory has 448 MB only. That's it. 7/8 of the total amount. I replaced the memory with 2 sticks of PC2-5300 512 MB on both banks. Now the BIOS counts 886 MB. It is 7/8 of the total of 1024 M
I have a HP Officejet 4620e, my printer suddenly stopped printing black ink. I tried all the solutions I found online to no availl. The printer is out of warranty. Ink cartiridges are all genuine HP cartridges, black ink is the new cartridge and t