sending and receive data randomly

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

sending and receive data randomly

Сообщение masturah »

hello..

how i want to bulid a program that can transmit data randomly.example i have 3 column which is A,B and C.i want this data from this 3 column transmit randomly.here i attach the transmitter and receiver file.actually the transmitter program working.but the problem comes when the receiver can not receive the data that transmit randomly.can u check for me if my program is ok or not.and mayb the receiver part has a problem.this transmitter and receiver program is separate program, it means transmitter program in another computer and receiver program in another computer.
:dntknw: thank u
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: sending and receive data randomly

Сообщение masturah »

here i attach the transmitter and receiver file.
thanks :think:
Вложения
transmitter4.vi
(45.88 КБ) 399 скачиваний
receiver.vi
(66.7 КБ) 373 скачивания
Аватара пользователя
Eugen Graf

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

Re: sending and receive data randomly

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

Yes, your receiver can receive data, but will write them into excel only after you stopped your while loop. Here is the problem. You have to place your Add Data For Loop into the while loop. So place Opening and labeling before your main while loop, adding data into the loop and closing after the while loop.
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: sending and receive data randomly

Сообщение masturah »

i dont understand.u mean at the receiver part i must modified?thank u :think:
Аватара пользователя
Eugen Graf

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

Re: sending and receive data randomly

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

Look here.
Вложения
Read&WriteExcel.PNG
Read&WriteExcel.PNG (6.12 КБ) 14481 просмотр
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: sending and receive data randomly

Сообщение masturah »

regarding on the receiver part(file that i attach before) the data that receive from transmitter cannot be store in table.the old data cannot be store in table and it replace with the new data.now how i want to make the data store in the table although the new data comes? :think:
Аватара пользователя
Eugen Graf

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

Re: sending and receive data randomly

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

Hello masturah, sorry but I don't have ExcelVIs used in your ReceiverVI. So I can't say you how to do it. Do you use Report Generation Toolkit? Or post here your Excel Library.
Why do you use Excel? Can't you take common spreadsheet file to save your received data? Spreadsheet file is a ASCII Text Table File. So you can open and edit them with Excel too. If you want an axample how to save received data into a spreadsheet file, so I can show you.
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: sending and receive data randomly

Сообщение masturah »

can u show me the example of what u said? my objective is only to receive the data randomly and store in spread sheet.the excel part i just learn from example in labview itself.
Аватара пользователя
Eugen Graf

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

Re: sending and receive data randomly

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

Look appended VI, it should work.
Вложения
WriteToSpreadsheet.PNG
receiver.vi
(42.71 КБ) 359 скачиваний
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: sending and receive data randomly

Сообщение masturah »

hello eg.my transmitter program can not run randomly,here i attach new file..how i want to do this.i want column A send then column B then column c and then mayb column C start first. it send randomly.please help me :crazy:
Вложения
(TRANSMITTER CONFIRM JADI.vi
(53.81 КБ) 347 скачиваний
Аватара пользователя
Eugen Graf

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

Re: sending and receive data randomly

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

masturah писал(а):hello eg.my transmitter program can not run randomly,here i attach new file..how i want to do this.i want column A send then column B then column c and then mayb column C start first. it send randomly.please help me :crazy:
I don`t understand you, do you want to send randomly or not?
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: sending and receive data randomly

Сообщение masturah »

yes i want it to send randomly.please help me.thanks
Аватара пользователя
Eugen Graf

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

Re: sending and receive data randomly

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

If you want to send it randomly, so use Random Number VI to get any number betwen 0 and 1, then multiplicate this number with e.g. 10000 and connect to the wait ms VI in each while loop.
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: sending and receive data randomly

Сообщение masturah »

can you show to me.but i try to put random number function.but it doesn't work
masturah
beginner
beginner
Сообщения: 29
Зарегистрирован: 16 янв 2008, 20:55
Версия LabVIEW: 8.0
Откуда: malaysia
Контактная информация:

Re: sending and receive data randomly

Сообщение masturah »

here i attach the file that i use random number vi.
Вложения
transmitter random2.vi
(49.1 КБ) 403 скачивания
Ответить
  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

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