07-17-2012 02:11 PM
I am having trouble getting data from the serial port without getting an error. We have come to the conclusion that the problem lies within the VI in the serial port subvi's. Everytime I try to run the Serial Port Read.vi on the Front Panel, I come with the error --> (Hex 0xBFFF006B) [Error 1073807253]. If someone could help me understand:
1. What does this error mean? or Is this error normal?
2. How can I correct the error?
Our short term goal is to get the serial port to read data (even if nonsensical at the moment) and not read an error. I have attached screen shots of the main VI we are using 3DMultiAxisRotation.vi Block Diagram and subvi's from that VI. The labels for important subvi's should be above each respect subvi. I will repost directly below this meaage with three more screen shots that might be helpful. Thank you very much for any and all help!
-Clay
07-17-2012 02:12 PM
Here is the repost with three more screen shots that may be of use.
-Clay
07-17-2012 02:17 PM
Have you tried something simple such as using Hyperterminal or something like it to try to communicate to the instrument?
07-17-2012 02:19 PM - edited 07-17-2012 02:20 PM
It is a framing error. I would first double check your baud rate.
07-17-2012 02:22 PM
I'm new to LabVIEW and many of it's terminologies. Could you please explain how I could check to correct the "baud rate"? Also, I'm not sure what a framing error means. I've tried looking up the error code online, but it was no help for me. Thank you!
-Clay
07-17-2012 02:33 PM - edited 07-17-2012 02:40 PM
These are actually hardware terms, not LabVIEW. Anyways, in RS-232 a typical frame of data consists of a start bit, data bits, and a stop bit. These settings (plus more) are configurable. A framing error means that this frame format was not followed and the data could not be extracted. Baud rate is the number of bits are transfered in a second. If the sender and reciever are set to different rates, the data will not be properly transfered. If you do not know what settings you need for you RS-232 port, you need to figure that out before you can continue in the software world. Use the Configure Serial Port VI in order to set these settings.
07-17-2012 02:34 PM
Your code is in serious need of major rework. You have no order. You are doing a read in parallel with doing the init. Unless you are using a very, very old version of LabVIEW, you should not be using those serial functions at all. Use the VISA functions and enforce dataflow by connecting the error in/error out.
Framing errors indicate a mismatch in the serial settings. It should be clear from the user manual what you should be configuring the port on the pc. With the VISA Configure Serial Port, you simply right click on the inputs and select Create Constant and then use the correct constant for baud rate, parity, stop bits, etc.
p.s. Search HERE for the error code.
07-17-2012 04:07 PM
Thanks guys, I now have a few new directions to try.
-Clay