04-02-2009 03:07 PM
I have a VI that was being used to read thickness data from a Quartz Crystal Micrograph. It was working just fine until I connected it through an installed PCI serial port instead of the standard serial port that comes on the back of PC's. Does anyone have any idea why this is happening? It doesnt give me an error, it just does nothing (reads zero bytes, outputs nothing). Is there some other syntax that I need to use to communicate through the PCI card???
Any help would be greatly appreciated,
chris
04-03-2009 07:40 AM
Chris,
First I would make sure that the two serial ports are the same type of serial port. For example, are they both RS232 ports or both RS485 ports. Next, check to make sure that your new serial port shows in Measurement and Automation Explorer, and that you are selecting the correct serial port in your LabVIEW program.
Eric K
Applications Engineering
National Instruments
04-03-2009 11:26 AM
Well the two ports are definately RS-232 and I am definately selecting the right COM. Interestingly, I can control another peripheral through the new ports (along with the original port) but for some reason it doesn't work with this QCM Monitor (SQM-160).
So just to confirm, if I connect extra RS232 serial ports to my computer through a PCI board, I don't have to do anything extra in labview? I should be able to communicate like any other COM port correct? How about RS485 (having similar problems with a different device on a different PCI board)?
Also, I only have LabView 6.0 (I'm not sure if that could mean anything).
Thanks again for the help,
chris
04-06-2009 11:32 AM
Chris,
When using a different COM port your COM port number will change, but other than that everything should be the same. Do you see the additional COM ports in Measurement and Automation Explorer? ( Start » All Programs » National Instruments » Measurement & Automation ) When you are controlling another instrument successfully, are you using LabVIEW then as well?
Eric K
Applications Engineering
National Instruments