How to serial read and store then output to PWM

First and foremost the File is attatched

I am sending information from LabVIEW to Arduino in the form of values such as (23, 234, 235, 231, 235,)

These values can change on a range between 0 - 255 for each.

i am having such a hard time getting it to work in my already written code for sensors.

Because im not very strong in LabVIEW and my professor is to busy to help me I was wondering if someone could help me out a little bit? He does not want me to use LIFA which i did use and was quiet successful at it now this has put me behind a month or so…

Already i am sending data of humidity temperature(dht11 and lmz335) AND LUX readings to LabVIEW and having much success.

its just creating the handshake back to Arduino that’s giving me grief.

one of my main issues is bringing in the data and storing it in an array and sending these values to the PWM ports 11 10 9 6 5 once again any kind of help is really appreciated and i hope i can get some understanding in this

thanks in advance


28OCT2018.ino (3.58 KB)

First and foremost the File is attatched

First and foremost - WHY?

Why not simply post it, and maximise your chances of having your code read?

#include <dht.h>
#include <Wire.h>
#include “BlueDot_BME280_TSL2591.h”
BlueDot_BME280_TSL2591 bme280;
BlueDot_BME280_TSL2591 tsl2591;
#define dht_apin A0
float tempK=0, tempC=0, tempF=0;
dht DHT;

void setup(){


tsl2591.parameter.I2CAddress = 0x29;


tsl2591.parameter.gain = 0b00;

tsl2591.parameter.integration = 0b000;


bme280.parameter.IIRfilter = 0b100;


void loop(){
tempK = analogRead(1) * 0.004882812 * 100;
tempC = tempK - 273.15;






}// end loop()

To make it easy for people to help you please modify your post and use the code button </> so your code looks like this and is easy to copy to a text editor. See How to use the Forum

In your Original Post you say that you are sending values to the Arduino but I see no sign of code to read serial data in your program.

Have a look at the examples in Serial Input Basics - simple reliable ways to receive data. There is also a parse example to illustrate how to extract numbers from the received text.

The technique in the 3rd example will be the most reliable.

You can send data in a compatible format with code like this

Serial.print('<'); // start marker
Serial.print(','); // comma separator
Serial.println('>'); // end marker