Jump to content

Continuous digital train output with DAQmx


Raymond Tsang

Recommended Posts

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

Link to comment

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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.