NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Communications Between Dotnet Framework and TestStand

Hey All,
I want to create a Windows Forms Application in VB Dotnet and use it to monitor a power supply. When a current range is exceeded a message will be sent to an asynchronous TestStand thread that will halt the program. What methods of communication exist between TS and the Dotnet framework?

I know of better ways to do this in TS, but the designers of this application insist on this. I am totally clueless on this subject and will definitely appreciate any help that is offered. I have experience in VB , TS and understand using assemblies/classes, but don't know how to pass information to an application with a UI.

TIA,
Jim


TS 4.1
VB Dotnet 2008

0 Kudos
Message 1 of 5
(2,952 Views)

Are you planning on building the Forms app into an .exe or an assembly? My first thought would be to look into passing the sequence context to the Forms app.

CTA, CLA, MTFBWY
0 Kudos
Message 2 of 5
(2,949 Views)

The forms application would be a complete exe with a UI.

Thanks,

James

0 Kudos
Message 3 of 5
(2,944 Views)

Do you want your exe to be completely independent of teststand code or is it ok for it to directly require teststand? Is it running on the same machine as the TestStand sequence?

 

If you want it to be independent of teststand that you could use .NET synchronization primitives, if you can use teststand in both then you could use the teststand synchronization manager and synchronization step types.

 

Hope this helps,

-Doug

0 Kudos
Message 4 of 5
(2,941 Views)

@dug9000 wrote:

Do you want your exe to be completely independent of teststand code or is it ok for it to directly require teststand? Is it running on the same machine as the TestStand sequence?

 

If you want it to be independent of teststand that you could use .NET synchronization primitives, if you can use teststand in both then you could use the teststand synchronization manager and synchronization step types.

 

Hope this helps,

-Doug


Hey Doug,

Thanks for the suggestion. After some experimenting, I will need synchronization after all. I was hoping to do it more simply, but this is what it will require.

Thanks Again,

James

0 Kudos
Message 5 of 5
(2,936 Views)