01-22-2025 11:26 AM
The 1d array would be Nx1
I am trying to create a bus admittance matrix for power system flow.
Here are the links
https://circuitglobe.com/bus-admittance-matrix.html
for now i want to make diagonal part to be zero so that i can learn easier
another one is here
https://circuitglobe.com/formation-of-bus-admittance-matrix.html
I started using LabView last year so its hard for me to fully understand them.
01-22-2025 11:31 AM
I am unsure of something like inplaceelement & shift register because my understanding of LabView functions are new.
how does shift register work in arrays? do they shift values from column to column or row to row?
01-22-2025 12:16 PM - edited 01-22-2025 12:23 PM
A shift register does not shift anything, it is just a memory location that you initialize coming into the loop, read and modify inside the loop and write it back to the same location on the right. When the loop ends, the final content is available at the output.
01-22-2025 12:22 PM
@Rusyaidi_arif_cute wrote:
The 1d array would be Nx1
for now i want to make diagonal part to be zero so that i can learn easier
The NxN Y matrix is based on the elements of another NxN matrix and there is much more symmetry than what you were telling us earlier.
Where does the 1D array fit into all of that?
So, setting the diagonal to zero wasn't even your problem? Why did you even bother asking us? It helps to fully formulate the problem instead of solving things that are not even needed in the end!
You. Need. To. Start. With. The. Basic. Tutorials!
01-22-2025 01:21 PM - edited 01-22-2025 03:24 PM
It is confusing to call both input arrays Y, but I assume that the elements with single indices are from the 1D array and vice versa.
Here's maybe something to ponder (and I did not even need a shift register!)
01-22-2025 11:50 PM
Maybe its true because i just jump right through wihtout any basic LabView knowledge.
Thank you for the advice!
01-22-2025 11:54 PM
This is almost similiar on what I wanted to achieve.
Nevertheless, I could try to tweak a little bit or by using shift register (which im still learning) so that i could satisfy my output.
Thank you so much sir for your patience and for guiding me!
01-23-2025 05:51 AM
i was trying out a bunch of things here but i finally got the results eventhough it is not in graphical language form.
May i know what are the downside of using Matlab script?
I have attached the file.
01-23-2025 06:22 AM
Hi Rusyaidi,
@Rusyaidi_arif_cute wrote:
May i know what are the downside of using Matlab script?
01-23-2025 09:34 AM - edited 01-24-2025 11:09 AM
If it is a few lines of Matlab code, the LabVIEW equivalent will fit in a postage stamp am will be much more efficient.
I don't trust code that has measles (look at all the coercion dots!). An error terminal does not belong on top of a script mode!
I don't have Matlab installed.
At least resize the script so we can see all the text!