Maa-LeeN Posted November 10, 2006 Report Share Posted November 10, 2006 hye everybody. i am doing a serial communication programe using Labview 8 but i cannot get any response. The instrument that im currently used is Lakeshore Temperatuere Controller Model 321 that use RS232. everytime i send the command, *IDN? in the labview programme, it will said the the VISA read has an error, VISA Read Error but i cannot identify what is the error. ive check using the MAX and the device is working properly. someone plss help me. It is urgent. tq Quote Link to comment
Maa-LeeN Posted November 10, 2006 Author Report Share Posted November 10, 2006 I am reading a device with a rs232 interface 300 baud 7/1/n/1 i keep facing the the same error...error with the visa read. bytes not read are in the serial buffer anyone who can help me with some hints? thanks Quote Link to comment
crelf Posted November 10, 2006 Report Share Posted November 10, 2006 Firstly, saying your request is urgent does nothing for your cause - it just pisses people off. Read this and then this. Secondly, we can't help you without more information - what is the error code? Post your code so we can have a look at it. Quote Link to comment
Mellroth Posted November 10, 2006 Report Share Posted November 10, 2006 As crelf is saying it is almost impossible to give you any help from the information you have given. You could, however, try to use some of the examples that ship with LabVIEW to perform simple serial communication. If MAX is able to read back the *IDN? response, so should LabVIEW. /J Quote Link to comment
Maa-LeeN Posted November 11, 2006 Author Report Share Posted November 11, 2006 tq for the reply. ill try again checking using MAX and setting my parameters correctly. hope i can get it dis time. thanx. As crelf is saying it is almost impossible to give you any help from the information you have given.You could, however, try to use some of the examples that ship with LabVIEW to perform simple serial communication. If MAX is able to read back the *IDN? response, so should LabVIEW. /J Ive checked using MAX. when i used the visa write to identify the instrument, the return count value is 6. then i try to check the read buffer but the error ios VI_ERROR_TMO: Timeout expried before operation completed. so,what can i do to overcome that problem? can anyone gimme any suggestions? thanx in advance. Quote Link to comment
peteski Posted November 11, 2006 Report Share Posted November 11, 2006 tq for the reply. ill try again checking using MAX and setting my parameters correctly. hope i can get it dis time. thanx. Ive checked using MAX. when i used the visa write to identify the instrument, the return count value is 6. then i try to check the read buffer but the error ios VI_ERROR_TMO: Timeout expried before operation completed. so,what can i do to overcome that problem? can anyone gimme any suggestions? thanx in advance. Your best bet is to show some screen shots of the error and post your code here. If you have a screen shot of what you have in MAX that you call a "return count value of 6" that could help as well. What you have given for information is simply not enough to determine your problem - it could be dozens of possibilities as far as I can see, because so far I've seen virtually nothing. -Pete Liiva Quote Link to comment
Mellroth Posted November 11, 2006 Report Share Posted November 11, 2006 ...so,what can i do to overcome that problem? As Pete said, you wont get a definite answer unless you give us more information. Upload a screen shot, showing both the write and the read TAB of MAX. Don't bother with LabVIEW until you have the *IDN? command working from MAX. I do think that this is a setup mismatch, as I would expect more than 6 byte in return for the *IDN? command. /J PS. its LabVIEW not labview (for you crelf ) Quote Link to comment
crelf Posted November 11, 2006 Report Share Posted November 11, 2006 PS. its LabVIEW not labview (for you crelf ) Why thank you JFM - I apprecaite it :thumbup: Quote Link to comment
Maa-LeeN Posted November 13, 2006 Author Report Share Posted November 13, 2006 Thank you for everyone's reply. i found out whats the problem is. it has problem with the VISA and i can run the porgram now. tq. thank you for everyone opinion. Quote Link to comment
crelf Posted November 13, 2006 Report Share Posted November 13, 2006 i found out whats the problem is. it has problem with the VISA and i can run the porgram now. Can yo upls tell us what the problem was and how you fixed it? That's how we all learn. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.