Raymond Tsang Posted February 18, 2009 Report Share Posted February 18, 2009 Hi LAVAs, I encountered some problems when I'm trying to generate digital pulse trains to drive an LED via a PCI-6250 card. I want to implement it as two separate VIs: one starts pulsing the LED, the other stops it. (I tried to set "Continuous Samples" in DAQmx Timing.vi, but pulsing stops when the VI quits.) What now I can do is to generate one pulse train per run of the VI. (Screenshot attached) Any thoughts or suggestions? Ray Quote Link to comment
JamesP Posted February 19, 2009 Report Share Posted February 19, 2009 Suggestions: -"DAQmx clear task" will stop the task from continuing when the VI is finished. -Look in to the functionality of "DAQmx Create Task", specifically the "auto cleanup" input. Quote Link to comment
Raymond Tsang Posted February 20, 2009 Author Report Share Posted February 20, 2009 QUOTE (JamesP @ Feb 19 2009, 07:05 AM) Suggestions:-"DAQmx clear task" will stop the task from continuing when the VI is finished. -Look in to the functionality of "DAQmx Create Task", specifically the "auto cleanup" input. Thanks for your suggestion, James! I tried to remove "clear task" and added "create task" with "auto cleanup" disabled. However, after the VI ended, the LED pulsing stopped, and when I started it again, LabVIEW complained about "resource being reserved" or sth like that. I'll keep trying... Ray Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.