03-21-2007 07:01 AM
03-21-2007 08:28 AM - edited 03-21-2007 08:28 AM
What don't you understand about representing digital output as a number? If you have 8 bits, that can be represented in binary as ranging from 00000000 to 11111111. In hex, this is 00 to FF. In decimal, from 0 to 255. The DAQ Assistant by default takes an array because you can have pattern output and that implies that the bit values change. With on-demand output, just take an int and use the Build Array function.
Message Edited by Dennis Knutson on 03-21-2007 07:29 AM
03-21-2007 10:24 AM
I understand binary range , decimal range and all. I wanted to know how it interprets each element of array.i.e whether each element of array for all port pins or each element to each port pin .
I tried ur example. It is working. Thanks
still i have some doubts
I have attached two VI. The first VI "Digital output-1.vi" where i am giving a 1-D array of 3 elements which is not working
the second attachment "Digital output-2.vi" i am giving 1-D array of 1 element which is working without any problem.
I have used Build array function in both example.
In summary 1-D array with single Element input the DAQ will work but 1-D array with three element ( any number other than one ) the DAQ is not working.
Can u pls verify and let me know the reason.
03-21-2007 10:37 AM
03-21-2007 10:40 AM