LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array and Number problem

Solved!
Go to solution

I've run into a problem while writing a particular sub.vi whose purpose is to, depending on a specified range, spit out a bunch of different test parameters.

The issue, as shown in the attachments, has to do with the fact that for the majority of the ranges, it spits out an array of frequencies to test.  However, there are a few ranges that only require 1 test frequency, and I cannot make an array that is only 1 entry.

 

This .vi acts as a sub.vi in a larger program, and I really need them to all go to the same indicator (the "Frequencies" array).

Download All
0 Kudos
Message 1 of 2
(2,288 Views)
Solution
Accepted by topic author LarsUlrich

In the broken wire insert a Build Array.  It will create an array with only one element.

 

The output indicator requires an array.  The number of elements in the array can be zero, 1, ... ~2^32.

 

Lynn

Message 2 of 2
(2,280 Views)