LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

nodeMCU and Labview

hello my name is dodi, i am from indonesia, i am working on my final project in the last semester, i want to move nodeMCU data to labview,
- nodeMCU has uploaded the wifiscan program to the arduino IDE
(this program is available when we install the nodeMCU library on the arduino IDE)
- nodeMCU is connected using USB Type B to the laptop
then how do i move wifiscan data to labview ?,
please give me suggestions, references, sample programs, etc. to achieve my goals.
thank you

 

wifiscan.png

0 Kudos
Message 1 of 8
(3,473 Views)

You could have LabVIEW open com port 5 instead of the debug window and use VISA Read on the serial port to read the data.

0 Kudos
Message 2 of 8
(3,437 Views)

I have tried to read the wifi scan data on nodeMCU using visa serial, but it has not been successful and read buffer does not display data

visa_serial_port_1.pngvisa_serial_port_2.pngvisa_serial_port_3.pngvisa_serial_port_4.png

0 Kudos
Message 3 of 8
(3,404 Views)

You are trying to run your while loop, as quick as you can and you are overwritting your data everytime. So you could be receiving valid data, but instantly overwrriting it with blank data. Your last attempt seems to be the closest to what it should be.

 

Here is a snippet from a project I did on an Arduino. If you upload the in-built Arduino example located in the Arduino IDE File > Examples > Basics > ReadAnalogVoltage, you should be able to succesfully receive the data using the VI snippet below (I just tested it). Then you can adapt it to your needs. Obviously, change the communication settings to whatever you are using.

 

Read Arduino Serial.png

0 Kudos
Message 4 of 8
(3,388 Views)

You should watch crossrulz excellent presentation from NI week.

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 5 of 8
(3,379 Views)

can you solve the problem?

0 Kudos
Message 6 of 8
(3,266 Views)

Yes

0 Kudos
Message 7 of 8
(3,260 Views)

boleh minta tutor, referensi, atau sample projectnya bang?

0 Kudos
Message 8 of 8
(599 Views)