Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer an image through serial port from PC to PC

Solved!
Go to solution

Hi

 

no problem.

The best way is to pack data in small blocks (upt 1k seems nice)

Send not only the block but also the size (as before) and the blocknumber (start at 1)

The last chunk can be send with blocknumber -1, or the total size  has been transferred with the first block.

Before you write the next block wait for an acknowledgement from the other side.

If no acknowledgement comes the connection is broken and you have to wait, either a fixed time or until you get a message from the other side that it is OK to continue.

greetings from the Netherlands
Message 11 of 22
(2,423 Views)

ya,i have done it,but it would be better if i can detect the link is live or not.so that the transmitter does not need to be polled.if i don't have any other option,one that you have mentioned is the best way to do.thank you for your help.and i will upload the completed programs for your consideration as soon as possible.

regards, 

shanaka 

0 Kudos
Message 12 of 22
(2,413 Views)
by the way,i will try to use set break.vi and detect break.vi as given in examples. 
0 Kudos
Message 13 of 22
(2,410 Views)

Hi

 

maybe you can leave the polling to the operating system. 

Does anybody know how to create an event on an incoming character on the serial line?

greetings from the Netherlands
0 Kudos
Message 14 of 22
(2,397 Views)

Hi,

These are the File transfer VIs.i have simulated the line break with a pause button in the transmitter or the reader side.

and it is working fine.but still could not get any information of how to detect the broken serial line while both transmitter and the receiver are running.

 

Regards,

Shanaka 

0 Kudos
Message 15 of 22
(2,368 Views)

Hello everyone!

I am a beginner with Labview. I have a prolem with controlling PC.

I want to control data from my friend's PC through labview (for instance,control graph wave).

Thank you in advance!

0 Kudos
Message 16 of 22
(2,019 Views)

Hi Joja,

 

Please respond with some more information on your setup. Are you using a Serial connection as well? If not this should be a brand new forum post. Do you both have the same version of LabVIEW or will you be using an executable? Can you post a screenshot or the VI?

 

 

Thank you,

 

Deborah Y.

Deborah Burke
NI Hardware and Drivers Product Manager
Certified LabVIEW Architect
0 Kudos
Message 17 of 22
(2,005 Views)

Hi Deborah Y!

I have labview 8.5 version and use USB-COM for transferring data between 2 PC. I have a problem that I don't know what is the function to transfer data from VISA read for plotting a graph. I attached the picture and file below. Please give me some advice !

Thank you in advance!

 

Download All
0 Kudos
Message 18 of 22
(1,996 Views)

Hi JoJa,

 

From your VISA Read, I'd suggest converting the output string using the String to Number VI (depending on if it's Decimal or Hexidecimal) then plotting that. Here is an example that may be helpful.

 

Cheers,

 

Deborah Y.

Deborah Burke
NI Hardware and Drivers Product Manager
Certified LabVIEW Architect
0 Kudos
Message 19 of 22
(1,990 Views)

Hi Deborah Y!

I have a problem to transfer data from my PC to my friend's PC through Labview version 8.5 (I used COM to transfer data). I tried many ways to get and recieve but I can't. For instance, I want to change frequency sin wave on my friend's PC through labview and vice verse. This is my front block I could try to do...Please give me some advice

Thank you very much

0 Kudos
Message 20 of 22
(1,980 Views)