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.
@meteor3223 wrote:
Error -1073807253 occurred at an unidentified locationPossible 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.....
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.
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.
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!
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!
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.
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!
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.