10-02-2012 09:09 AM
Aoa
Hello every one.
I have been using labview for last 3 months. I want to build a data communication application on labview. the application should be able to send any kind of files from one pc to other using serial radios. In 1st phase i created code which sends a text file from one pc to other. my VIs work fine when i use highlight execution button. but withiut this my vi hust mess up. i am attaching both send and recieve VIs. if any one has an idea please reply to my post.
It is working like this:
the trasmiter first sends the file size and then waits for an acknowledgment from reciever.
the reciever first recieves the file size and sends an ack.
the transmitter then sends the chunks to reciever
reciever after comparing file size decides abt completeion.
it is just for concept testing the code may look very rough but problem is that i am unable to run it without highlight execution button.
Thanks
Usman Asghar
Instrument Engineer
10-02-2012 09:34 AM
I don't see a VISA Write in the Receive. So I don't think you are sending the ACK.
Typically, if something only works with highlight execution on, there is a timing issue. I'm seeing instances where you are using property nodes to get/set values when a wire would do just fine. Possible race conditions from these.
Also, try to keep the flow from left to right. There are places where your error wire is doubling back and it becomes hard to follow.
10-02-2012 12:44 PM
I think i havent uploaded the correct version for recieve. in actual there is a an ack.......
what should i do. how can overcome the timming issue. secondly please tell me am i heading to correct way
regards
usman asghar