07-24-2008 03:23 PM
07-24-2008 04:47 PM
I'm a little confused about your question but a lot confused about your program. You have said earlier that you were going to be using a 9472 so you should be using digital I/O. Even if you were using analog, then you've made things several times come complex than it needs to be. No reason at all for the basic function generator and all of that DAQmx timing. Just use Analog>Single Channel>Single Sample and wire a scalar to it. You can also set multiple channels.
For writing to digital, select Digital>Multiple Channels>Single Sample>1D Boolean. With the cluster, wire up a Cluster to Array function and wire the output of that to the DAQmx Write.
With each iteration of the loop, you would be doing a DAQmx Write but if the data is the same as the last iteration, that's not a problem at all. You should have the DAQmx Create Channel, DAQmx Start Task and DAQmx Stop Task outside the loop.
07-24-2008 05:34 PM
07-24-2008 07:32 PM
07-25-2008 11:21 AM
07-25-2008 11:36 AM - edited 07-25-2008 11:43 AM
07-25-2008 11:55 AM
07-25-2008 12:39 PM
07-25-2008 01:03 PM - edited 07-25-2008 01:03 PM
And this is what I was talking about to generate the basic pattern. Get rid of the Boolean cluster and the array you made from it. The DAQmx Write can be changed from 1D Bool to 1D U16.
07-25-2008 01:26 PM