LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying two signals using LabVIEW from Arduino board

Solved!
Go to solution

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: 

https://youtu.be/yEzcP8U2Nz8

https://youtu.be/kuBCcNRFj3w



 

0 Kudos
Message 11 of 23
(1,124 Views)

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: 

https://youtu.be/yEzcP8U2Nz8

https://youtu.be/kuBCcNRFj3w



 


 

0 Kudos
Message 12 of 23
(1,118 Views)

As Master @ 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. 

0 Kudos
Message 13 of 23
(1,115 Views)

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 14 of 23
(1,102 Views)

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

Download All
0 Kudos
Message 15 of 23
(1,100 Views)

Can you adjust my VI. I upload it in thread please. I really donot know much about the match pattern.

Please

Thanks

 

Maaz

0 Kudos
Message 16 of 23
(1,098 Views)

In your Arduino code,   do a single

Println(voltage&","&current)

 

In LabVIEW, it will look like this:

 

 

0 Kudos
Message 17 of 23
(1,093 Views)

@RavensFan wrote:

In your Arduino code,   do a single

Println(voltage&","&current)

 

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.

0 Kudos
Message 18 of 23
(1,074 Views)

@RavensFan wrote:

In your Arduino code,   do a single

Println(voltage&","&current)

 

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.

 

ThanksError in execution.PNGIn one single line.PNG

0 Kudos
Message 19 of 23
(1,068 Views)

@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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 20 of 23
(1,062 Views)