If you are trying to do this in LabVIEW 6, you are going to have a lot of trouble. There is a problem in 6 that prevents you from being able to do this. You keep getting a compiler error. In LabVIEW 5.1, it is quite easy. I'll attach a small example.