06-30-2011 10:01 AM
I am currently working a project where I need to get some scales to communicate with LabView. I have contacted the maker of these scales (GK & GFK Scale) and he says that some other people have come to him with this question. He says the way to make the scale communicate with LabView is that I need to change the parameters of LabView to match the parameters of the scale. I was wondering how I would go about changing the parameters of LabView? He also mentioned that I would need to find the driver that will allow LabView to communicate with the scale properly. Oh and the scale will be connected to the computer I have LabView running on in the computer's serial port.
Sorry this was kinda lengthy.
Thanks
06-30-2011 10:06 AM
By "parameters of LabVIEW" I'm assuming you're talking about the serial port settings?
You will need to figure out what settings the scale will be using, then set them accordingly:
- Baud rate
- data bits
- stop bits
- parity
- flow control
- termination character
06-30-2011 10:41 AM - edited 06-30-2011 10:43 AM
Thanks Cory, this should work but is there any way of getting that data from the device I have hooked up to the serial port to read out on a something like a meter that is one the front diagram?
This is my first time working with something coming out of a serial port so my knowledge is very limited. 🙂
Thanks
06-30-2011 11:33 AM
Do you have a technical manual that came with the device?
Is there an online PDF version?
You cannot get that data from the device, because in order to communicate, you need to set up the connection first
06-30-2011 11:39 AM
You should start by seeing if there's an existing instrument driver for your device in the Instrument Driver Network.
If not, you'll need to roll your own. You'll need the programming manual for that. You can take a look at the serial port examples that ship with LabVIEW. Open the Example Finder (Help -> Find Examples) and search for "serial".