04-21-2009 10:32 AM
Hi,
I have a motorised stage that sets a digital I/O port to 5V when it starts the movement. When the final position is reached the digital port is set again to 0V.
I want to accquire the signal with a constant frequency by USB-6210 only within this time window when the delay is moving. Triggering the data accquisition via this 5V signal is easy. Unfortunately, I haven't found anything like stop trigger (function that would start accquisition when signal is high and stop when low).
The time window when the delay is moving is not constant, therefore I cannot set a fixed number of samples.
I was already thinking about starting a second task just to monitor if a port sets to 0V and that stop the accquisition manually. but I guess that it is not the best solution.
Is there a nicer way to do this?
Thanks a lot for your suggestions.
Best regards
Rafal
04-22-2009 03:34 AM
Hi,
I found the solution here:
http://forums.ni.com/ni/board/message?board.id=250&message.id=10148&query.id=260425#M10148
This forum is geil.
Chers