Thanks everyone. Here is the modified version-- test1.vi. I put all the string input to the left side of the Pick Line Function. And replace the GPIB RQS with VISA function: Wait For RQS.
I locate the address as the GPIB0::18::Instr, then run it step by step and found the output of the first Visa Write function is not right. The error code: -1073807339, the error explaining is : it occurred at an unidentified location. It seems the VISA can not identify the instrument. But in MAX, after Scan the Instrument, the primary is 18, and after Communicate with Instrument, the instrument can respond to the command: *IDN?. So that the instrument can be identified. I just wonder if there are some VISA functions which can identify the instrument missing in my VI.
Thank you so much for your help.
I am a graduate student and I don't have more experience on delevoping instrument drivers. But big thanks from my heart to you guys, you really give me many good advice. I wish I can finish it today.