LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
X.

Make Random Variable VIs default number of samples = 1 (not 128)

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.

The random number generators in the Mathematics>>Probability & Statistics>>Probability palette:

 

Screen Shot 2015-11-28 at 11.30.40.pngand Screen Shot 2015-11-28 at 11.29.49.png

 

have NO mandatory parameters.

For some, this is understandable (seed value, reset, number of samples) but for function parameters not to be mandaroty is a bit odd to say the least... But that would be the topic of another suggestion.

 

The current suggestion is to replace the default sample number to 1

 

Screen Shot 2015-11-28 at 11.45.10.png

 

Caption: The sample number (called samples above) defaults to 128.

 

The practical reason is that I oftentime find myself needing a single value drawn from a random distribution (as much as possible, I try to generate large arrays in one go, but that's not always possible). and I'd appreciate not to have to clutter my diagram with an extra Screen Shot 2015-11-28 at 11.36.16.pngconstant (and the associated wire).

Of course, I could go ahead and set the default value of this parameter to 1 in each of the vi.lib VIs, but I would have to do that for each new version.

I can't think of a good reason why people would want 128 samples rather than any other number.

Now there is still the annoying fact that the VIs will nonetheless output a single element array, but I can go around this problem with a small intermediate VI (Screen Shot 2015-11-28 at 11.38.45.png, for discrete randome variables) which takes no space on the diagram.

 

 

1 Comment
Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.