Hello,
I'm struggling to resolve the problem with RS-232 serial communication problem. I referred to various solutions, but I'm stuck with something different problem.
I downloaded an executable runtime LabVIEW file from the instrument manufacturer website. So what I have to do is just connecting RS232 to my instrument driver kit and using LabVIEW runtime engine to operate my instrument.
Here is the information about what I'm currently using to operate my instrument.
OS: Windows 10 home
Program: LabVIEW 2019 (64 bit), NI-VISA 2019, LabVIEW Runtime Engine 2011 (32 bit, this is for operating my instrument with LabVIEW GUI)
Connection type: USB to RS232 serial link
Executable LabVIEW Runtime Engine file: LUdriver_kit_example_V38 (I have attached zip file)
I have checked the serial connection (COM port) first through NI-MAX and here is the result (https://www.dropbox.com/s/gyr20c1l9sbnlc8/NI-MAX%20serial.JPG?dl=0).
I've done the loop-back test and there wasn't any problem as well.
I'm pretty sure that there is no problem with COM port recognition. And the port setting is consistent with the instrument manual (please refer to page 23, https://www.dropbox.com/s/hma0xxvegisa8cc/User_Manual_Lumics_Driver_Kit_LU_DR_KxxAxxV_2019_11_05.pdf...).
The problems are as follows:
1. I need to repeat running and off executable LabVIEW runtime GUI program which is designed by the manufacturer more than 3 or 4 times to connect the instrument with my PC successfully. My instrument can be fully controlled by LabVIEW when the connection is successful. When the connection is failed, LabVIEW shows 1073807339 (0xbfff0015) error.
Here are the results when the connection is successful and fails.
(https://www.dropbox.com/s/3po4qmfyk4phmok/connected.JPG?dl=0 )
(https://www.dropbox.com/s/wxsr6vzbacj8bgr/failed.JPG?dl=0 )
Even though the error has occurred, LabVIEW can recognize the COM port. (Please ignore the different COM port number, I took the picture of failed connection result when I tried with different PC)
2. When I do Basic I/O test with VISA Test Panel and run Query or Read, I always see the error 1073807339 (0xbfff0015). I used supported commands of instrument and commands like *IDN?\n.
(https://www.dropbox.com/s/7fhisesgr65z84c/MAX%20Luversi.JPG?dl=0)
The instrument sometimes can be connected with Labview and it is very random.
So my questions are,
Can these problems be caused by software-related problems?
or are they caused by hardware (my instrument)?
Please give me any comments.