Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6730

Overcurrent condition example, help improve it.

$
0
0

 

 

I have this on real life running and it works. but i was wondering if it could be improve or another approach can be taken.

 

This is the scenario:

 

You have a test and you want to monitor the current by quering your power supply and detect an overcurrent condition, if an undercurrent condition occurs, quickly turn off the power supply and exit the test.

 

So we have the Main thread that run for simulation purposes a pass fail pop up. And a Thread to  query the power supply and check overcurrent conditions.

 

Both threads need to communicate, because if everything is fine and Main thread finishes, it should send a notification to overcurrent thread to tell her that it is ok now exit.

 

that way teststand will be able to exit properly and not hang waiting for a thread to complete.

 

please check it out. And comment if it is ok or if it needs some other approach.

 

thanks


Viewing all articles
Browse latest Browse all 6730

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>