09-13-2011 03:38 AM
Hi all ,
I'm using the NI 6536 ,
i want to make 2 analog output's using 2 diffrent buffers , in order to do so i made 2 tasks one for each AO
when i'm trying to use the 2'nd WriteAnalogF64 i'm getting an error.
Is there any example for using the 2 AO in the same time with 2 diffrent Buffers ?
Thank you ,
09-14-2011 01:57 AM
Solved 🙂
09-14-2011 02:10 AM
Hi Kobi,
we are all happy that you succeeded!
However, right now this thread does not provide much benefit for others - maybe you find the time to also post your solution? It might assist others facing similar problems...
09-14-2011 02:40 AM - edited 09-14-2011 02:42 AM
You are right , I'm sorry a bit pressure at work.
The AO generation that I needed to do is simply 2 AO with 2 different buffer.
Since we are creating 1 task and 2 AO channels to this task we need to decide 1 of 2 ways to implement it with our data layout in the WriteAnalogF64 function
1. The option of Group by channel
2. The option if group by scan number
this option will decide for out instrument how to arrange the buffer before the AO
my option is by channel lets say we need to output 10000 points , in order to create 2 AO buffers we will malloc 10000*2 channels*float64
Now points 0 - 9999 are for AO0 and points 10000 - 19999 are for AO1
by setting our rate we can calculate the time difference between 2 array cells and by doing so we can simply create any wave we want
Hope it will help , if any one want some assistant with AO & AI problems you can send me msg and I will try to help 🙂
I will try to create at home some good example and I'll upload it
Good day.