ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
09-06-2006 06:21 AM
Di=(row+nLi)/r+Sumationsign(Lmaxj/cj)
want to make graph between d and n
09-07-2006 12:56 PM
Hello isaleem,
If this algorithm is already written in a C type language, you could use one of our programming nodes to perform this operation. The node is called the formula node. You can program loops in for analysis of arrays in the formula nodes.
If you only have this formula from a book and not coded into any other language, I would need some more information about the input parameters and the output (Di). I cannot tell what the inputs represent, which ones are constants, or which ones are the elements of arrays. Without a little more information it will be difficult to help further.
Either way, let us know what happens.
Steven T.
09-07-2006 12:59 PM
More info here:
http://forums.ni.com/ni/board/message?board.id=170&message.id=203135
09-08-2006 11:34 AM
AnalogKid,
Thanks for the information.
isaleem,
I have checked your terms and realized what this is for. You want to use this equation for network calculations. From the paper I found, D will end up being an array. Li then is the ith element in the L array. Lmax and C are also arrays that will be needed. I'm curious about how you will be getting this information. Do you currently have a program that is returning these numbers?
Looking at your other posts, there are suggestions already made that will help you with this problem. With this new information however, it seems like you would also need a few for loops to program this correctly.
Steven T.
09-09-2006 12:21 PM
hi
kindly check this vi but there is a problem of graph out is not exact kindly check it
thanks
09-11-2006 10:29 AM
isaleem,
Unfortunately none of your constants are labeled, so it is very difficult to find out what is happening. Also what is wrong with the graph? What is it not displying correctly? You may want to use an x-y graph if you need to display points that are not uniformally distributed allong the x axis.
Steven T.
09-11-2006 12:08 PM
Values are
D?
HOPS=n=1,2,3,4,5, etc
Li=200,300,400,500,600
R=2e6 fixed
Lmaxj=100,lmax2=200,lmax3=300,etc
cj=50,60,70,80,90,100 etc
i need the vi
which will display thr XY GRAPH BETWEEN dELAY AND HOPS
Delay and hops value
thanks for reply
09-12-2006 09:59 AM - edited 09-12-2006 09:59 AM
isaleem,
Assuming that the array outside the while loop is a the Delay, you can make another array containing the value for the hops. In this case the while loop iteration count supplies the hop count. You can create an array of the same size as each of the constant arrays (5). Initialize this array with the hop count (iteration terminal of the while loop). You can build the hops array the same way you build the delay array and then cluster it together using a bundle vi. Be sure to use an XY Graph for this application since there are several Y values with the same X value. Attached is a picture of what it could look like. I am unsure of your version of LabVIEW. I hope this helps.
Steven T.
Message Edited by Steven T on 09-12-2006 10:00 AM
09-13-2006 06:03 AM
09-14-2006 08:44 AM
Hello isaleem,
I hope that my hints about the other equation helped! This equation looks very similar to the other equation. What do you have so far? If you are having trouble getting started with it, here is a three hour tutorial that will help you get started with this in LabVIEW.
Try it out. If you have any specific questions or if you are getting any errors be sure to let us know. We are here to assist you with specific LabVIEW questions.
Steven T.