LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino Yun tcp/ip with Labview

Xbee? Zigbee?
0 Kudos
Message 11 of 18
(3,586 Views)

What if I do not want extra component , just the arduino yun itself.

0 Kudos
Message 12 of 18
(3,575 Views)
Have you read the specs for what you bought? You already said no to the built-in Wi-Fi so what else is there?
0 Kudos
Message 13 of 18
(3,568 Views)

Oh so sorry . Right now I am using Yun's network . I am trying to communicate with my computer labview(client) to my yun (server). I tried to communicate  using TCP/IP but no data was recieved nor sent out.Here below is what I have done . Please guide me on where am I wrong. 

 

 

 

derp4.png

 

 

 

 

 

 

Here is the code I used for my yun

i change it a little from the example

 

#include <SPI.h>
#include <Ethernet.h>
#include<Console.h>
// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network.
// gateway and subnet are optional:
byte mac[] = {
0x90, 0xA2, 0XDA , 0XF0 , 0X24 , 0X23
};
IPAddress ip(192, 168, 240, 117);
EthernetServer server(3477);
boolean alreadyConnected = false; // whether or not the client was connected previously

void setup() {
// initialize the ethernet device
Ethernet.begin(mac, ip);
// start listening for clients
server.begin();
Bridge.begin(); // Initialize Bridge
Console.begin();

// Open serial communications and wait for port to open:
while (!Console);


Console.print("Chat server address:");
Console.println(Ethernet.localIP());
}

void loop() {
// wait for a new client:
EthernetClient client = server.available();

// when the client sends the first byte, say hello:
if (client) {
if (!alreadyConnected) {
// clead out the input buffer:
client.flush();
Console.println("HI");
client.println("Hello, client!");
alreadyConnected = true;
}

if (client.available() > 0) {
// read the bytes incoming from the client:
char thisChar = client.read();
// echo the bytes back to the client:
server.write(thisChar);
// echo the bytes to the server as well:
Console.write(thisChar);
}
}
}

 

I am unable to send nor receive . HELPP!!

0 Kudos
Message 14 of 18
(3,551 Views)

FYI .I am getting error 63 on my labview. Unable to send out data to my arduino. 

0 Kudos
Message 15 of 18
(3,542 Views)

 

How do you success of using it at the end?

 

0 Kudos
Message 16 of 18
(3,313 Views)

How do you success of using it at the end?

0 Kudos
Message 17 of 18
(3,271 Views)

were you successfull in doing it. I need to do the same. Kindly reply

Thanks & Regards,
Bharath Kumar
GCentral
0 Kudos
Message 18 of 18
(3,196 Views)