LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

arrays

Yes sir, with the impulses characteristics. Fall time, frequency or period, etc.

 

I would have use a DAQ, but here no one wants to buy one.

 

 

0 Kudos
Message 11 of 21
(880 Views)

The size of the array is determined by the sample input. If you want several pulses and each has a random amplitude, use the function inside a for loop as you had originally. You can use a shift register with a build array function to create an array with multiple pulses or pass the 1D array out the for loop and convert the 2D array to a 1D array with the Reshape Array function.

0 Kudos
Message 12 of 21
(873 Views)

Yes, that is what i thought would work.

The problem is that i can not set the Array out of the For loop, it is not filled with random amplitudes.

I Tried to convert from a 2D array to a 1D array aswell, but it didnt work, it only captured the first value in the 1D Array ... very frustrating.

Since i have changed the samples and width, it can be filled with the same amplitude inside the array, but i can not have different values.

 

Maybe i am not expresing myself correctly, sorry to bother.

 

Anyway, if you have further ideas i am reading,

 

thanks.

 

0 Kudos
Message 13 of 21
(862 Views)

With the pulse pattern.vi you only generate one step. 

Is that what you want to achieve or do you want to multiply it at random?

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 14 of 21
(850 Views)

I would like to miltiply it at random.

 

Because then i have to program the estadistic of this, when will it happen. And that will be easier if i can generate it randomly.

 

Thanks.

 

0 Kudos
Message 15 of 21
(845 Views)

In your posted example, you in fact do have a 2D array with random values. Expand the indicator so that you can see more of each row. 

 

In any case, here's a simple mod with a shift register.

0 Kudos
Message 16 of 21
(843 Views)

Can you do it for 2010 version pls.

 

Thanks.

0 Kudos
Message 17 of 21
(837 Views)
0 Kudos
Message 18 of 21
(834 Views)

mmm not working. Wait, it says that should be version 11.0.1

 

Sorry for the mistake.

 

thank you.

 

0 Kudos
Message 19 of 21
(831 Views)

Sorry. I saved to the wrong version. Try this.

0 Kudos
Message 20 of 21
(827 Views)