LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

OpenComConfig does nothing under w2k. Why?

I am using labwindows/CVI 6.0 under Win2000. When I try to open the serial port with the OpenComConfig function, it seems to be, that everything is Ok. But it is not so. I must run e.g. Hyperterminal to configure the port and then launch my CVI program. Only in this case are the right settings applied. Why is it so? How could I handle this problem?
0 Kudos
Message 1 of 5
(3,514 Views)
I can not reproduce this behaviour on my pc. Try to run the example here and if you get the same problems.

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E31756A4E034080020E74861&p_node=DZ52168&p_source=External

On the other side you did not mentioned which parameter gives you a headache and what interface you are using e.g. 232, 485. Maybe in your case it is better to use the VISA library and not the serial.
0 Kudos
Message 2 of 5
(3,514 Views)
First of all thanks for your answer. I have detected the mentioned problem with the following settings:
Baud rate: 115200
Parity: none
Data bits: 8
Stop bits: 1
Input queue length: 65536
Output queue length: -1 (write immediately)

I wrote a small dll in Microsoft Visual C to configure the serial port for my needs and with this dll I had no problems, the configuration was successfull.

Best regards,

Peter Samu
0 Kudos
Message 3 of 5
(3,516 Views)
Can you post this DLL.  I have the same problem.
0 Kudos
Message 4 of 5
(3,388 Views)

If this is a standard PC serial port, OpenComConfig() should work without the need to use an external dll to configure the port parameters.  Is this an unusual serial interface card?

If you want to try and track down the cause of the actual problem check to see if OpenComConfig() returns an error code.  If it does you can pass it to GetRS232ErrorString() to get a better idea of what the problem is.

0 Kudos
Message 5 of 5
(3,379 Views)