05-12-2009 10:20 AM
05-12-2009 10:24 AM
05-12-2009 10:33 AM
That's why I asked you at the beginning if you were able to run a basic query. So, now you are saying nothing works. Even though you only get an error on the read, your writes are almost certrainly failing as well.
I would suggest that you do some experiments in MAX to get a basic *IDN? query to work before you do anything with LabVIEW. Try different termination characters.
05-12-2009 10:37 AM
I have added the \n everywhere and interetingly now I get some output for the "identification" in the front panel (which is simply the model number of the analyzer) and I monitored all the error outputs of the VISA Reads and received a warning from frame 0 (the identification frame) saying "Warning 1073676294 occurred at VISA Read in 4294A Trace Data to File_Nika Revised2.vi
Possible reason(s): VISA: (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available."
But I still get the same readout error from all the other frames. Regardless, just the fact that I am getting output now is some progress. Thanks for the advice. If you have any more advice for getting rid of the error in the other frames please let me know. You have been a great help.
05-12-2009 10:44 AM
You can ignore the warning.
Do you still get the error on the instrument? If so, you have to identify the source. Otherwise, there could be some other setup required before the instrument will return anything. sorry, I don't have the instrument so I am unable to test your code.
05-12-2009 10:53 AM
05-12-2009 01:57 PM
I tested each frame individually and realized that in some cases I was outputting too many bytes and in other cases too little. So I adjusted the values and the program works now! Thanks so much for all of your help. I would not have figured out how to fix this without you.