04-03-2017 01:05 PM
hello, i have to do a serial-integer transmission that convert 12 byte ( from 0 to 4096 ) in a volt numeric number ( from 0 to 5 volt ) . Can anyone help me please ?
04-03-2017 01:29 PM
Have you created any code yet at all? Is there something in particular that isn't working?
04-03-2017 01:41 PM
@lucabasile wrote:
hello, i have to do a serial-integer transmission that convert 12 byte ( from 0 to 4096 ) in a volt numeric number ( from 0 to 5 volt ) . Can anyone help me please ?
I think you mean 12 bit (0 to 4095).
What is the communication method? Over what hardware?
04-03-2017 01:53 PM
my task is to maintain the temperature
of 1000 degrees on a metal specimen and the available
instrumentation is: nano Arduino, temperature sensor thermocouple max6675, voltmeter and labview.
I did the program but now I was required to do this integer serial transmission,
could not find anything on the internet about it
04-03-2017 02:27 PM
Can you show is how these 12 bytes (or bits) look like?
Easiest would be if you could attach a simple VI that contains the received string as a diagram constant.
(Run your VI until you receive correct data in a string control. Stop the VI. Right click the terminal of the string control and "create constant". Copy that constant into a new VI and attach it here). If you know it, tell us what the number is supposed to be.
04-03-2017 02:43 PM
I was asked to do a potentiometer 0 to 4096, and according to the chosen number,
by connecting the PC Arduino Nano and the voltmeter I have to leave output a number from 0 to 5 volts.
sorry if you are not clear but are unfamiliar with LabVIEW
04-03-2017 03:02 PM - edited 04-03-2017 03:04 PM
You don't have a LabVIEW problem. All you need to tell us how the received string looks like.
Since you posted in the LabVIEW forum, we would assume that your problem has something to do with LabVIEW. If not, this thread does not belong here. I can move it elsewhere if needed.
(There is also no need to place your text into code tags. Irritating!)
04-03-2017 03:07 PM
the output must be a numeric indicator, if i understand what you mean
04-03-2017 03:31 PM - edited 04-03-2017 03:31 PM
@lucabasile wrote:
I was asked to do a potentiometer 0 to 4096, and according to the chosen number,
by connecting the PC Arduino Nano and the voltmeter I have to leave output a number from 0 to 5 volts.
sorry if you are not clear but are unfamiliar with LabVIEW
What part are you having trouble with?
Converting your raw ADC value to a voltage? If your raw ADC is 0 to 4096 and that corresponds to 0 to 5 volts.
Then isn't it simply 5/4096=0.001220703125? (Let's call it 1.22mV/bit)
So you take your raw ADC value and multiply times .00122 to get your voltage.
You might as well do that inside the Arduino and using serial.print send the voltage to a LabVIEW program that reads the incoming value with VISA Serial Read and displays it.
04-03-2017 07:00 PM
It might also help us understand your situation if you gave a drawing of how all of the pieces are connected. I am feeling more confused with each post you make.