LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file read

Hi,

 

I need to transfer text file from one PC to another PC using RS232 cable. I designed the block using VISA and I am stucked with FILE READ. Kindly help me to fix this issue.

 

 

0 Kudos
Message 1 of 7
(3,149 Views)

You need to supply a file to save the data to.  For the Bytes to Read, just wire that to the Bytes At Port.  I would also make sure the serial port is NOT configured to have a termination character.  And you shouldn't have a While loop around this code.  You only need to send that file once.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(3,112 Views)

I dont know what block will connect to the filename in READ function.

0 Kudos
Message 3 of 7
(3,105 Views)

I connected the control to the filename. I am getting this error. I need the file to be saved in location of another PC.

 

I attached the screenshot of the error message for your reference

 

Pls help me

0 Kudos
Message 4 of 7
(3,098 Views)

Hi ummy,

 

to "save in location of another PC" you need to execute this code on that other PC!

One PC acts as sender/server, the ohter PC acts as receiver/client. Both need appropriate software to handle communication...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 7
(3,081 Views)

Hi,

 

To run application.exe in PC. Do you need LABVIEW tool

0 Kudos
Message 6 of 7
(3,038 Views)
You need the appropriate run time engine and any hardware drivers (i.e. NI-VISA).
0 Kudos
Message 7 of 7
(3,018 Views)