11-12-2019 05:36 AM
I'm a beginner for LabVIEW and Arduino. I wanted to display many parameters from Arduino or any device data through serial communication on to LabVIEW custom dashboard. plz someone help reg. the same.
11-12-2019 06:22 AM
In general, this is probably quite difficult.
If you have a more specific set of requirements, it shouldn't be too hard.
Likely what you want is somewhere in the middle...
What "many parameters" do you want to display? How should they be displayed?
What other "device data" (and do you mean other devices, or other data from your Arduino?) do you want to display? And how should that be displayed?
etc...
Serial communication in LabVIEW is usually handled with the VISA nodes, for which several examples are available both online and built-in to LabVIEW (use "Help > Find Examples..."). Avoid using anything that contains "Bytes at Port" when communicating with an Arduino that you're programming - you can always use a "termination character" such as Line Feed (LF, /n, 0x10) instead.
11-12-2019 03:27 PM - edited 11-12-2019 03:32 PM
Sounds like you want to be able to monitor the serial traffic between an Arduino and some other program.
Easier said than done...
What you are describing is a serial "bus sniffer", these require some additional hardware or programming that is far beyond what a self described "beginner for LabVIEW" could do.
The main problem is dealing with Windows OS and the serial port. Once one program (say the Arduino IDE) has the serial port open then another program (like your LabVIEW serial sniffer) can not gain access to the serial port or vice versa because Windows has the resource locked so only one program can access it at a time
11-12-2019 07:56 PM
1. sir, atleast share me any data which displays arguino sensor valuue in labview dashboard custom gauge.
2. cant i find any serial monitor or plotter (like in arduino ide) in labview by default.
3. i want serial data to be displayed in labview dashboard( any or custom gauges).
11-13-2019 05:45 AM
@nandhu123 wrote:
1. sir, atleast share me any data which displays arguino sensor valuue in labview dashboard custom gauge.
2. cant i find any serial monitor or plotter (like in arduino ide) in labview by default.
3. i want serial data to be displayed in labview dashboard( any or custom gauges).
Note that parts 2 and 3 are separate from 1 - part 1 assumes the LINX Arduino application and then simplifies getting specific pin values and so on, parts 2 and 3 assume you want to read (or write) values to a program that you or someone else has written and know the message formatting for.
11-13-2019 09:10 AM
@nandhu123 wrote:
1. sir, atleast share me any data which displays arguino sensor valuue in labview dashboard custom gauge.
2. cant i find any serial monitor or plotter (like in arduino ide) in labview by default.
3. i want serial data to be displayed in labview dashboard( any or custom gauges).
Ah... Your first post was not very clear. It sounds like you just want to display sensor values on the screen in a chart of other gauges?
You are right there is no "default" thing like that. LabVIEW is a programming language. So all of the pieces you need are contained in the "default" LabVIEW.
You just have to wire them up in the proper order...
In general there a couple of ways to use an Arduino with LabVIEW
If you chose method 2 here's a couple pointers...
An Arduino installs a virtual serial port when it is first plugged into your computer
Use that serial port and NI-VISA to communicate with the Arduino just like any other device on a serial port
Doing this you have full control over the serial protocol, query and response formats since you will be writing the Arduno code
Send data using the Arduino PrintLn function as it appends a LF to the end of the data. You can use that LF as a Termination Corrector in your VISA Reads
Separate data by comas (data1,data2,data3) then you can use "Spreadsheet string to array" with the Delimiter set to a comma to parse the data from the string right into a numeric array.
Get your Arduino code to work with the Arduino Serial Monitor, then work on the LabVIEW to talk to it