how to send image

VISA; TCP/IP, CAN and similar protocols
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

how to send image

Сообщение masturah »

hi, how i want to build a program that can send file or image.below i attach a file where text can be sent.
Вложения
transmitter1.vi
(41.28 КБ) 415 скачиваний
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: how to send image

Сообщение Eugen Graf »

Hello masturah, please take my RS232 Terminal, there you will find two buttons to send a file and to receive data to a file, so you can send any file and image files.

You can download it from here:

RS232 Terminal
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: how to send image

Сообщение masturah »

thank u for your help.but i noticed that when i run the program that u give me, it has an error. can u please help me to correct the error.thank u again.
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: how to send image

Сообщение Eugen Graf »

Yes, of course I will do it, but I have to know which error you have.
This programm was created wit LabVIEW 8.0, which version do you have? Can you complete it in you forum-profile.
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: how to send image

Сообщение masturah »

ok thank u.i also use labVIEW 8.0.the problem is when i run it said block diagram error, subVI is missing.
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: how to send image

Сообщение Eugen Graf »

Ah, I know what you think. It's a VI at the end of BD. You can delete this VI. It will be not needed. Or take this VI from here.
Вложения
Exit if Runtime.vi
(11.23 КБ) 395 скачиваний
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: how to send image

Сообщение masturah »

thank u again.i have very little knowledge about labview.one more thing,how the program (easy rs232) working?what button that i need to clik first?the eye button or log in file?i dont know how the program working.thanks again.
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: how to send image

Сообщение Eugen Graf »

You don't need to klick on the "eye" button. :crazy:

You need two buttons on the top left. The one is for Send File, the other to Receive Data to File.

So you can start this VI on two PCs, than klick on the first one Log into File Button.
And on the other PC klick the Send File Button.

After all data are tranbsmitted, you can click the Log into File Button on the first PC to stop receiving and saving the file. So you have the transmitted file on your 1 PC.

P.S. and don't forget to open COM interface after starting VI :nono:
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: how to send image

Сообщение masturah »

i try to run the program but it cannot work.can u explain again 1 by 1 how to run the program.to run this program it must have 2 computer right?and this 2 computer must have this program right?then what i need to do?thank u again.
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: how to send image

Сообщение Eugen Graf »

You need to connect both PCs with a crossover RS232 cable.

1 PC) Start this programm on the first PC, select the right interface (COM1) and open using the connect/disconnect button. Click the Log Into File Button and select any file. So all data, which will be received on the interface will be logged into selected file.
2 PC) Start the programm, select the interface and open. Than click on the send file button and select any file for sending. Than this file will be transmitted to the other PC.

Ok?
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: how to send image

Сообщение masturah »

the file that i attach below contain 3 column for write program,how i want to recognize that i transmitt come from A,B and C?because my program now it transmitt randomly and i dont know it come from which part of write column.
Вложения
transmitter1.vi
(41.28 КБ) 383 скачивания
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: how to send image

Сообщение Eugen Graf »

What is your receiver?

If you want to know from which column the data comes, you can add the column name before usefull data. Than if you receive this data, you extract header (= column name) and usefull data.

Ok?
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: how to send image

Сообщение masturah »

i dont understand.what function og labview that i must use?array or what?can u explain more detail.
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: how to send image

Сообщение masturah »

my friend will do the receiver part.
Аватара пользователя
Eugen Graf

Activity Professionalism Silver Black
guru
guru
Сообщения: 6502
Зарегистрирован: 13 ноя 2007, 02:20
Награды: 4
Версия LabVIEW: 2009
Откуда: Saarbrücken
Контактная информация:

Re: how to send image

Сообщение Eugen Graf »

Hello masturah!

You can send e.g.

col1 8.2200
col3 9.5366
col1 2.4767

instead of

8.2200
9.5366
2.4767

so the receiver knows from where the data comes.
Ответить
  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Communcation with devices»