09-23-2019 06:46 AM
Thanks for your videos. Yes exactly i want to make a test bench like you but in my case i want to see the voltage and current through the sensors.The Sensors output are given to analog pins of Arduino through where i get the both values at the COM ports. I can show you in my video now the code and working just wait please. As u see my VI already. Thanks for sharing with me the videos.
Thanks
Maaz
@hasan1612 wrote:
In my case, I didn't use time setting in my lab view, but I let the data displays in LabView due to data sending freq from Arduino by setting millis value (since I wrote the code for rotation sensor).
You may take a look at mine here:
09-23-2019 07:19 AM
Please watch the video:
https://www.youtube.com/watch?v=VtADrvWqcgE&feature=youtu.be
Thanks
@maazqaiser wrote:
Thanks for your videos. Yes exactly i want to make a test bench like you but in my case i want to see the voltage and current through the sensors.The Sensors output are given to analog pins of Arduino through where i get the both values at the COM ports. I can show you in my video now the code and working just wait please. As u see my VI already. Thanks for sharing with me the videos.
Thanks
Maaz
@hasan1612 wrote:
In my case, I didn't use time setting in my lab view, but I let the data displays in LabView due to data sending freq from Arduino by setting millis value (since I wrote the code for rotation sensor).
You may take a look at mine here:
09-23-2019 07:32 AM
As Master @RavensFan suggested, you need to use string to set the output data from Arduino. You may take a look at our discussion above. The code in Arduino can you see in one of my video above. And you may use a match pattern in LabView Block Diagram for parting the data.
09-23-2019 08:06 AM
Videos are not really helpful. It is shaky, hard to read, and quick distracting. Just post the code so we can analyze what we need to.
09-23-2019 08:10 AM
Please check the files i have upload it.
Where can i find this Scan from string to break message into two values. I upload all the files which i have.
Thanks
Maaz
09-23-2019 08:13 AM
Can you adjust my VI. I upload it in thread please. I really donot know much about the match pattern.
Please
Thanks
Maaz
09-23-2019 08:21 AM - edited 09-23-2019 08:22 AM
In your Arduino code, do a single
Println(voltage&","¤t)
In LabVIEW, it will look like this:

09-23-2019 09:11 AM
@RavensFan wrote:
In your Arduino code, do a single
Println(voltage&","¤t)
In LabVIEW, it will look like this:
Is it ok i make a single line now ?
is it fine
and can you tell me where i find that type of string which you put after VISA read block.
Thanks
PS: I think i m close to my success.
09-23-2019 09:27 AM
@RavensFan wrote:
In your Arduino code, do a single
Println(voltage&","¤t)
In LabVIEW, it will look like this:
I upload the both picture of VI and the results at COM port of Arduino as u said me.
I get this error which is in PNG.
Thanks
09-23-2019 09:44 AM
@maazqaiser wrote:I get this error which is in PNG.
That is because you are not meeting the format being sent. Change the format string to be "V:%fV I:%fA". Of course, I am assuming you used a space in between your values and not a tab.