02-04-2011 03:00 PM
Thank you for your help anyway
02-04-2011 03:59 PM
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.
02-04-2011 05:25 PM
Thank you so much! It works! It's the second time you help me out. You are awesome!!!
02-05-2011 04:07 AM
You're welcome!
That's what the forums are for: something with a little more experience or (like in this case ) a better memory can help other users to use CVI better and better. I learned a lot through forum posts and continue learning.
02-07-2011 08:38 AM - edited 02-07-2011 08:39 AM
* Deleted *
02-07-2011 08:41 AM
@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.
02-07-2011 08:58 AM
Thank you Martin for pointing us to that thread: I updated my tags
02-09-2011 10:34 AM
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