# PCSDK-Task State

**URL:** <https://tech-community.robotics.abb.com/t/pcsdk-task-state/4781>\
**Category:** Developer Tools\
**Created:** [April 11, 2012, 8:35am UTC](https://tech-community.robotics.abb.com/t/pcsdk-task-state/4781 "2012-04-11T08:35:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![avicohen](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@avicohen](https://tech-community.robotics.abb.com/u/avicohen)\
**Post date:** [April 11, 2012, 8:35am UTC](https://tech-community.robotics.abb.com/t/pcsdk-task-state/4781/1 "2012-04-11T08:35:57Z")

</div>

Hi,

I have 2 tasks in my system one is running and one is not.  
How can i get this information from PC SDK ?

I find a code example:

ExecutionState state = task.ExecutionState;

if (state == ExecutionState.Started)

but it dose not pass compilation  
ExecutionState unknown ?  
Thanks  
Avi.

---

<div class="post-metadata">

**Author:** ![John\_Wiberg](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/john_wiberg/32/1485_2.png) [@John\_Wiberg](https://tech-community.robotics.abb.com/u/John_Wiberg)\
**Post date:** [April 13, 2012, 10:21am UTC](https://tech-community.robotics.abb.com/t/pcsdk-task-state/4781/2 "2012-04-13T10:21:30Z")

</div>

Very good question.

Tried just now and couldn’t find a good way to get it either.  
I’m going to talk to R&D about this one.

---

<div class="post-metadata">

**Author:** ![avicohen](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@avicohen](https://tech-community.robotics.abb.com/u/avicohen)\
**Post date:** [April 15, 2012, 10:39am UTC](https://tech-community.robotics.abb.com/t/pcsdk-task-state/4781/3 "2012-04-15T10:39:06Z")

</div>

Thanks John

---

<div class="post-metadata">

**Author:** ![avicohen](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@avicohen](https://tech-community.robotics.abb.com/u/avicohen)\
**Post date:** [May 1, 2012, 10:32am UTC](https://tech-community.robotics.abb.com/t/pcsdk-task-state/4781/4 "2012-05-01T10:32:47Z")

</div>

any news ?

---

<div class="post-metadata">

**Author:** ![John\_Wiberg](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/john_wiberg/32/1485_2.png) [@John\_Wiberg](https://tech-community.robotics.abb.com/u/John_Wiberg)\
**Post date:** [May 3, 2012, 2:02pm UTC](https://tech-community.robotics.abb.com/t/pcsdk-task-state/4781/5 "2012-05-03T14:02:23Z")

</div>

Only bad ones, I’m afraid.  
This is not implemented. I also asked if there are any good workarounds and they couldn’t see any.  
I’ve put it in as a feature request for future releases.

---

<div class="post-metadata">

**Author:** ![avicohen](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@avicohen](https://tech-community.robotics.abb.com/u/avicohen)\
**Post date:** [May 6, 2012, 8:41am UTC](https://tech-community.robotics.abb.com/t/pcsdk-task-state/4781/6 "2012-05-06T08:41:55Z")

</div>

Thanks

---

<div class="post-metadata">

**Author:** ![John\_Wiberg](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/john_wiberg/32/1485_2.png) [@John\_Wiberg](https://tech-community.robotics.abb.com/u/John_Wiberg)\
**Post date:** [May 11, 2012, 8:14am UTC](https://tech-community.robotics.abb.com/t/pcsdk-task-state/4781/7 "2012-05-11T08:14:12Z")

</div>

Unrelated question moved to here:  
[http://forums.robotstudio.com/forum\_posts.asp?TID=6465](http://forums.robotstudio.com/forum_posts.asp?TID=6465)
