LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help creating a few quick programs

Incredible.  You know, when I look at it after the fact, I think to myself " it looks so easy, why didn't I think of that", I get stumped on how to approach in on the actual flow chart.
 
I am unsure why you choose quotents and remainder instead of a standard divide symbol.   Was it benifitial to use it or did you just choose it for variety?
 
I really appretiate all of your help (everyone).  these are probably so basic and may bore you, it is very helpful to me and my classmates.  Most of them that I've been working with are just as stumped on these problems due to the lack of help.
 
Bob
0 Kudos
Message 21 of 29
(1,251 Views)

Yes, LabVIEW is easy! It just takes a little bit of practice and you can program everything you want very quickly. Often beginners don't see the solution because they don't think it could possibly be this simple. 🙂

I choose the Quotient&Remainder over the plain division because I don't like to mix blue and orange wires. The division always results in a floating point number, but the case structure can only deal with integers (If you wire a DBL to a case selector terminal, you get a little grey dot warning you that a coercion takes place). This can cause problems with rounding errors.

The inputs are true unsigned integers, they can never be negative and must always be whole numbers. (You cannot have 2.5 hits ;).) While you can do everything here with DBL, you must then ensure by some other means that the input values are positive whole numbers.

Quotient&Remainder with interger inputs always produces exact integer outputs. It probably does not matter here, but you could even implement some sort of rounding (e.g. if the remainder is larger than "at-bats/2", add 1 to the IQ).

The nice thing is that there is an infinite number of possible solution. If you would ask the top ten LabVIEW programmers to solve your problem, you would get ten different solutions, but they will all give the same result. One might be slightly faster, one might use less memory, another might have a diagram that is easier to read, one looks prettier, and one might have a diagram that can be modified more easily if needs change. Programming style is highly personal!

Learning LabVIEW is like learnig to read and write. Once you learned to read and write, you can use it equally well to write poetry, a grocery list, a novel, a personal check, or a ransom note. Once you know LabVIEW, the possibilities are endless. 🙂

 

0 Kudos
Message 22 of 29
(1,240 Views)
It really does seem pretty powerful.  The last problem I have to complete is due in the next few days  Trying to understand the other problems has taken up quite a bit of time.  What has been shown and explained has a tremendous help!
 
Now this new one thats due tomorrow seems quite different.  How should I approach the attached file?  How the heck do you wire a resistor in a VI use a input numeric control and input a value , how do you make a capacitor...??
 
Completely frustrated again as I (and class) have not seen one example to date for anything closely related to this one. 
 
Thanks for everyones help!
 
Bob
 
 
0 Kudos
Message 23 of 29
(1,236 Views)
You don't wire resisors and capacitors in LabVIEW. Dataflow has nothing to do with current flow! ;).
 
Just use a loop that contains your three formulas and calculate the desired values as a function if time. See how far you get. 😉
0 Kudos
Message 24 of 29
(1,230 Views)
"Just use a loop that contains your three formulas and calculate the desired values as a function if time"
 
What do I use to put the formulas together a input digital control?  How do I input the formula into the digital control if this is what I use.  How do I even put the formula into a control were do I find omega etc.  I'm completely in a loss for this.  Is there even an example that I can refer to so I can see a sample circuit?
 
:mansad:
 
Thank you in advanced!
0 Kudos
Message 25 of 29
(1,224 Views)
Smiley Surprised Help:mansad:
0 Kudos
Message 26 of 29
(1,189 Views)
I believe that omega is equal to 2*pi*frequency in hertz.  Use math functions in the numerics palette to create your formulas, or you can use a formula node.
Here is a sample vi on how to create the formula for the current through the resistor.  You can use this example to create your other formulas.
- tbob

Inventor of the WORM Global
0 Kudos
Message 27 of 29
(1,178 Views)

tbob,

I tried to load that file, but your version is too new.  Can you save the file to an older version?

0 Kudos
Message 28 of 29
(1,159 Views)
You should specify which version of LV you are using.  Here it is in 7.0.
- tbob

Inventor of the WORM Global
0 Kudos
Message 29 of 29
(1,152 Views)