Quantcast
Channel: All NI TestStand posts
Viewing all 24637 articles
Browse latest View live

Re: WTH happened to NI, LabView 2016 64 bit and 32 bit in Windows 10?

$
0
0

Hi Imoseley,

 

I understand that having to do all this troubleshooting for a month must have been very frustrating. I would recommend reaching out to our support team for help with many issues that you are having. Our team of Applications Engineers will always be happy to help troubleshoot with you and make sure that you are successful in your projects. I hope we can make your experience with our products more enjoyable and less tiresome.

 

Michael B.

Applications Engineer

National Instruments 


Pass VI reference in and out of TestStand using SetPropertyValue

$
0
0

I want to open a VI with one call from a TestStand step and close the vi from another TestStand Step.  I want to store the vi reference back in a TestStand FileGlobal using the SetPropertyValue vi and retrieve the vi reference with the GetPropertyValue vi.

 

I've found that if I simply pass the vi reference that the prototype in TS makes it a U32 type and it works perfect.  I don't want the user of my step type to have to manage the storage of the vi reference so I want to save it away with the SetPropertyValue.  If I try to make the SetPropertyValue instance be of type U32 the VI breaks and won't attach.  I found that casting the vi reference to a U32 works and the value passes.  But when I pass it back into the close vi the value is incorrect and the close vi errors. 

 

How can I pass a vi reference in and out of TS using the Get/SetPropertyValue vi?

 

Thanks,

Mick

add step datasource to report file

$
0
0

Hello,

 

I am trying to create a custom report by editing the NI_SimpleTextReport sequence.

I want to add some column headers to the report and have managed modify the Model Plugin - Initialize sequence to add Limits.High and Limits.Low but when I add DataSource no value is logged just the string <Missing>

 

Could anyone please point me in the right direction?

any help would be very much appreciated!

 

Cheers,

 

Iain

Re: LV Cluster to TestStand to keep element order

$
0
0

BANG... BANG... BANG... this is my head banging the table. 

 

Its the rare moment when you use a tool for quite a while and then you realize that you missed something basic what could have done your life a lot more easier in the past Smiley Happy

 

Thanks man, you have saved the day!

Re: Pass VI reference in and out of TestStand using SetPropertyValue

$
0
0

Why not run it in a new thread and then close it by setting a variable?  This is typically how it's done.

 

There are hundreds of examples out there if you google: Run VI in New Thread TestStand

 

Maybe I don't understand your purpose?  If you explain why then maybe I could give a better answer.

 

Thanks,

Re: Pass VI reference in and out of TestStand using SetPropertyValue

Compiling User Interfaces MFC

$
0
0

Hello,

I am starting with the examples found in the UserInterfaces/FullFeatured/C++(MFC)  Teststand code that came with the installation.  I would like to be able to re-compile these projects to ensure that my setup is correct in visual studio.

 

The following;

// TestStand API, TestStand UI ActiveX controls API, and utilities for using these APIs in C++
// The file is located in <TestStand>\API\VC

is commented in one of the cpp file, and the same path is referenced several times in the project paths.  I cannot find this path or folder anywhere.  The only API folder I have is here \TestStand 2017 (32-bit)\Examples\TestStand API/

 

Where are these files located? Or are there other settings I need to enable?

 

Thanks in advance.

 

Adding Elements To A Container Thats An Element In An Array

$
0
0

I'm trying to programmatically (using expressions) create an Array of Containers and set the container elements using an expression:

ThisContext.AsPropertyObject.SetPropertyObject("Locals.IO",PropOption_InsertIfMissing,ThisContext.Engine.NewPropertyObject(PropValType_Container,False,"",0)),
ThisContext.AsPropertyObject.SetPropertyObject("Locals.IO.IOToBeProcessed",PropOption_InsertIfMissing,ThisContext.Engine.NewPropertyObject(PropValType_Container,False,"",0)),
Locals.SetValString("IO.IOToBeProcessed.Name",PropOption_InsertIfMissing,""),
Locals.SetValNumber("IO.IOToBeProcessed.Modbus Address",PropOption_InsertIfMissing,0),
Locals.SetValString("IO.IOToBeProcessed.Type",PropOption_InsertIfMissing,""),
Locals.SetValString("IO.IOToBeProcessed.Raw Signal",PropOption_InsertIfMissing,""),
Locals.SetValNumber("IO.IOToBeProcessed.Raw Min",PropOption_InsertIfMissing,0),
Locals.SetValNumber("IO.IOToBeProcessed.Raw Max",PropOption_InsertIfMissing,0),
Locals.SetValNumber("IO.IOToBeProcessed.Scale Min",PropOption_InsertIfMissing,0),
Locals.SetValNumber("IO.IOToBeProcessed.Scale Max",PropOption_InsertIfMissing,0),
Locals.SetValString("IO.IOToBeProcessed.Tag",PropOption_InsertIfMissing,""),
Locals.SetValString("IO.IOToBeProcessed.Notes",PropOption_InsertIfMissing,"")

