01-28-2016 01:16 AM - edited 01-28-2016 01:22 AM
HI
I am trying to do visa communtion to dectect/find comport . I am facing issue in max(visa) to detect comport (Vertual com port).
some boards are detecting correctly in Max as comport but some bard are dtecting but shwing yellow exclamation mark on it (see image for more clerification ).
why visa gives this type of error .please give an solution for this .
If i try use tera-term or hyperteminal that comport will work and i can able to communicate , but using visa detection i am not able to do. getting warning and error of visa as shown in image.
Softewares version
1: VIsa :15.0
2: MAx:15.0
3: Labwindow/CVI
01-28-2016 02:38 AM
Hi, I normally use the code provided by Martin without problems: you may want to look at it.
01-28-2016 03:19 AM
HI,
Sorry i didn't get you .:)
01-28-2016 03:54 AM
Instead of using Visa, I am using LocateCom function provided by Martin Saxon, this way:
int r, nports, portList[16] = { 0 }; // List serial ports in the system nports = LocateCom ("", portList, 16); for (r = 0; r < nports; r++) { DebugPrintf ("COM%d", portList[r]); }
This code lists in debug output window all serial ports existing in the system.
Note: you need to #include <windows.h> in your code and to add SetupAPI.lib to the project.
01-28-2016 04:37 AM
hi,
Thank you for your reply .
I tried with COm loactor . In my PC COM 5,6 and 7 conneted , but in comloactor its showing only 6 and 7 , comport 5 is not detecting .
01-28-2016 04:52 AM
I personally use the function with native motherboard ports as well as several USB-to-serial adapters and Moxa NPort Ethernet-to-serial devices without problems. Is your COM5 port some special kind of device?
01-28-2016 04:57 AM - edited 01-28-2016 04:58 AM
hi,
yes, its vertual COM poart. And its wokking by using hyperterminal and tera-term .
01-28-2016 05:37 AM
A virtual com port on top of which hardware?
Maybe trying to update its driver can fix the situation.
02-01-2016 05:24 AM
no not bale to fix it
i dont konw what exactly habpaing . Using teraterm its woeking fine bit same port is not detecting in visa as wel as comloacte too