NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

ERR(-1073807253)

I am a new NI user. There is some problem with my serial VISA read. It show "ERR(-1073807253)" Hope someone can help me. Thanks a lot.
Work hard and enjoy hard.
0 项奖励
1 条消息(共 12 条)
7,141 次查看

 

Error -1073807253 occurred at an unidentified location
Possible reason(s):
VISA:  (Hex 0xBFFF006B) A framing error occurred during transfer.

 

Error -1073807253 occurred at an unidentified location
Possible reason(s):
VISA:  (Hex 0xBFFF006B) A framing error occurred during transfer.

Tips:

In LabVIEW, "Help"- > "Explain Error...", u can copy your error code here and get explanation for the error.

2 条消息(共 12 条)
7,111 次查看

 


@meteor3223 wrote:

 

Error -1073807253 occurred at an unidentified location
Possible reason(s):
VISA:  (Hex 0xBFFF006B) A framing error occurred during transfer.

 

Error -1073807253 occurred at an unidentified location
Possible reason(s):
VISA:  (Hex 0xBFFF006B) A framing error occurred during transfer.

Tips:

In LabVIEW, "Help"- > "Explain Error...", u can copy your error code here and get explanation for the error.


Thank you for your reply.

 

I know the error, i have checked all the VISA configurations and also add the delay.I don't know how to dismiss the frame error.

This is the picture i attached. Any reply i will appreciate.....VISA read error.JPG

Work hard and enjoy hard.
0 项奖励
3 条消息(共 12 条)
7,091 次查看

We have a tool to capture the communication flow between pc and instrument called NI-SPY, you can use this to check whether you got the correct data you want.

I see you send the *IDN command. Just a remind, you can try to find the driver for the model you are using in our idnet.

0 项奖励
4 条消息(共 12 条)
7,086 次查看

Hi Rui sha,

 

As the error message mentioned, it is most probabbly caused by the incorrect setting of your com port.

 

Would you please check the instrument remote RS-232 menu for the instrument's serial parameters? The settings should be consisitency of both LabVIEW side and instrument side.

5 条消息(共 12 条)
7,084 次查看

Thank you for your suggestion. I tried it and check the error.

I think may be there is some noise on the serial line because there are some one or two messy code in front of the transmitting string. Is it possible that my program is over run? Actually what i need to do is to receive the string from serial and store them into array and do the calculation. But the problem is that the reading from VISA read is very fast and the incoming strings are always jumping which make all the process jumping unless i use delay....

Any idea if not troublesome....

 

Thank you!

Work hard and enjoy hard.
0 项奖励
6 条消息(共 12 条)
7,081 次查看

Hi Rui sha,

 

Actually, there is a easy way to figure out whether or not you got a improper settings or hardware issues on you RS-232 connections.

That is use a serial communication tool, such as "串口调试助手"  to ensure the basic Read and Write is stable between PC and instrument. For example, you can send *IDN? and read the return string from instrument. Repeat this query several times to see is there any communication errors.

 

On the other hand, If you think the reason may come from the program, would you please post your code here then we can take a look?

 

Thanks!

 

 

0 项奖励
7 条消息(共 12 条)
7,074 次查看

Hi, Charles

 

Thank you for your help. I tried the 串口助手 it seems work but the interface shows messy code on my PC. I can tell the configurations there.

And the whole program, i have uploaded on top.

Very appreciate you suggestions.

Work hard and enjoy hard.
0 项奖励
8 条消息(共 12 条)
7,065 次查看

Hi Rui sha,

 

I think your original intention is that user press the button to write/read once. So I got a little bit proposals for the program, would you please try to use Event Structrue (Programming >> Structures >> Event Structure) in the while loop to replace two if structures? It would be easy to add the event cases for both write and read boolean buttons' pressed actions.

 

Besides the program, I am a little bit concerned of your RS-232 interface, since you said you got some "messy code" on PC terminal. Please ensoure the basic RS-232 communication can be stablished before you move on to programming. If you got a wired result from instrument, please post it here.

 

Thanks!

 

0 项奖励
9 条消息(共 12 条)
7,039 次查看

Hi, Charles. I appreciate your help very much.

Actually this program is using for reading the data from the serial continuously and simulating the movement. So i use the if loop to make the program keep running, but i think i will try the event structure.

The RS232 interface is a 8051 circuit board.I have try to receive data from Hyper terminal, sometimes it show one or two messy codes in front, i think it should be the noise on the serial.

 

I think i should start from the most basic and simple practice.

Thank you.

Work hard and enjoy hard.
0 项奖励
10 条消息(共 12 条)
6,974 次查看