Send data from sd to labview over ethernet

Please i have wiznet 5100 module and sd card module waveshare
I want to send data from sd to labview over ethernet
When i run the code one of them work some time sd and sometime ethernet
Can you help me please i find a wrong ip adress or sd failed

What is the LabVIEW code doing?
How is it set up to listen for Ethernet traffic?

Can you help me please

Without seeing your code? Seems unlikely.

How is labview connecting to the internet? Is it being a server or a client? Which role is the Arduino performing?

I program the arduino as a server then he will reead data from sd and send it over ethernet the labview will read data by the ip of the arduino than he will write all the data send it from arduino :wink:

What type of file are you going to download? I have server code in the playground, but I’m on my iPhone. If you don’t find it, I’ll post a link to it later.

arbi20010:
I program the arduino as a server then he will reead data from sd and send it over ethernet the labview will read data by the ip of the arduino than he will write all the data send it from arduino :wink:

Do you know much about programming in LabVIEW?

I have a program in labview where i have he can read the data from arduino over ethernet tcp
My problem is when i run the serial monitor in arduino he write me that sd failed and write ip correctly but when i disconnect the ethernet module from the 3.3v the sd return ok
My problem is howa i can run sd and ethernet in the same time
Where i want
Sd ok
Ethernet ip correct :wink:

arbi20010:
My problem is howa i can run sd and ethernet in the same time

How would we know?

Only you have the LabVIEW program which you claim works.

Only you have the Arduino sketch.

Did you think we can read minds?

First thing in setup, do this

. digitalWrite(10,HIGH);
  digitalWrite(4,HIGH);

I have already have a correctly code and a labview read all the data in text from the sd card but this day he wont work !!! I dont k ow the problem ! I can only intilialise one of them sd card or ethernet they cant not i init the both
Have you an exemple of code where i can test it

arbi20010:
I have already have a correctly code and a labview read all the data in text from the sd card but this day he wont work !!! I dont k ow the problem ! I can only intilialise one of them sd card or ethernet they cant not i init the both
Have you an exemple of code where i can test it

You have correct code, but all of sudden today, it won't work.

:o

can you send me setup() function to intialise sd + ethernet together and can use it after the both in loop ()

Did you add those two lines of code I posted above?

Sd init
Ethernet init

I add the2 line before sd or before ethernet ?

First thing means before both of the begin calls.

Can i use the same 3.3v for the 2 module ?

Depends on the modules.

void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}

Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.print("Initializing SD card...");
if (!SD.begin(4)) {
Serial.println("initialization failed!");
return;
}
Serial.println("initialization done.");

Ethernet.begin(mac, ip);
server.begin();
Serial.print("server is at ");
Serial.println(Ethernet.localIP());
}

this is my setup
when i run it
he write me sd failed
when i disconnect the ethernet the sd passed in ok
what is the matter ?

Are you not paying attention?

void setup() {

  //disable SD and w5100 SPI
  digitalWrite(4,HIGH);
  digitalWrite(10,HIGH);

  Serial.begin(9600);

  Serial.print("Initializing SD card...");   
  if (!SD.begin(4)) {
    Serial.println("initialization failed!");
    return;
  }
  Serial.println("initialization done.");

  Ethernet.begin(mac, ip);
  server.begin();
  Serial.print("server is at ");
  Serial.println(Ethernet.localIP());
}

Are you not paying attention?

Obviously.