LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I simulate a normal distribution?

Hello
 
I want to simulate temperatur that change over time. Most of the time the temperatur is going to stay at the temperatur that the user has chosen....but sometimes it will change some degrees up or down. I want it to behave as if I had a regulator that tried to keep the temperatur at a chosen value, but sometimes it did not manage.... The best way would be if the temperatur changed only one degree at the time (not jumping from 18 degrees to 22 degrees). Have anyone any suggestions on how to do this?
 
-Mari
0 Kudos
Message 1 of 8
(5,469 Views)

Here is a freebie that should do the trick

Matt

 

Certified LabVIEW Developer

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 2 of 8
(5,458 Views)

Fixed Verison of code.

Matt

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 3 of 8
(5,449 Views)
Thanks for your help Matt! I have tested your program, and it works well when you choose to have a start value at 20 and low limit 19 and upper limit at 21, but when you choose to extend the interval, the value is only changing in the upper region (tried it with lower limit 15 and upper limit 22,5 and startvalue 20...then it only varied between 22,5 and 25). There is also a problem that when you change the values during run-time there are no changes....you have to stop the program from running and start it again before the changes are shown in the graph.
 
-Mari
0 Kudos
Message 4 of 8
(5,437 Views)
correction--- I tried it with lower limit 15 and upper limit 25...then it only varied between 22,5 and 25
0 Kudos
Message 5 of 8
(5,435 Views)
Hello Matt,

I am also interested in that bit of code, could you save it in LV 7.1 and repost please ?

Thanks alot !


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 6 of 8
(5,431 Views)
You need the Gaussian White Noise Waveform.vi
It is not in the Base Package though.


LabVIEW, C'est LabVIEW

0 Kudos
Message 7 of 8
(5,426 Views)
It has to do with probability.  The original was was to add or subtract based on < or > .5 so that is why it would not get the full swing.  Added more randomizers and now you can see the full swing.  Used LV 8.0 to save to 7.1 version.
 
Matt
 
 

Message Edited by mfitzsimons on 06-01-2006 07:14 AM

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
Message 8 of 8
(5,415 Views)