cancelar
Mostrando resultados para 
Pesquisar então 
Você quer dizer: 

How to read Serial Data from Arduino using labview VISA?

Resolvido!
Ir para a solução

Thanks,

DailyDose
...

It helped me a lot!

0 Kudos
Mensagem 51 de 143
4.161Exibições

Hey guys, I have another problem.
Three different kinds of data are been generated and they can be read on Arduino serial monitor. I would like to read the data on LabView interface; but the first data should be read and then it should be shown on Labview interface. Likewise, for the second and third data it should happen the same thing; however, these three kinds of data should be read on different indicators.
I do not know what I should do since the Labview program read everything that is in the Arduino serial monitor and for a specific indicator I suppose to show a specific data from serial monitor.
If you could help me I would be really grateful.
Thanks!   

0 Kudos
Mensagem 52 de 143
4.153Exibições

What kind of data are you trying to send?  String or Values.

Mensagem 53 de 143
4.143Exibições
How is the data separated? Is it sent as one string with a terminator at the end and comma/tab between values? Or do you prepend something to each value such as ch1=? Obviously, if each channel is transmitted separately, you have no idea which channel is which.
0 Kudos
Mensagem 54 de 143
4.140Exibições

what he says   is the most recommended, place a delimiter between each data sent 

 

0 Kudos
Mensagem 55 de 143
4.130Exibições

I'm trying to send values. There are three different values that I need to send and I need to show them separated.

0 Kudos
Mensagem 56 de 143
4.107Exibições
Unless you show exactly how you are receiving the data now, it is impossible to say how to separate them, As mentioned, you cannot separate them if you are not sending correctly.
0 Kudos
Mensagem 57 de 143
4.101Exibições

dbarbosa@lakehead.ca wrote:

I'm trying to send values. There are three different values that I need to send and I need to show them separated.


Not trying to be rude man, but I feel as though I've already shown/explained how to do this.  There's a SubVI in my attachment that, after receiving the bits, splits them into readable data.  Like I've said. you need to send the data in the appropriate order and then break it down after receiving and storing.  Values = binary.  If you're wanting to send a value of 1012 (just a random number for example), you'll need to use the Serial.Write and send the data as separate single bytes.  Then you'll need to use that receive and store it appropriately then break it down the same way you received it.  It's all in that VI I attached man.

Mensagem 58 de 143
4.091Exibições

haha... that's ok, man!
Thanks a lot.
However, I'm not able to open your SubVI block. Do you break the data inside of this block? Your code appears like that picture I attached here.
Well, I appreciate your attention so far... I really thank you!

0 Kudos
Mensagem 59 de 143
4.078Exibições
Since you are unwilling to provide the requested and necessary information, let's consider your question answered and this thread closed.
0 Kudos
Mensagem 60 de 143
4.071Exibições