Jump to content

VISA ERR[HELP]


swings

Recommended Posts

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?

Link to comment
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.

Link to comment
Error -1073807339 occurred at an unidentified location

Possible 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.

Link to comment
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 JFM

you 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!

Link to comment
...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

Link to comment
* 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

Link to comment
...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

Link to comment

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?

Link to comment
...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

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.