swings Posted October 18, 2006 Report Share Posted October 18, 2006 hi.everybody there is a visa resourse,and i use visa write to send some information to the instrument. when i debug my program,there is a error when the dataflow pass the visa write. the error code is -1073807194 i used the error explanation.it showed /* Error -1073807194 occurred at an unidentified location Possible reason(s): VISA: (Hex 0xBFFF00A6) The connection for the given session has been lost.*/ what is happened? what can i do to solve this problem? Quote Link to comment
Albert Geven Posted October 18, 2006 Report Share Posted October 18, 2006 when i debug my program,there is a error when the dataflow pass the visa write. VISA: (Hex 0xBFFF00A6) The connection for the given session has been lost.*/ The reason possibly is that your session has been closed, or that you are running a subvi without filling in the visa resource name. It happens to me all the time. Also there is an option in LabVIEW to automatically close all open session. In LV8.2 this is in the options\environment tab. Switch it off. Quote Link to comment
swings Posted October 18, 2006 Author Report Share Posted October 18, 2006 thanks for your reply...... Quote Link to comment
crelf Posted October 18, 2006 Report Share Posted October 18, 2006 thanks for your reply...... If you're still having problems, please post the code or a screen shot of the BD where the error is occuring (and the code upstream from that) - that will give us more to go on... Quote Link to comment
swings Posted October 19, 2006 Author Report Share Posted October 19, 2006 hi,i come again. the program is below: and there is a error,the error code is -1073807339 i used the "explain error" it said that Error -1073807339 occurred at an unidentified location Possible reason(s): VISA: (Hex 0xBFFF0015) Timeout expired before operation completed. what can i do ? Quote Link to comment
Mellroth Posted October 19, 2006 Report Share Posted October 19, 2006 Error -1073807339 occurred at an unidentified locationPossible reason(s): VISA: (Hex 0xBFFF0015) Timeout expired before operation completed. You can use probes to find out which node is actually generating the error. Most probably it is the VISA-Read that generates this error. If it is, I think you should check your manual to see if a *RST really generates a response. You could also try to send another message right after the *RST, e.g you could try "*IDN?". As I don't know which instrument we are dealing with, there is not much more I can say. /J PS. Get rid of the first "Simple Error Handler" node, this adds nothing to your program. Quote Link to comment
swings Posted October 19, 2006 Author Report Share Posted October 19, 2006 You can use probes to find out which node is actually generating the error.Most probably it is the VISA-Read that generates this error. If it is, I think you should check your manual to see if a *RST really generates a response. You could also try to send another message right after the *RST, e.g you could try "*IDN?". As I don't know which instrument we are dealing with, there is not much more I can say. /J PS. Get rid of the first "Simple Error Handler" node, this adds nothing to your program. thanks for your reply JFM you are right..the visa-read generator this error.. thanks for your reply JFMyou are right..the visa-read generator this error.. i followed JFM and add a visa-write with the command *IDN? but there is the same error,it look like that the instrument is not controled. what can i do ? help me!!! it is emergency! Quote Link to comment
Mellroth Posted October 19, 2006 Report Share Posted October 19, 2006 ...but there is the same error,it look like that the instrument is not controled.what can i do ?... * Can you PING the instrument from the CMD prompt? * Check instrument communication settings. * Check how a message transfer is ended, e.g. by CR/LF. * Use a network sniffer, e.g. Ethereal, to check if there is a network problem. I can not offer any more help unless you post information regarding the intrument, e.g. I don't know whether you are using a SCPI compliant instrument, and I don't know the command set of the instrument. /J Quote Link to comment
swings Posted October 19, 2006 Author Report Share Posted October 19, 2006 * Can you PING the instrument from the CMD prompt?* Check instrument communication settings. * Check how a message transfer is ended, e.g. by CR/LF. * Use a network sniffer, e.g. Ethereal, to check if there is a network problem. I can not offer any more help unless you post information regarding the intrument, e.g. I don't know whether you are using a SCPI compliant instrument, and I don't know the command set of the instrument. /J hi JFM. * Can you PING the instrument from the CMD prompt? yes i can. * Check instrument communication settings. it's OK! * Check how a message transfer is ended, e.g. by CR/LF. * Use a network sniffer, e.g. Ethereal, to check if there is a network problem. NOW,I POST my instrument information my instrument is advantest spectrum analyzer U3700 series U3751 the instrument supports GPIB/LAN interface. now i want to control the U3751 through LAN interface. in the MAX,i have configed it,it's ok.there are no problem. this instrument don't support VXI-11 bus,so when i configed theMAX,i select the third option which is the raw network socket. can you help me again! thanks Quote Link to comment
Mellroth Posted October 19, 2006 Report Share Posted October 19, 2006 ...my instrument is advantest spectrum analyzer U3700 series U3751 Good, I searched the other threads and saw that you had posted another question earlier. ...the instrument supports GPIB/LAN interface.now i want to control the U3751 through LAN interface. in the MAX,i have configed it,it's ok.there are no problem. When you say that it is OK in MAX, do you mean that you can send commands and read replies in MAX? In the other thread you were sending "*IDN?\n", if this works, then I think you should try to add \n to your LabVIEW code as well. This relates to the communication settings I mentioned in a previous post. If you need to change your VISA settings, you can do this by wiring the VISA refnum to a property node. The property node will give you a number of options to configure the VISA session, e.g. the termination character. /J Quote Link to comment
swings Posted October 19, 2006 Author Report Share Posted October 19, 2006 you are wonderfull,i am so appreciate to you! thanks agian for you help. When you say that it is OK in MAX, do you mean that you can send commands and read replies in MAX? NO,i can't read replies,but it is show that the device is ok! and i can open the visa test panel. In the other thread you were sending "*IDN?\n", if this works, then I think you should try to add \n to your LabVIEW code as well.This relates to the communication settings I mentioned in a previous post. i will try it. If you need to change your VISA settings, you can do this by wiring the VISA refnum to a property node. The property node will give you a number of options to configure the VISA session, e.g. the termination character. i am a new guy with labview i don't understandvery well about the property node.but i will study something about this. and now. any suggestions for me? Quote Link to comment
Mellroth Posted October 20, 2006 Report Share Posted October 20, 2006 ...NO,i can't read replies,but it is show that the device is ok! and i can open the visa test panel. If you cannot communicate with the instrument through the VISA test panel, you should really check your communication settings. When the test panel fails, it will most likely fail in LabVIEW as well. /J 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.