| View previous topic :: View next topic |
| Author |
Message |
otinanai
Joined: 04 Apr 2009 Posts: 6
|
Posted: Fri Apr 24, 2009 4:31 pm Post subject: Triggering ADCs in Thread |
|
|
Hallo!
We use a Toro card.
We have a problem when using the external triggering and trying to sample from the ADCs.
When we use Ain.Get() inside a function which is called from the IIMain, everything works fine when giving an external signal.
But when the Ain.Get() is called inside a thread, the external signal does not seem to start the sampling and the Ain.Get() does not return any buffer.
Can you please help us ?
Thank you! |
|
| Back to top |
|
 |
jhenderson Site Admin
Joined: 07 Mar 2006 Posts: 1178 Location: So. Cal. USA
|
Posted: Sat Apr 25, 2009 7:23 am Post subject: |
|
|
External triggering is a firmware function and is completely independent of software notions such as thread context. Therefore, it is impossible for the triggering mechanism to be thread-aware.
I suspect that you are inferring that the trigger mechanism is not working because data does not flow or some other side effect. But, if you instrument your application without relying on communications such as PCI traffic, you will see that the trigger works fine regardless of thread context. _________________ Jim |
|
| Back to top |
|
 |
|