NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I disply multiple window based on previous window value using C#.NET

hi every one,
                  Please give me solution for above mentioned problem.
how can I  displying window which accepts input from user, validate(bool,string,etc) the same and display the other window based on result. At last update the result in testStand variable.
 
regards
Raghavendra k
0 Kudos
Message 1 of 7
(5,584 Views)
Hi Raghavendra k,
 
you should try this. Init your view with variables from TestStand. I would use Locals or SequenceFile Globals if there is use in a Subsequnce. All the variabels should be stored in a container for more clarity. When there is a update on your view control the based TestStand variable will be updated, too. So your variables are always on top. To get a access to variables you can use the SequnceContext and the PropertyObject Class. 
If you have understood this stuff the setting of the result is a children's gameSmiley Happy
 
Hope this helps
 
Greetings from the lake of Constance, Germany
Juergen
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 7
(5,579 Views)

hi,

Thanks for reply. But I could'nt understand your stuff.Please can you explain me with an example.So, can get more clarity on this.

Please help.... I am new to Test Stand

regards

rkk

 

0 Kudos
Message 3 of 7
(5,523 Views)
Hi Raghavendra k,
 
Try this "stuff". Here is a small example.
I have used VS2005 and TS4.0
 
Greetings
juergen
 
--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 7
(5,518 Views)

Hi ,

Thanks for your reply. While call the .dll mehod , the following error occred:

" The .NET method 'showDialog' could not be accessed".

Please can you let me know solution.

My code looks like.

objDotNetModule.SetAssembly(

DotNetModuleAssemblyLocations.DotNetModule_AssemblyLocation_File, "D:\\CTestStandDialog\\CTestStandDialog\\bin\\Debug\\CTestStandDialog.dll");

objDotNetModule.ClassName =

"DialogMaster";

objDotNetModule.CreateObject = true;

objDotNetModule.MemberName = strMemberName; // here memeber name is "ShowDialog"

objDotNetModule.MemberIndex = 0;

objDotNetModule.MemberType = DotNetModuleMemberTypes.DotNetMember_CallMethod;

bool bReturnValue, bReturnValue1;

Type typeClass =typeof(CTestStandDialog.DialogMaster);

Please correct, if I am wrong.

regards

RKK

0 Kudos
Message 5 of 7
(5,505 Views)

Hi,

Is my example running ?

If yes, is the step "Constructor" running ?
I wonder why

objDotNetModule.CreateObject = true;

this should be false, if "constrctor" was running

Best is: Post your seq.

Greetings

juergen

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 6 of 7
(5,501 Views)

it works, u r such a genius

0 Kudos
Message 7 of 7
(103 Views)