07-24-2009 04:28 AM
im new to labview...
i would like to know how to read data serially??
I have done the required initialisation, serial read and then when i try to run it...it shows some error stating some device driver is not located or loaded. I tried installing it again but it still shows the error...
Kindly help....
And one more query is that on recieving data serially how can i plot it in form of a graph??
07-24-2009 04:32 AM
Hi!
Would you try this tool first:
http://labviewportal.eu/en/device-i-o/79-rs232-terminal
If it works without errors, you can adapt it for your issue.
07-24-2009 04:42 AM
this is wat i actually designed...
I would actually want to know if this is sufficient for the operation of reading data serially through a serial port and displayin the same in a string
07-24-2009 04:59 AM
07-25-2009 12:16 AM - edited 07-25-2009 12:18 AM
Here is the screenshot of that VI.
Not much is going to happen with this VI. It is all going to execute in one shot. You will configure the port which will basically opens it. You check the number of bytes at the port. This will be zero since you just opened the port. Or it will be a very small number if your device is continually sending data and you just happen to get some bytes in the buffer between the near instantaneous time of opening the port and check the number of bytes. Then you will read that number of bytes, probably none, or just a couple of the full message. Then you close the port which will prevent any more data from showing up in the buffer.
Does your device require a command to be sent to it before it returns any data?
Look at the example Basic Serial Write and Read.Vi in the example finder and understand how that works. Then look at the other serial examples. You will probably want to repeatedly get data which means putting the write, wait, and read in a loop. Put the configure port ahead of the loop, and the close port after the loop.
07-26-2009 08:39 AM
07-27-2009 12:15 AM
07-27-2009 12:48 AM
07-27-2009 01:12 AM
ya we had selected and entered COM1 previously but we did get the same error...
by default u have refresh as the option but we selected COM1
07-27-2009 01:17 AM