08-30-2011 12:49 PM
I controled voltage output by vertical pointer slide In my vi.Now,I try to
control it by a series accurate values. I want to get output according to
the array's value.
08-30-2011 01:21 PM
Hi Yun,
1) You should type a descriptive title for your post and put the "main" text into the post. Putting the text into the title is annoying...
2) You should init the task before the loop and de-init after the loop. No need to do this with every iteration!
3) When trying to output an array of values you should use a FOR loop instead of the while loop and use the autoindexing feature of the loops to get the actual values from the input array...
08-30-2011 01:34 PM
Thank you!
could you give me an example?
Yun
08-30-2011 01:38 PM
08-30-2011 01:47 PM
I have seen those examples.But,I still have no idea to solve my problem.
Yun
08-31-2011 02:57 PM
Yun,
Here's a simple example I wrote that does what you are trying to do. You can wire an array into an Analog Out 1D DBL 1 chan N Samples. Then I wired the size of the array into the number of samples per channel on the timing vi.
Regards,
Danny F