LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

U32 to binary array causes error

I'm programming for the PCI-7833R FPGA board.
When I wire a U32 Control to the "Number to Boolean Array Function" the output is broken with the error
Arrays must be fixed size for this target... Why the error as a U32 generates a fixed 32 bit boolean array?
 
0 Kudos
Message 1 of 4
(2,901 Views)

If the control is U32 the array size is 32, if the control is U16 the array size is 16, etc.

What is the "Number to Boolean Array Function" output connected to? Resize your array to meet the specifications of the input the "Number to Boolean Array Function" output is connected to

Message Edited by AndrewAlford on 11-17-2005 02:00 PM

Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 2 of 4
(2,889 Views)

I assume you are developing your FPGA VI at this point. For fixed size arrays to work properly you must enable an option in the VI properties. (This option is normally enabled when you create a new VI with LabVIEW FPGA.)

Open up the VI properties and switch to the Execution options. The check box for 'Autopreallocate arrays and strings' should be checked. If you do not have this check box in the execution options page, there is an error in the installation of LabVIEW FPGA with some missing entries in the LabVIEW INI file.

Please let me know if this is the case and I can help your further.

 

authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 3 of 4
(2,880 Views)
Thanks Christian L. The check box for 'Autopreallocate arrays and strings' should be checked wasn't .....
0 Kudos
Message 4 of 4
(2,867 Views)