MicrochipHo Posted April 15, 2008 Report Share Posted April 15, 2008 Ok, So I am a little confused here. My assignment is to gnerate a randome number that is used to"emulate" noise and is sumperimposed on a constant DC bias, then use a boolean switch to remove the random noise component. Then obtain the time each data point is acquired ib the loop as refernec from an ainitial time stamp when the program is started. There is much more to the asignment...arrays and etc which I think I can handle, and I have made a certain amount of effort. I went to inputs-> simulate signal -> DC bias. I have already guessed "add noise" and I picked uniform random noise generator. But, I do not know how to turn this off with a boolean swtich. What I am guessing he wants is for the signal to be hooked up to a random noise generator nad controlled by a boolean switch. Thing is, on that "simulate signal" function, i do not see any inputs besides "seed number", "error in" "offset" "noise amplitude" -I guess that could come in handy because there is a "end the loop when the voltage exceeds 5 volts", so I don't know how to control exactly what goes in. I had sucess on adding the noise to the indicator on the front panel, but the boolean switch does nothing. Also, How am I supposed to collect time stamps and put it into an array (collecting the time plots along the x-axis) or the interation of when the program has been running to when a data point was collected. Hopefully you can see I am making the effort, I am just lost and need a little guidance. Thanks =) Quote Link to comment
orko Posted April 15, 2008 Report Share Posted April 15, 2008 QUOTE (MicrochipHo @ Apr 13 2008, 04:01 PM) My assignment is to gnerate a randome number that is used to"emulate" noise and is sumperimposed on a constant DC bias, then use a boolean switch to remove the random noise component. Take a look at the VI's in Waveform->Analog Wfm->Generation. There are a number of these available, and I'm sure you can figure out by looking at the context help which ones would suit your needs. Bare in mind that you can combine two wafeforms together with a numeric Add, just like you would add two numbers together. Take a look at the examples, specifically the one at: <labview>\examples\measure\maxmpl.llb\Noise Waveforms and PS Density.vi QUOTE (MicrochipHo @ Apr 13 2008, 04:01 PM) Then obtain the time each data point is acquired ib the loop as refernec from an ainitial time stamp when the program is started. Take a look at the waveform functions in the same palletes I pointed out above. Good luck! Let us know when you have a VI set up, if you are still having problems. Good job by the way describing the problem and not expecting us to "do the work" for you. Refreshing! Quote Link to comment
MicrochipHo Posted April 15, 2008 Author Report Share Posted April 15, 2008 OK. Thanks. I am confused about the whole inputs and outputs thing (I was never good at programming, and I don't have an electrical background so the whole wiring thing confuses me) I have a crude block diagram 7.1. I need a little more guidance here. Anyone? Quote Link to comment
orko Posted April 15, 2008 Report Share Posted April 15, 2008 QUOTE (MicrochipHo @ Apr 14 2008, 06:15 AM) OK. Thanks. I am confused about the whole inputs and outputs thing (I was never good at programming, and I don't have an electrical background so the whole wiring thing confuses me) I have a crude block diagram 7.1. I need a little more guidance here. Anyone? Now I'm the one who's confused... you have an assignment to do using LabVIEW, but apparently have little(no?) programming background or basic understanding of LabVIEW? The only thing I'm going to offer to you at this point is what I've given above, and perhaps a link to the http://digital.ni.com/manuals.nsf/websearch/64F88EB4D4F4FCEC862572F900640E19' target="_blank">Getting Started with LabVIEW manual that came with your copy of LabVIEW. You can get a lot of information just by reading through the links that appear in the "New to LabVIEW?" section of the "Getting Started" window that first appears when you launch LabVIEW. Quote Link to comment
MicrochipHo Posted April 15, 2008 Author Report Share Posted April 15, 2008 Well, I have taken a few comp sci courses, i have done badly in them all. I understand where to get some of the functions and what each one of them does, but hooking them all together... Did you look at my VI, is there some guidance you can provide me with? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.