NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Parameter passing problem between TS-LabView

Hi
 
I am getting crazy with this problem. Basically I have a vi, in which you can change some parameters of a step type. I put this step type into a seq, open the Edit substep (the problematic vi), and I can change some parameters, respectively: Compare, Command, Command_params and MasterData (see attached image). When I press the OK button in my "Edit" vi, the parameters are saved into the TS variables of my step type, without failure.
The problem pops up only, when I push the CANCEL button, I expect that all the TS parameters keep the original value. This is the case...except one variable, called "Compare". All the others keep the previous values, so Command, Command_params and MasterData are ok. "Compare" is initialized to empty string 😞
 
Originally "Compare" was a Boolean, it was always initialized to FALSE, when I clicked the cancel button.  I thought that is the problem.
Then I changed it to Ring. It was initialized always to 0.
Then I tried numeric, enum etc, always was initialized to 0, or in case of string, an empty string.
 
Why is it so? I attached my vi, you can look into it.
 
Download All
0 Kudos
Message 1 of 3
(3,283 Views)

Hi,

In your first frame, you have connected all the other inputs to there respective outputs using local variables except for one, Compare and Compare out.

Shouldn't you connect this together so the output picks up what you have inputed to the VI.

What are you inputing into Compare, because if you are passing an empty string then that control seems to except the empty string, Even though you have the setting Allow Undefined strings disabled.

I'm using LabVIEW 7.1

Regards

Ray Farmer

Regards
Ray Farmer
Message 2 of 3
(3,273 Views)

Hi Ray,

Yes, that was the problem. In the meanwhile I have found it too. But I still don´t understand, that when I click Cancel, why does any of the outputs change???

By the way, many thanks 😄

0 Kudos
Message 3 of 3
(3,269 Views)