07-23-2008 12:09 PM - edited 07-23-2008 12:13 PM
07-25-2008 03:38 AM
07-25-2008 04:40 AM
07-25-2008 07:59 AM
Hi,
Thank DanBrowne and Graziano for your replies. Here is my vi file. And could you check for me if that's the only "format" (which is kind of complex) for the DO N Chan N Samp, and I do believe the subVI can be optimized. Sorry I didn't figure it out based on the example, and thank you for your advice.
Best wishes
Bo
07-28-2008 11:35 AM
Hi Graziano,
But the control of the DO N chan N samp is 2D array, so I'm not quite clear about your words. In your example, there is a constant output for 8 channels and it needs a 1D array. Is there any simple format of the data? Thanks.
Best wishes
Bo
07-29-2008 01:20 AM
07-29-2008 06:20 AM
Hi Graziano,
Thank you for your replay. So if I want to use one byte to handle 8 channels, I need to set the DO as "Digital 1D Wfm NChan NSamp", is that correct? But in that case I have to generate a waveform for the data, and it makes things complex again... I'm not very clear about that. Thank you for your patience.
Best wishes
Bo
07-29-2008 09:58 AM
07-29-2008 10:07 AM
07-29-2008 10:18 AM
Hi,
Thank you, it works! I set the Ling grouping of DO as "one channel for all lines", the DAQmx Write as "Digital 1D U8 1Chan NSamp", and the lines of the physical channels as "Dev1/port0/line0:7". Thank you for your advice!
Best wishes
Bo