I looked at your diagram. I'm not sure what problem you are having, but
keep in mind that you don't have to have both functions happening in the
same while loop. I would recommend that you don't do it that way. With
two loops, your acquisition can run in its loop regardless of what the
user does. The way it is drawn now, if you are using buffered
acquisition, then any holdup in the analog output can cause your AI read
to wait, and thus your analog input buffer fills up, and an error
occurs.
Make another while loop with the analog output VIs in it. You can use
the same variable to end this loop as the last one. Therefore, your
analog input and analog output loops are independent of each other,
except for their loop termination logic.
Independence of loops is sometimes important. In this case, it makes
sense for your analog input to run regardless of anything else
happening.
Hope that helps.
Mark
In article <39a348a5@newsgroups.ni.com>,
"Tapio Gr�nfors" wrote:
>
> Many thanks, but this is not piece of cake for me :-< I have tried
modify
> several examples from LV own base, and seamless speed AI with plotting
and
> PSD est. is easy, as well as speedy AO with user selectable waveforms
and
> launching, but putting them both together crashes. If somebody still
want
> look my sketch:
> http://bscw.uku.fi/pub/english.cgi/d221967/LVstimu2r2_70.jpg
>
> mark.wysong@ae.ge.com wrote:
> >This sounds easy enough. The analog input should not be affected by
an>analog
> output. Allow the user to either create a waveform or select
a>predefined
> waveform. This could be an array of points, or points>generated by
other
> VIs. Using the Analog Output VIs, you can output an>array of points
on the
> DAC (only one; you can't have two different>waveforms on 2 different
DACs
> at the same time without significant>effort) at a specified rate, and
there
> you go.>>Mark>>In article <39a270fd@newsgroups.ni.com>,> "Tapio
Gr�nfors"
> wrote:>>>> Hi! I am looking a (simple) vi or
'idea'
> how to write it for system>where>> one>> analog channel is read
continously
> (and PSD estimated) and where user>> can give short predefined analog
output
> waveforms. User have to have>> ability to choose one of 5-8 output
waveforms
> and write it one of two>> output channels. I have E-series card.>>>>
All
> ideas welcome, thanks, Tapio G.>>>>>>>Sent via Deja.com
http://www.deja.com/>Before
> you buy.
>
Sent via Deja.com http://www.deja.com/
Before you buy.