I would echo Anchovie's statement that since we don't know what you are trying to do it is hard to say right or wrong. There just seems to be a large amount of code that has no purpose.
I would also add that there is no error handling in the VIs so if you are getting errors that may explain your issue, you aren't seeing them. I would add error handling and it may tell you the issue.