08-18-2008 01:09 PM - edited 08-18-2008 01:11 PM
All right... I understand the situation.
Recently I successfully comunicated with the bluetooth serial port. However, I am having a little problem:
In the main window I put a meter to aquire the data from my smartphone program. The program works well but for some reason I cannot measure a value between 1 and 10... I can only measure values with a range 10 to 100. What could be wrong with the code? Is there any way to measure values with 1-10 range?
Here is the code and the main window.
08-19-2008 12:04 PM
Hi Borges,
Are you getting data returned in the 0-10V range? Check to be sure the string value is being converted correctly. You can create an indicator for the string data and be sure that it corresponds to the numeric data after the conversion. If you are reading back decimal data, you may need to use a Fract/Exp String to Number Conversion VI. What are you experiencing when 0-10V data is returned? Does the indicator stay at 10 or 0?
08-19-2008 12:28 PM
08-19-2008 12:31 PM
08-19-2008 12:44 PM
It´s currently posted on the post located in the top of this page.
There are two files in there.
08-19-2008 12:58 PM
Hello,
Can you increase the bytes to read to 10 bytes (instead of 2) and make an indicator (or probe) on the string you get back form the read VISA.
Then post the result as a new picture. This will help alot to debug the problem.
BR
Thomas
08-19-2008 02:57 PM
I did that procedure before. However, after that the transmition stays awfuly slow. But the reading works all right. How I could optimize the transmition? I was thinking in modify my instrument to transmit at 115200 bauds.
But is there any way to perform some sort of code optimization?
08-19-2008 03:03 PM
08-19-2008 03:44 PM
It seems that when I set the byte count to 10 a error is triggered and the port is closed. That is strange.. for some reason when I set a byte count greater than 2 this error occurs and the serial port is closed.
Here is the screenshot and the .vi
08-21-2008 04:49 PM