03-16-2010 07:59 AM
i am a beginner.I want to transfer data from my transceiver and display it in labview.plz tell me that can how can i interfacemy transceiver to labview using rs232c.i badly need it.plz reply asap....thank you
Solved! Go to Solution.
03-16-2010 09:26 AM
First, do some homework:
Then, come back and ask something a bit more specific.
03-18-2010 11:38 AM
03-18-2010 05:28 PM
There are examples that ship with LabVIEW that show you how to do serial communication. Have you looked at them? Just open the Example Finder and search for "serial". Make sure you set the correct values for the serial communication, especially the termination character, if the data coming into the computer ends with a termination character.
Have you first verified that you can talk to your device using something simple, like HyperTerminal if you're on Windows?
03-19-2010 07:15 AM
03-19-2010 09:22 AM
A loopback test does nothing more than verify that your pc's com port is working. It does not verify that the cable is correct for the instrument nor does it verify that your com settings are correct for the instrument. As smercurio_fc mentions, you should really verify all of this with a working terminal emulation program such as Hyperterminal before you attempt to write any code. At the very least, you will be able to get help from the vendor with Hyperterminal problems. There aer so many things that could be wrong and you have not mentioned any steps that you have made to fix any problems. Do you know whether you are using a null modem or straight-through cable? Do you know what type the instrument requires? Do you know the format of the commands you must send ? ASCII, Hex, checksum required, termination character?
You are the one with the instrument and the manual. You have not provided the make and model or any documentation. You will obviously have to do most of the troubleshooting yourself but information like this is pretty important when asking for help, don't you think?
03-19-2010 09:31 AM
When you say you're able to communicate with it does this mean you're able to use, for example, the Basic Serial Write and Read example to send commands and receive data? Or, are you just able to communicate with it using another terminal program?
Based on your last post I'm guessing you have little to no experience in software development. Unfortunately, we can't really write the program for you. I can offer a suggestion to start by going through the LabVIEW tutorials so you get a basic understanding of the language. You can find more material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free. I would suggest looking into using some basic application design patterns. The state machine is a pretty solid one to start with.
You also basically need to start definining the scope of your project. Is this intended for your own use only, or for something else? When you say GUI are you referring to something with a professional look, or just a front panel for your own use? Do you need to be able to save data? If so, where, at what rate, and in what format?
03-19-2010 10:38 AM
03-19-2010 01:23 PM
Well, there are numerous user interface controls that you can use. If you stick with the ones in the System Controls palette you should get a pretty good look. You can also peruse the work that's been done in the UI Interest Group.
As for Excel, I would suggest that you use the Write to Spreadsheet File VI to start off with. This saves to a delimited text file that you can open in Excel. If you absolutely must save it to an Excel workbook then you will need to either get the Report Generation Toolkit, or write the code yourself using ActiveX. There are a couple of examples that ship with LabVIEW, and there are also the links to other examples posted in the Excel thread.
04-12-2010 08:18 AM