LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bools convert to 1-D array of bools

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

0 Kudos
Message 1 of 7
(2,935 Views)

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.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 7
(2,933 Views)

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?

0 Kudos
Message 3 of 7
(2,921 Views)

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.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 7
(2,917 Views)

Can you share your code?  I will help us in troubleshooting your issue.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 7
(2,886 Views)

I figured this out. I used a Build Array and works fine.

0 Kudos
Message 6 of 7
(2,874 Views)

@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.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 7 of 7
(2,861 Views)