02-27-2012 08:55 AM
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
02-27-2012 10:09 AM
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.
02-27-2012 10:53 AM
The forms application would be a complete exe with a UI.
Thanks,
James
02-27-2012 11:21 AM
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
02-27-2012 02:44 PM
@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