The above works fine, but it does not create IOToBeProcessed as an array of the elements I added after creating that container. If I change my code to this:

ThisContext.AsPropertyObject.SetPropertyObject("Locals.IO",PropOption_InsertIfMissing,ThisContext.Engine.NewPropertyObject(PropValType_Container,False,"",0)),
ThisContext.AsPropertyObject.SetPropertyObject("Locals.IO.IOToBeProcessed",PropOption_InsertIfMissing,ThisContext.Engine.NewPropertyObject(PropValType_Container,True,"",0)),
Locals.SetValString("IO.IOToBeProcessed.Name",PropOption_InsertIfMissing,""),
Locals.SetValNumber("IO.IOToBeProcessed.Modbus Address",PropOption_InsertIfMissing,0),
Locals.SetValString("IO.IOToBeProcessed.Type",PropOption_InsertIfMissing,""),
Locals.SetValString("IO.IOToBeProcessed.Raw Signal",PropOption_InsertIfMissing,""),
Locals.SetValNumber("IO.IOToBeProcessed.Raw Min",PropOption_InsertIfMissing,0),
Locals.SetValNumber("IO.IOToBeProcessed.Raw Max",PropOption_InsertIfMissing,0),
Locals.SetValNumber("IO.IOToBeProcessed.Scale Min",PropOption_InsertIfMissing,0),
Locals.SetValNumber("IO.IOToBeProcessed.Scale Max",PropOption_InsertIfMissing,0),
Locals.SetValString("IO.IOToBeProcessed.Tag",PropOption_InsertIfMissing,""),
Locals.SetValString("IO.IOToBeProcessed.Notes",PropOption_InsertIfMissing,"")

This sets the property "AsArray" for the container, so IOToBeProcessed would then be created as an array, which is what I need. Unfortunately, TestStand then starts complaining that I can't add elements to the container as its part of an array:

The post-expression for the step 'IO' could not be evaluated.
Error in call to TestStand API member 'PropertyObject.SetValString'.
You cannot create a subproperty in an item that is not a container.
Error accessing item 'IO.IOToBeProcessed.Name'.

Where am I going wrong, how do I get IOToBeProcessed to be an array of said elements?

 

Thanks in advance


How to Read and Write 2D Array from Teststand in Labview using Set and Get property Value method

$
0
0

Hi All,

 

I am trying to read 2D Array from from Teststand using  "Get Property Value"  VI Function in labview

 

but I am facing error.

 

Thanks in advance ,

SV.

Re: How to Read and Write 2D Array from Teststand in Labview using Set and Get property Value method

$
0
0

Its Quiet Possible , using Get/Set Val variant (In Property Object).

Its always good to share the code you developed and the error you are facing to get the proper response.

Re: How to Read and Write 2D Array from Teststand in Labview using Set and Get property Value method

$
0
0

i am using normal Teststand API Function to test. 

Re: How to Read and Write 2D Array from Teststand in Labview using Set and Get property Value method

$
0
0

You can create your own Module for this purpose in LabVIEW

 

Snippet to Set Value.

 

TS-UpdateVariable.PNG

Re: Write data to Text File generates error

$
0
0

To Open File use this snippet information

 TS_CreateFileRef.PNG

 

 

Re: How to Read and Write 2D Array from Teststand in Labview using Set and Get property Value method

$
0
0

Is this function will set and Get 2D Numeric Array Value from Labview to Teststans ? 

 

Re: How to Read and Write 2D Array from Teststand in Labview using Set and Get property Value method

$
0
0

I have used and worked fine for 1D Array, same should work fine for 2D Array so that's the reason we used Variant instead of Specific type.


Re: add step datasource to report file

$
0
0

Hello again

It isn't the data source as I have realized it is the measurement value

(i.e. the value that is included when you select 'include measurement' in the options of the default report)

Thanks for looking

Iain

Re: Pass VI reference in and out of TestStand using SetPropertyValue

$
0
0

Thanks for the advice.  I think with a little code rewrite I can use the method of launching the vi in a new thread and monitoring/writing TS variables.  

I'm still not sure why I cannot pass the VI reference but the method you recommended is just as good a solution.

 

Thanks,

Mick

 

Re: add step datasource to report file

$
0
0

Thank you all for you help.......

I just needed to use Numeric.

Re: Pass VI reference in and out of TestStand using SetPropertyValue

$
0
0

After some trial and error I've found that the new thread technique is not going to work for me.  The issue is that to create a new thread requires calling a seq call.  I need to create a step type that calls a vi.  I don't believe there is any way to call a step type in a new thread.

How can I pass the VI reference from/to TS using Get/SetPropertyValue in LV?

 

Thanks,

Mick 

Re: Pass VI reference in and out of TestStand using SetPropertyValue

Viewing all 24637 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>