11-25-2013 09:21 AM
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.
11-25-2013 09:30 AM
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.
11-25-2013 09:47 AM
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.
11-25-2013 09:58 AM
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?
11-25-2013 10:00 AM
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.
11-25-2013 10:03 AM
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.
11-25-2013 10:12 AM
Can you do it for 2010 version pls.
Thanks.
11-25-2013 10:18 AM
11-25-2013 10:22 AM
mmm not working. Wait, it says that should be version 11.0.1
Sorry for the mistake.
thank you.
11-25-2013 10:26 AM
Sorry. I saved to the wrong version. Try this.