thanks a lot for your tip on Action Engines. I also realized that my error always occurs in the Read QCM measurement.vi (which is the SubVI of the core program). I am posting this SubVI below. Also, can you tell me how to check how many bytes are available to be read (I have a hard time figuring this part out).
thanks a lot. The new vi works fine. The only problem is that sometimes
the program gives a 'weird' reading from the instrument. Do you know
what might be the problem and/or how to solve it?
This can happen because of reading all that is left and then waiting for a new set. You should be able to synchronise if you know exactly how each message is built up. The best would be to use an end character as cr or lf if the controller sends that. If you like I can take a look. The only thing you need to do is send me a long list of consecutive characters read in one string. the best you can do is read e.g. 100 characters and display this in a vi. then make current values default and send it to the board.