The text file “data.txt” is split up in one text string for every column in the file. It so undergoes remodelling to fit a 10X9 matrix (called 2d array in Labview). Every number value is transformed from a string of numbers (seen as text by Labview) to an array of numbers.
All values corresponding point in the matrix are put into a cluster. The clusters are put into a 10x9 matrix.
Step two calculations:
Triple for loop where the outermost loop runs for the amount of time, the 2 inner ones are for indexing out a single from array of clusters and if the amount of a nuclei is larger than 0, the calculations happen.
The math SubVI calculates the rest amount after decay, neutron absorption and neutron induced fission. The branching of decay is also calculated here.
After the calculation the rest of the SubVIs opens up a position corresponding to where the new values needs to be placed based on type of decay, fission and/ neutron absorption. All of the decay SubVIs are virtually the same, the only difference lay in the indexing of the position they needs to be placed in.
Step three displaying the result:
First just the amount and nuclei names are indexed and taken from the old array of clusters. The Nuclei names are checked for the value 0 (represents a nuclei that hasn’t been proven to exist) and put this to not found. The amount values are checked if they are larger than 0 atom, if it is a diode is turned on to make it easier to see what is present at the end. The amount is also converted from number of atoms to kg. All the new values are put into a new array of clusters, consisting of Nuclei name, end amount and the light diode.