LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Labview receiving data continuously

hye, i am syanita.
here i attach the file that i working on. Basically, i am using the MAXTREAM wireless kit for the hardware.
 
 


syanitaa wrote:
hello...
i'm final year student in one of the university in Malaysia. In my final project, im doing the RS232 Interface Wireless Receiver. In this project,i have been having the some difficulties, i dunno how to received the data continuously. which means, Example: If i send word "HELLO", i will also received "HELLO". But the problem is..i want the HELLO word is received continuously.
 
Send:  HELLO
 
Received: HELLO
                 HELLO
                 HELLO
                 HELLO
                 .....many times....
 
So, can sumbody help me...i really need ur help regarding on this..thanx...
 



0 Kudos
Message 11 of 30
(1,447 Views)
hye, i am syanita.
here i attach the file that i working on. Basically, i am using the MAXTREAM wireless kit for the hardware.
 
 


syanitaa wrote:
hello...
i'm final year student in one of the university in Malaysia. In my final project, im doing the RS232 Interface Wireless Receiver. In this project,i have been having the some difficulties, i dunno how to received the data continuously. which means, Example: If i send word "HELLO", i will also received "HELLO". But the problem is..i want the HELLO word is received continuously.
 
Send:  HELLO
 
Received: HELLO
                 HELLO
                 HELLO
                 HELLO
                 .....many times....
 
So, can sumbody help me...i really need ur help regarding on this..thanx...
 



0 Kudos
Message 12 of 30
(1,447 Views)
Hi syanita,

when you want to "receive" the answer more than once you have to:
- use a loop around the "read serial port" -part (you don't need to branch the wires before the second case structure!)
- read once and output more than once (e.g. when there
is no new data available) - also requiring a loop

Does your wireless device send the answer more than once? Usually devices only send just one answer...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 30
(1,446 Views)
Sorry....at my university here, the server is down..
so i have to keep refresh, because the page is shown "cannot be displayed", sorry the for tecnical problem
Sorry...
0 Kudos
Message 14 of 30
(1,445 Views)

Well, you don't seem to have much problem continuously posting.Smiley Wink

In order to write and read continuously, you are going to need a while loop. What you've posted is nothing more than a shipping example. What exactly are you going to do? Is one pc going to do nothing but send and another pc just do a read? If that's the case, then you are going to have to separate the write and read into separate VIs. In the read VI, you should use the VISA Bytes at Serial Port and do the VISA Read only when data is available.

0 Kudos
Message 15 of 30
(1,444 Views)

Well, you don't seem to have much problem continuously posting.

In order to write and read continuously, you are going to need a while loop. What you've posted is nothing more than a shipping example. What exactly are you going to do? Is one pc going to do nothing but send and another pc just do a read? If that's the case, then you are going to have to separate the write and read into separate VIs. In the read VI, you should use the VISA Bytes at Serial Port and do the VISA Read only when data is available.

 

sorry, internet is down..sory for the late..

Actually, my project is wireless RS232 receiver. my part is only the receiver part. U are right, that one pc is doing nothing and juz read. and the other pc is to sending msg or data to the receiver. You are correct, because i should have the separated read and write. Im using the maxstream as the hardware. the hardware i have been ordered. Before waiting the hardware arrived, i have doing the serial loop back to test my program. i also need the transmiiter part in order to test the receiver can received or not. My friend is doing the transmitter part

0 Kudos
Message 16 of 30
(1,435 Views)

Well, you don't seem to have much problem continuously posting.

In order to write and read continuously, you are going to need a while loop. What you've posted is nothing more than a shipping example. What exactly are you going to do? Is one pc going to do nothing but send and another pc just do a read? If that's the case, then you are going to have to separate the write and read into separate VIs. In the read VI, you should use the VISA Bytes at Serial Port and do the VISA Read only when data is available.

 

sorry, internet is down..sory for the late..

Actually, my project is wireless RS232 receiver. my part is only the receiver part. U are right, that one pc is doing nothing and juz read. and the other pc is to sending msg or data to the receiver. You are correct, because i should have the separated read and write. Im using the maxstream as the hardware. the hardware i have been ordered. Before waiting the hardware arrived, i have doing the serial loop back to test my program. i also need the transmiiter part in order to test the receiver can received or not. My friend is doing the transmitter part

0 Kudos
Message 17 of 30
(1,436 Views)
Hi syanita,

when you want to "receive" the answer more than once you have to:
- use a loop around the "read serial port" -part (you don't need to branch the wires before the second case structure!)
- read once and output more than once (e.g. when there
is no new data available) - also requiring a loop

Does your wireless device send the answer more than once? Usually devices only send just one answer...

 

Best regards,
GerdW


using LV 6.1, 7.0, 7.1, 8.0.1, 8.21 and 8.5 on

i am using the LV8.0.  Actually like chatting.. My pc(receiver) is only received message or data from the other pc(transmitter). when the pc(transmitter) send word " HYE"...the receiver pc will receiver "HYE"

then, the transmitter pc is send "HOW ARE YOU". the receiver pc will received "HOW ARE YOU", however the word 'HYE" is not delete..

it still have the work "HYE"

 

transmitter PC                                                                         receiver PC

"HYE"                                                                                         "HYE"

 

"HOW ARE YOU"                                                                     "HYE"  

                                                                                                  "HOW ARE YOU" 

0 Kudos
Message 18 of 30
(1,429 Views)
Hi syanita,

put the read part in a while loop, make a shift register in the loop, add the received string to the shift register to keep previous messages...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 19 of 30
(1,422 Views)
Hi syanita,

put the read part in a while loop, make a shift register in the loop, add the received string to the shift register to keep previous messages...
 
 
 
 
 
i have doing the " put the read part in a while loop, make a shift register in the loop", part ... but i dont know how to "add the received string to the shift register to keep previous messages"...
 
0 Kudos
Message 20 of 30
(1,412 Views)