04-03-2024 12:29 PM
I am currently working on a gait sensor analysis system. I am using a circuit with esp8266 and mpu6050. The data from the sensor must be wirelessly transmitted via TCP protocol to labview to display 10 gait parameters on one waveform chart in real-time. Please see the VI that I have been working on, however I need advice on whether I am going in the right direction with my approach in order to move forward.
04-03-2024 01:11 PM - edited 04-03-2024 01:11 PM
Hi Stephen,
@StephenJohn wrote:
Please see the VI that I have been working on
Which VI?
When attaching your VI I recommend to downconvert the VI before uploading (File->Save for previous).
I prefer LV2019, others may like LV2021 or older…
04-11-2024 12:58 PM
I am currently creating a tcp server vi to receive information data from a circuit with esp8266 and mpu6050 to display one gait parameter on a waveform chart. Firstly I programmed the esp8266 using the following code and a connection failed output:
04-11-2024 02:40 PM
If you get "Connection failed" log entries it could mean for example
- the listener port in LabVIEW is incorrect
- the IP address of the LabVIEW server is incorrect
- a firewall is preventing an incoming connection
Here is what the VI should look like:
04-11-2024 08:11 PM
What are good ways to rectify these issues that may arise:
If you get "Connection failed" log entries it could mean for example
- the listener port in LabVIEW is incorrect
- the IP address of the LabVIEW server is incorrect
- a firewall is preventing an incoming connection
04-11-2024 08:16 PM
Please note that I am tasked with a gait sensor analysis system. It will consist of seven circuits each containing a battery, mpu6050 and esp8266 each measuring 10 gait parameters to connect to a labview server vi to display gait parameters on waveform charts, one chart for each circuit. How to create this VI?
04-11-2024 08:57 PM
Which function is connected to the waveform block?
04-12-2024 02:18 AM - edited 04-12-2024 02:24 AM
Hi Stephen,
@StephenJohn wrote:
Which function is connected to the waveform block?
Are you asking for "which function delivers the data for the waveform chart"?
It's a function to convert a string (pink wire) into numeric data (orange wire), so you should look inside the string palette…
Btw. it's a snippet in the previous message! You can drag&drop snippets into a block diagram as they actually contain code…
04-12-2024 04:01 AM
@StephenJohn wrote:
What are good ways to rectify these issues that may arise:
If you get "Connection failed" log entries it could mean for example
- the listener port in LabVIEW is incorrect
- the IP address of the LabVIEW server is incorrect
- a firewall is preventing an incoming connection
- use the same port number on the Arduino side (where it says "// Change to your LabVIEW TCP server port" in the source code) and on the LabVIEW side (the little blue box at the beginning of my snippet)
- find out the IP address of your LabVIEW-server and change it in the source code (where it says "// Change to your LabVIEW TCP server IP address")
- also make sure arduino and server are connected to the same network
- If you have Windows Defender Firewall, search for "allow apps" in start menu, which leads you here and allow LabVIEW to communicate. There should have been a prompt when you try listening for network connections with LabVIEW though. If you use anything else, check with your IT guys.
@StephenJohn wrote:
Please note that I am tasked with a gait sensor analysis system. It will consist of seven circuits each containing a battery, mpu6050 and esp8266 each measuring 10 gait parameters to connect to a labview server vi to display gait parameters on waveform charts, one chart for each circuit. How to create this VI?
You will have one loop that waits for incoming connections. Upon client connect, use start asynchronous call to launch a VI that handles the communication. That VI sends received to a display VI, by e.g. using a queue. The display VI can be the one that contains the incoming connection listener.
@StephenJohn wrote:
Which function is connected to the waveform block?
Frac/exp string to numer. If you download the image (using the download button - right click saving does not work, at least not in firefox), you can drag it onto your block diagram and have it decoded into LabVIEW nodes. It is called a snippet, because it contains LabVIEW metadata.
You send a string like "1.2\r\n" over the TCP connection. .println appends \r\n to the string, which is why I used CRLF mode for TCP read.
04-13-2024 12:11 AM
How to modify this VI to display 6 parameters on the one waveform chart?