sending and receive data randomly

VISA; TCP/IP, CAN and similar protocols

sending and receive data randomly

Postby masturah on 28 Mar 2008, 08:22

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
 
Posts: 29
Joined: 16 Jan 2008, 21:55
Location: malaysia
LabVIEW Version: 8.0
Karma: 0

Re: sending and receive data randomly

Postby masturah on 28 Mar 2008, 13:00

here i attach the transmitter and receiver file.
thanks :think:
Attachments
transmitter4.vi
(45.88 KiB) Downloaded 167 times
receiver.vi
(66.7 KiB) Downloaded 163 times
masturah
beginner
beginner
 
Posts: 29
Joined: 16 Jan 2008, 21:55
Location: malaysia
LabVIEW Version: 8.0
Karma: 0

Re: sending and receive data randomly

Postby Eugen Graf on 28 Mar 2008, 13:11

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.
User avatar
Eugen Graf
guru
guru
 
Posts: 6497
Joined: 13 Nov 2007, 03:20
Location: Saarbrücken
Medals: 4
Activity (1) Professionalism (1) Silver (1) Black (1)
LabVIEW Version: 2009
Karma: 301
CLAD MOD I/O VIP bloggers internet

Re: sending and receive data randomly

Postby masturah on 28 Mar 2008, 13:15

i dont understand.u mean at the receiver part i must modified?thank u :think:
masturah
beginner
beginner
 
Posts: 29
Joined: 16 Jan 2008, 21:55
Location: malaysia
LabVIEW Version: 8.0
Karma: 0

Re: sending and receive data randomly

Postby Eugen Graf on 28 Mar 2008, 13:20

Look here.
Attachments
Read&WriteExcel.PNG
Read&WriteExcel.PNG (6.12 KiB) Viewed 3324 times
User avatar
Eugen Graf
guru
guru
 
Posts: 6497
Joined: 13 Nov 2007, 03:20
Location: Saarbrücken
Medals: 4
Activity (1) Professionalism (1) Silver (1) Black (1)
LabVIEW Version: 2009
Karma: 301
CLAD MOD I/O VIP bloggers internet

Re: sending and receive data randomly

Postby masturah on 31 Mar 2008, 10:13

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:
masturah
beginner
beginner
 
Posts: 29
Joined: 16 Jan 2008, 21:55
Location: malaysia
LabVIEW Version: 8.0
Karma: 0

Re: sending and receive data randomly

Postby Eugen Graf on 31 Mar 2008, 16:01

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.
User avatar
Eugen Graf
guru
guru
 
Posts: 6497
Joined: 13 Nov 2007, 03:20
Location: Saarbrücken
Medals: 4
Activity (1) Professionalism (1) Silver (1) Black (1)
LabVIEW Version: 2009
Karma: 301
CLAD MOD I/O VIP bloggers internet

Re: sending and receive data randomly

Postby masturah on 31 Mar 2008, 23:22

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.
masturah
beginner
beginner
 
Posts: 29
Joined: 16 Jan 2008, 21:55
Location: malaysia
LabVIEW Version: 8.0
Karma: 0

Re: sending and receive data randomly

Postby Eugen Graf on 31 Mar 2008, 23:54

Look appended VI, it should work.
Attachments
WriteToSpreadsheet.PNG
receiver.vi
(42.71 KiB) Downloaded 145 times
User avatar
Eugen Graf
guru
guru
 
Posts: 6497
Joined: 13 Nov 2007, 03:20
Location: Saarbrücken
Medals: 4
Activity (1) Professionalism (1) Silver (1) Black (1)
LabVIEW Version: 2009
Karma: 301
CLAD MOD I/O VIP bloggers internet

Re: sending and receive data randomly

Postby masturah on 04 Apr 2008, 15:58

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:
Attachments
(TRANSMITTER CONFIRM JADI.vi
(53.81 KiB) Downloaded 135 times
masturah
beginner
beginner
 
Posts: 29
Joined: 16 Jan 2008, 21:55
Location: malaysia
LabVIEW Version: 8.0
Karma: 0

Re: sending and receive data randomly

Postby Eugen Graf on 05 Apr 2008, 00:30

masturah wrote: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?
User avatar
Eugen Graf
guru
guru
 
Posts: 6497
Joined: 13 Nov 2007, 03:20
Location: Saarbrücken
Medals: 4
Activity (1) Professionalism (1) Silver (1) Black (1)
LabVIEW Version: 2009
Karma: 301
CLAD MOD I/O VIP bloggers internet

Re: sending and receive data randomly

Postby masturah on 05 Apr 2008, 02:35

yes i want it to send randomly.please help me.thanks
masturah
beginner
beginner
 
Posts: 29
Joined: 16 Jan 2008, 21:55
Location: malaysia
LabVIEW Version: 8.0
Karma: 0

Re: sending and receive data randomly

Postby Eugen Graf on 05 Apr 2008, 02:38

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.
User avatar
Eugen Graf
guru
guru
 
Posts: 6497
Joined: 13 Nov 2007, 03:20
Location: Saarbrücken
Medals: 4
Activity (1) Professionalism (1) Silver (1) Black (1)
LabVIEW Version: 2009
Karma: 301
CLAD MOD I/O VIP bloggers internet

Re: sending and receive data randomly

Postby masturah on 05 Apr 2008, 02:44

can you show to me.but i try to put random number function.but it doesn't work
masturah
beginner
beginner
 
Posts: 29
Joined: 16 Jan 2008, 21:55
Location: malaysia
LabVIEW Version: 8.0
Karma: 0

Re: sending and receive data randomly

Postby masturah on 05 Apr 2008, 02:56

here i attach the file that i use random number vi.
Attachments
transmitter random2.vi
(49.1 KiB) Downloaded 155 times
masturah
beginner
beginner
 
Posts: 29
Joined: 16 Jan 2008, 21:55
Location: malaysia
LabVIEW Version: 8.0
Karma: 0

Next

Return to Communcation with devices

Who is online

Users browsing this forum: No registered users and 2 guests

cron