08-05-2024 08:46 PM
Hello everyone. Could you please assist in creating a LabVIEW block diagram based on the attached formula?
Thank you
08-06-2024 12:51 AM
Hi mrdas,
@mrdas9820 wrote:
Could you please assist in creating a LabVIEW block diagram based on the attached formula?
What have you tried and where are you stuck?
08-06-2024 01:24 PM
I assume you know the datatypes and number of dimensions of the inputs and output. Are these complex datatypes?
Do you have a website that describes the math (I.e. is the source of your formula image)?
08-06-2024 02:16 PM
Providing a "complex equation" without references is not very useful for us to help you learn to handle this yourself. Some "notation" questions include the following:
Do you know how to create Arrays in LabVIEW? Do you know how to use a For Loop to index elements of Arrays? Do you know how to do simple arithmetic (addition, multiplication, and division) in LabVIEW (hint -- use functions called "Add", "Multiply", and "Divide"). Do you understand how you can use "wires" to take the output of, say, an addition and have it be the "numerator" element of a Divide function?
If you are "iterating" (over "i") to determine V (as a function of i), do you know when/how to stop iterating?
Bob Schor
08-24-2024 03:13 AM
I have tried using a for loop and other methods, but I haven't been successful. Could you please help me, Prof?
08-24-2024 03:16 AM - edited 08-24-2024 03:21 AM
Hello, prof. This is a power flow solution formula using the Gauss-Seidel Method.
I have attached a book related to this formula. Thank you
08-24-2024 03:25 AM
Thank you for your detailed explanation. I apologize for any confusion caused. Yes, the equation is from the Gauss-Seidel method used in power flow analysis. Here are some clarifications:
I am familiar with creating arrays, using For Loops for indexing array elements, and performing arithmetic operations in LabVIEW. However, I am struggling with implementing this specific iterative process correctly in LabVIEW, especially with managing the complex data types and ensuring proper convergence of the solution.
Any guidance on how to properly set this up in LabVIEW would be greatly appreciated. Thank you in advance for your assistance.
08-24-2024 03:30 AM
The following is the block diagram that has been created
08-24-2024 05:17 PM - edited 08-24-2024 05:18 PM
@mrdas9820 wrote:
The following is the block diagram that has been created
That looks more line an image of a block diagram and most of it makes no sense at all. A "one iteration FOR loop" is just a glorified sequence structure. Your use of local variables is creating massive race conditions because you cannot tell in what order they (or the terminal) gets written or read.
What are these blue squares? They are not functional parts of the code, right?
Is there anything preventing you from attaching the VI instead?
08-25-2024 09:46 PM
Hello prof,
The blue squares are just to make it easier to group the steps, it is not for code function.
For this for loop, I am still confused. How is the formula converted into a block diagram? For input variables, you can see it at the very top.
Here I attach the VI.