LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

It's possible to access Teststand Variables (When it's running) in a VI without change this sequence in Teststand ?

It's possible to access Teststand Variables (When it's running) in a VI without change this sequence in Teststand ?
With this VI, I launch teststand with a sequenceFile, but I Would like to access Teststand Variable !
Please, Help Me.
Thanks.
0 Kudos
Message 1 of 9
(3,895 Views)
You'll have to explain what you want to do...

Define "access TestStand variables"

Are you talking about Local variables, Steps, Serial number, Global variables?

Also do you want to see the value or do you want to change the value?

You can create Indicators inside a vi that is called by the sequence to display the value and have a button (like "Continue") to give you time to read it.

If you want to change the value, you can also create a prompt either within the sequence or a pop up message (within the sequence) that can display the value.

Actually, you can do this either within TestStand or within Labview. But as I mentionned earlier, I would have to know what you want to do.

Also depending on the version of LabView, you can manipulate Test
Stand variables using the Sequence Context within a vi.

Many things are possible... The limit is our imagination.

Explore the possibilities of TestStand & LabView...
... and have fun!

-JLV-
Message 2 of 9
(3,895 Views)
I want to Read the Values of the locals Variables in a sequence already started.
I use a Labview application to read this Values.
And I mustn't change the Teststand sequence.

You can create Indicators inside a vi that is called by the sequence to display the value and have a button (like "Continue") to give you time to read it. (I can not do that!!!!!!!!!!!!!!!!)
0 Kudos
Message 3 of 9
(3,895 Views)
Okay. I understand that you cannot change the sequence in TestStand. But you can change the vi, right?

All you want to do is read the value in LV, right?
Do you want to display it or manipulate it?

In either case, you do not have to put a button to Continue... I didn't know if that values changes or how quickly it changes. I'll assume it is static and you simply want to read the value and use it as part of the vi.

If that is the case, then you can pass the TestStand variable to the vi. Two ways of doing this (in LV7).

1. Use a Sequence Adapter inside your vi to pass the value.
2. Add a terminal on the connector pane and place a reference to it within TestStand..... OOPS... Sorry skip this one. No change to TestStand sequenc
e.

Then use the sequence adapter inside the vi. The local variable within TestStand is probably already defined, so you'll have to index it within LV vi, as :

Locals.name_of_variable1
Locals.name_of_variable2
...
Locals.name_of_variable_x

You only need on Sequence Context, but one property sub-vi for each variable that you want to read.

and no change to your TestStand sequence..

-JLV-
Message 4 of 9
(3,895 Views)
Thanks for your response!
Yes I want just to read this value, but this value change during the sequence.

I don't understand your Sequene Adapter, what is it ?
0 Kudos
Message 5 of 9
(3,895 Views)
I hope that you understand my Problem.
The vi, which I want to change isn't in the teststand Sequence.
This vi is an independent application.
0 Kudos
Message 6 of 9
(3,895 Views)
"I hope that you understand my Problem.
The vi, which I want to change isn't in the teststand Sequence.
This vi is an independent application."


Okay...

This changes things...

You mean that you want to run a sequence which has a bunch of vi's. While it is running, you want to run a totally new vi, which is not part of the sequence, and use this new vi to read the values within the "running" sequence.

Are the variables "local"?

If so, are you allowed to set the variables to "Propogate to Subsequence" within TestStand? ...
Hummm...... no... I don't think that will help..

Let's see. I have to think about that one.

First confirm that I understand the situation correctly..

🐵

-JLV-
Message 7 of 9
(3,895 Views)
Yes Joe, you are the best, you understand good my problem.
And with my independent application, I want to read a value in a running sequence (teststand). This value is in Local variable.

Have you an Idea, please ?
0 Kudos
Message 8 of 9
(3,895 Views)
Unfortunately I cannot think of any trick that could get the value from outside a running sequence.

At least I can't think of anything simple. The difficulty is how to reference that value.

There's no easy way of doing what you want to do. You'd need some sort of debugger to look at the TestStand sequence as it is running... And I don't even know if that would work..

- sorry -

JLV
Message 9 of 9
(3,895 Views)