LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto detect serial port settings using LabWindows

Solved!
Go to solution

Smiley Sad 

 

Thank you for your help anyway

Message 11 of 18
(3,319 Views)
Solution
Accepted by topic author paly_Andrew

Hi Andrew,

I suggest you to look at this thread and test Martin library to find available COM ports: it seems to me that it should be of much help in your trouble.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 12 of 18
(3,314 Views)

Thank you so much! It works! It's the second time you help me out. You are awesome!!!

0 Kudos
Message 13 of 18
(3,302 Views)

You're welcome!

 

That's what the forums are for: something with a little more experience or (like in this case Smiley Wink ) a better memory can help other users to use CVI better and better. I learned a lot through forum posts and continue learning.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 14 of 18
(3,287 Views)

* Deleted *

--
Martin
Certified CVI Developer
0 Kudos
Message 15 of 18
(3,264 Views)

 


@Roberto Bozzolo wrote:

Hi Andrew,

I suggest you to look at this thread and test Martin library to find available COM ports: it seems to me that it should be of much help in your trouble.


Since that thread I posted source code that works in CVI, without the need for the DLL. See this post.

 

--
Martin
Certified CVI Developer
0 Kudos
Message 16 of 18
(3,261 Views)

Thank you Martin for pointing us to that thread: I updated my tags Smiley Happy



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 17 of 18
(3,256 Views)

Hi Martin,

 

Thank you for sharing your solutions. When I tried to use this solution, http://forums.ni.com/t5/LabWindows-CVI/What-CVI-functions-do-I-need-to-use-in-order-to-check-the/m-p..., it gave me an error saying setupapi.h is not found. 

 

I also tried your older one, http://forums.ni.com/t5/LabWindows-CVI/Check-com-port/m-p/221306#M16380. It worked, but the problem is that I need to combine it with other codes which use __stdcall calling convention when building it(since it need to link to some dll explicitly), while your solution need to use __cdecl.

 

Actually, I just wanna set up the port numbers automatically before starting the test program. Is it possible to combine them in either way? 

 

Thank you so much.  I am looking forward to your response. 

 

Tianchi

0 Kudos
Message 18 of 18
(3,220 Views)