Jump to content

Can I know when the DO updating happens in Allow regeneration mode?


Bo Fu

Recommended Posts

Posted

Hi all,

I'm using lv 8.5 in winXP, and I'm doing a DAQ task. I created a synchronized AI/DO task, and wanted to have it run for a long time (for hours@1M Hz). I'll change the DO commonds based on some feedback, and acquire the corresponding AI signals. I have 2 options to do that with my NI m-series DAQ card. In "Do not allow regeneration mode", I know when the updating happens, and I can handle the CORRESPONDING AI, but I have to keep writing to the FIFO for hours, which may harm the hardware (in my thought); or I can use "Allow regeneration mode", because the updating does not have to be fast, as long as I know which is its corresponding AI (when DO updating happens). So is there any way to know the time of updating in allow regeneration mode? or is there any better idea to implement the updating? Thank you!

Best wishes,

Bo

  • 3 months later...
Posted

Has anyone got back to you on this yet? I use regeneration with an AO board to output a continuous sine wave and do updates to the FIFO on the fly to change the amplitude. If some code like that would be helpful, I could certainly post it here.

Posted

I would like to see some code like that, if you don't mind. A screenshot or something would be most helpful!

Here you go! I'm looping the update because I don't want a big step change in amplitude (can cause my acoustic drivers to blow a fuse) so I ramp the change over a fixed number of steps. I'm using three PXI-6733 AO boards synchronously to output to 18 audio amplifiers that drive the speakers. By changing the offset location, you can insert the new data anywhere in the FIFO you want. Note that I'm not using the card FIFO for regeneration but rather the PC memory.

Screen.rtf

Posted

AeroSC, you have officially saved my bacon!!worshippy.gifworshippy.gifworshippy.gif

I've been working about 8 hours now on a solution to my own problem... your code totally fixes it. I have a very similar application requiring deliate voltage changes- thank you SO MUCH!!

Bert

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.