08-17-2012 06:57 PM
I have the output of and AND block that needs to go to a DAQ Assistant that is the Output of one channel of a 9472 8pt. Discrete output module.
I get an error that the source is Boolean and the the sink is 1-D arry of Bool.
How do I fix this?
Thanks
08-17-2012 07:07 PM
You have to change the configuration of the DAQ to single port or initialize an array at the beginning and replace the 0 index with the boolean you want to change.
08-18-2012 12:03 AM
I have configured the DAQ Assistant as only one channel of the 8 channel discrete output. I have four separate DAQ assistants to cover the four outputs I Need. Is this correct?
Other than that How would I Create and initialize an array?
08-18-2012 12:08 AM
I would recommend you to go through the basic materials and also the LabVIEW examples there you can find sample program which suit your application.
08-20-2012 08:07 AM
Can you share your code? I will help us in troubleshooting your issue.
08-20-2012 10:04 AM
I figured this out. I used a Build Array and works fine.
08-20-2012 11:00 AM
@GordyandJulie wrote:
I figured this out. I used a Build Array and works fine.
Build array is not the recommended one try to replace build array with replace array subset by initializing the size of the array you are going to use. Make a search it will help you to have a good coding style.