LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

visa error comport detection

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

0 Kudos
Message 1 of 9
(4,053 Views)

Hi, I normally use the code provided by Martin without problems: you may want to look at it.



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 2 of 9
(4,040 Views)

HI,

Sorry i didn't get you .:)

0 Kudos
Message 3 of 9
(4,031 Views)

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.

 



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 4 of 9
(4,026 Views)

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 .

0 Kudos
Message 5 of 9
(4,022 Views)

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?



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 6 of 9
(4,019 Views)

hi,

 

yes, its vertual COM poart. And its wokking by using  hyperterminal and tera-term .

0 Kudos
Message 7 of 9
(4,017 Views)

A virtual com port on top of which hardware?

Maybe trying to update its driver can fix the situation.



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 8 of 9
(4,010 Views)

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

0 Kudos
Message 9 of 9
(3,961 Views)