Hi, I'm currently using labview to receive data sent from the microcontroller PIC18f452. I'm using visa to receive data from the pic. But the problem is the read result always zero!! I'm use a virtual serial port to interface Proteus with labview.. Also i connect the RS-232 in Proteus to a virtual terminal to enable me to see what is sent.. Although there is an output in this virtual terminal and i see that data is sent (but not alwayes!! som times it dosn't appear any thing); i cant see that this data is sent to labview.. also the baud-rate of sent and received bytes in Virtual serial port is zero>> this picture show the problem please >> i need your help>> and i need someone to advice what to do or what i need to solve the problem .. Regards.
There are lots of reasons why this many not be working. You don't show us any code, so it's impossible to say with certainty. You may have the VISA configured to stop reading when it sees a termination character. You may not. You may not be waiting long enough for a read. You may be. Is the PIC always sending data, or does it send it only when it receives a command? If the latter you may not be appending the proper termination character that the PIC program expects to see to indicate the end of a message. Then again, you may be.
Please upload your code.
Thanks.. a lot for your replay..
I think you are right in all what you say.. I post in the attachments the code and the Proteus .. the project is very large>> so i will give you a simple idea of it..
As i say before the principal idea for this project is to send the weather sensor results from the first circuit (the code to do that is "transmitter" ) and then receive it in the other circuit via RF module ( the code to recive data in the other pic and send it to PC via RS-232 is the " try"). I think the problem is in this code "try"..
if you need to attach the labview >> i will do that
I wasn't asking for the PIC code. I was asking for the LabVIEW code. That's the part that's not working, right?
I'm didn't wright any code in the labview. i depend only in the graphical interface. my work on labviw is in the attachment.. please.. see it and check it for me>> where is the wrong ??
I'm didn't wright any code in the labview. i depend only in the graphical interface.
The "graphical interface" that you are referring to is the code. LabVIEW is a graphical programming environment. Code does not have to be just text.
You are not programming properly in LabVIEW. You are programming as if you are using a text-based language. You also have a ton of problems with your code. I can't list them all, but some specific issues:
thanks a lot for your replay and your advice >> really there is a lot of things that i didn't take it in my account.
I'am student, and im working on project thats im using LABWINDOWD/CVI (2010) and Pic 18f4550.
I wrote my program on LABWINDOWS, and i program my piv in MICRO PRO C (version 5.60)
the program of the pic is to read what i write (i mean i write text and i must receive the same text).
i installed Visa, and i arrived to make the connection between ISIS and the LABWINDOWS (i mean i test everything vitually)
but when i write the text, the pic receivit without problems, and the pic doesn't send me the text, and i the LAbwindows show me that i have problem in this function (viread).
Actually i dont know the problem, and i need ur help because i need to start working practiclly on the project soon, and i nees to make sure that virtually i dont have no problem.