06-12-2017 04:45 PM
I want to collect data from the sensor using serial port and for that I am using NI visa Labview programming. I am attaching my file for reference. My problem is when I set the frequency of the sensor at 100 hz it is working fine however if I increased it to 1000 Hz , it shows me error 1073807253 which is a framing error. Can someone help me to solve my problem ? My baud rate remains same for both frequency.
06-13-2017 05:38 AM
You really should not be using a Timed Loop for a serial communications. Just use a normal While Loop. And you do not need to put in a wait in the loop either. Since it looks like all of your messages are the same length, just tell the VISA Read to read that number of bytes (I am guessing 15). So no need for that Bytes At Port either. If no data is coming in, you will get a timeout error. But if data is constantly coming in, the VISA Read will limit your loop rate.
There is also no need for any of the Sequence Structures. Data flow will take care of the order.