LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to insert desired values in 1D array

well its a real pet peeve for me too. i am just asking a simple question and nobody is getting instead people have started criticizing the file formats that i am using.

what ever. 

just forget about every thing i posted and please just have a look at the "MT convolutional encoder vi" in your own Labview(if you have installed the modulation toolkit). it requires a bit stream as an input and i want to give it this(10001000110001) as an input. now how do i do that. i can't be more precise and simple than this.

thanks 

0 Kudos
Message 11 of 17
(1,272 Views)

I don't have the Modulation Toolkit, but I don't need it in this case, as the help file for it is available online. As I said, it takes in an array of integers. Values of zeros and ones. I don't know what you're asking beyond that. If you want to be able to enter the text "110000110110" on a front panel string control, that's something else entirely. But, the answer is, and can't be anything else except: it's an array of integers. 

 

 

Message Edited by smercurio_fc on 04-17-2009 02:25 PM
0 Kudos
Message 12 of 17
(1,258 Views)

can you please explain to me the array that you sent.

isnt it showing the values only at index 0. 

0 Kudos
Message 13 of 17
(1,248 Views)

infact this is what i have been asking on the forum. when i do like the method that u have shown, the array only takes these values at index 0. the left most number is showing array indices. i want to enter 1001110001 in the format, index1=1, index2=0,index3=0,index4=1 and so on. this is a 1D array. now how do i do this.

this is one part. now if i want to show the output of the convolutional encoder on my front panel,so what should i do.

i would really appreciate.

0 Kudos
Message 14 of 17
(1,244 Views)

Hi irish,

 

the first shown value is at index 0. The next one is index 1 and so on...

 

Make a 2d array control and size it to something like 5×8 - maybe it's easier to get the concept...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 17
(1,243 Views)

Hi irish,

 

"Now if i want to show the output of the convolutional encoder on my front panel,so what should i do"

 

Well, right click the output terminal of the convolutional encoder and select "create indicator" Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 17
(1,242 Views)

irish_sunset wrote:

infact this is what i have been asking on the forum. when i do like the method that u have shown, the array only takes these values at index 0. the left most number is showing array indices. i want to enter 1001110001 in the format, index1=1, index2=0,index3=0,index4=1 and so on. this is a 1D array. now how do i do this.

this is one part. now if i want to show the output of the convolutional encoder on my front panel,so what should i do.

i would really appreciate.


As I suspected in my reply #10, it seems that your fundamental problem is with simply resizing the array control/indicator. The LabVIEW Help explains how to do this:

Adding Elements to Arrays 

You can resize an array by adding multiple elements to the array simultaneously or by adding one element at a time.

Complete the following steps to resize an array structure.

  1. Move the Positioning tool over the array shell border. Resizing handles appear at the points where you can resize the array.    <--- Key sentence
  2. Move the cursor over a resizing handle to change the cursor to the resizing cursor.

 

  Note  If the array or cluster is currently selected and you click an element rather than the array shell or cluster shell border before you drag, LabVIEW moves the entire array or cluster rather than resizing it.
  1. Use the resizing cursor to drag the resizing handles vertically or horizontally until the dashed border outlines the number of elements you want to display in the array.

To cancel a resizing operation, continue dragging the resizing handle outside the window until the dashed border disappears or press the <Esc> key before releasing the mouse button.

The index display tells you which index position is shown first.

Message Edited by smercurio_fc on 04-17-2009 03:19 PM
0 Kudos
Message 17 of 17
(1,235 Views)