11-07-2013 06:37 AM
Hi member
I have this states machine show below
where x :input and y output where both stream of ones and zeros bit
I ask how can I calculate the numbers of transitions between s1 to s1, s1 to s2, s2 to s1, s2 to s3 and until s6 to s6 , s6 to s5, and so on
any chanage in lv I will gracfull
thank in advace
Solved! Go to Solution.
11-07-2013 06:40 AM
i can not uplaod the VI due to the follwing message
""the contents of the attachment doesn't match its file type""".
11-07-2013 06:46 AM
I would store the counts in an array, one number for each possible transition. Since you know where you are going next, you increment the element corresponding to that transition.
@mangood wrote:
i can not uplaod the VI due to the follwing message
""the contents of the attachment doesn't match its file type""".
Known problem with the forums. I just zip up the VIs and post the zip file. Haven't had problems with that yet.
11-07-2013 08:40 AM
What he said. Easiest way is a 2D array where index(x,y) represents the number of transitions from state x to state y.
Initialise all elements to zero, index by initial,final state, and increment.
11-07-2013 12:30 PM
thank for repaly
can plase show me the LV VI so that the index(x,y) represents the number of transitions from state x to state y.
11-07-2013 12:32 PM
the LV Vi
11-07-2013 02:36 PM - edited 11-07-2013 02:36 PM
Dear
I have done making labview for increasing by one for each transition but how can I produce the following code m(x0 new,y0 new)=m(x0 old,y0 old)+1
i mean how i make change to original array.
11-07-2013 03:24 PM
You could change the original array by creating a property node linked to its value and connecting it where your arrow is.
11-07-2013 03:27 PM - edited 11-07-2013 03:29 PM
@ToeCutter wrote:
You could change the original array by creating a property node linked to its value and connecting it where your arrow is.
is thier any example please for doing that please its complex for me
11-07-2013 03:35 PM
Dude, it's not complex to read the LabVIEW help on property nodes.
Right click on your 'm' value on the diagram, select 'create->property node', right click it and select 'change to write', and use the little hand tool to select the property 'value' on it. Then wire it to the output of your right hand block.