09-28-2016 03:35 AM
I am trying to control a UV lamp using LabVIEW via rs232 DB9 cable.
It's working very well with the PC which is having DB9 port. The PC which I supposed to configure with the lamp doesn't have DB9 port. So, I tried using CH340 USB RS232 connector, the drivers were perfectly installed and it was detected as COM port in device manager.
The same LabVIEW VI is not working in this configuration. It is throwing some read error. Do I need to change any VISA settings for USB port ?
09-28-2016 08:51 AM
I am trying to control a UV lamp using LabVIEW via rs232 DB9 cable.
We would need the manufaturer and model number of that device to answer with any confidance. However, since you state that the communication is OK using the PCs COM port we can guess that one of two things is wrong.
10-01-2016 11:41 PM
Thank you for your response Jeff,
Labview control VI for OMNICURE Lamp is attached herewith.
I tried changing the converter cable also. That didn't work.
I doubt on LabVIEW read command VI, but if i debug everything looks fine.
I could not make out what's wrong with VI when i am using USB RS232 converter.
Please let me know your suggestions
10-02-2016 09:13 AM
Well, its time to read the manual again! See section 16.3.1 Here is 1 of your problems:
The CRC calculator formats a string as [<Command><CRC><CR>] where <CR> is a ASCII 0x0D Example: "CONN" becomes "CONN18\r" That seems right. To check the CRC calculation "Err" maps to "Err67\r" exactly as section 16.3.2 shows.
Then you have that search and replace that removes the correct termination character and replaces it with a litteral <CR>. Thats not what the manual says to do so, don't do that!
You may have other problems. For instance: that Type def enum "Command" really should be a combo box control.