Jump to content

"No Regeneration" doesn't work


BenYL

Recommended Posts

Well, it seems no one knows this on the NI list, so maybe somebody here will.

The attached VI has two analog inputs and one analog output. An external signal generator sine wave is connected to the first analog input. This is routed to the analog output which is physically connected to the second analog input. I want fresh data every time so I've set the vi to "No Regenerator". The problem is the AO only outputs one cycle of the sine wave before stopping, even though it keeps being supplied with more sine wave. It seems if there is any gap in data being provided to it, it just shuts down.

Any ideas?

Thanks,

Ben

Two AI and one AO - No Regeneration.vi

Link to comment

Well, it seems no one knows this on the NI list, so maybe somebody here will.

The attached VI has two analog inputs and one analog output. An external signal generator sine wave is connected to the first analog input. This is routed to the analog output which is physically connected to the second analog input. I want fresh data every time so I've set the vi to "No Regenerator". The problem is the AO only outputs one cycle of the sine wave before stopping, even though it keeps being supplied with more sine wave. It seems if there is any gap in data being provided to it, it just shuts down.

Any ideas?

Thanks,

Ben

Hi Ben

Just looking at your code, are any errors reported?

I cant test this with my hardware but one thing I would look at playing with is the size of your DAQmx Buffer, try increasing it.

Link to comment

Well, it seems no one knows this on the NI list, so maybe somebody here will.

The attached VI has two analog inputs and one analog output. An external signal generator sine wave is connected to the first analog input. This is routed to the analog output which is physically connected to the second analog input. I want fresh data every time so I've set the vi to "No Regenerator". The problem is the AO only outputs one cycle of the sine wave before stopping, even though it keeps being supplied with more sine wave. It seems if there is any gap in data being provided to it, it just shuts down.

Any ideas?

Thanks,

Ben

A bit confused. After loading your example, the regen was set to "Allow Regeneration" but in your post you say you are trying to turn it off. :wacko:

Its worth noting. If "Do Not Allow Regeneration" is selected and you are in "continuous" mode. You have to write to the buffer fast enough otherwise an error will occur and the output will stop (which sounds similar to what you are experiencing.

Edited by ShaunR
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.