VDT2 COM Port List

Hello,

I'm using VDT2 to read in some data from various serial devices.  Recently I've noticed that when I add a serial device and it shows up with a new COM port number in VDT2 settings and device manager, it may not show up with VDTGetPortList2/SCAN.  

I tried this using a COM Port emulator.  I made a virtual COM Port that shows up in device manager.  It also shows up in the dialog of VDT2 Settings.  However, it does not show up in the string created by VDTGetPortList2/SCAN

Any thoughts?

Puneet

On a previous computer running Windows 7 and IgorPro 8 this worked just fine.  I'm having problems on a Windows 10 machine.

It seems that removing the /SCAN flag fixes this problem.  Including the /SCAN flag gives the wrong number of COM Ports.

In reply to by psingh8

Quote:

It seems that removing the /SCAN flag fixes this problem.  Including the /SCAN flag gives the wrong number of COM Ports.

Please tell me what the output from VDTGetPortList2 is before you add the port, after you add the port with /SCAN, and after you add the port without /SCAN.

Also, what serial port emulator do you use?

I used this program

https://freevirtualserialports.com/ and created a listening port

This is my very basic code

Function/S FindPorts()
    string allports
    //VDT2 resetports
    VDTGetPortList2
    allports = S_VDT
    return allports
end

Here are my command line executions:

Without new port and no /SCAN flag:

•print FindPorts()
  COM3;

With new port and no /SCAN flag and no port reset

•print FindPorts()
  COM3;
After port reset
•print FindPorts()
  COM3;COM7;

With new port and WITH /SCAN flag (again after port reset)

•print FindPorts()
  COM3;
com port list.png (28.85 KB)

Thanks for the report.

I have traced this to a bug in VDT2 2.20 on Windows only. I have created and am attaching VDT2 2.21 which fixes it. This fix will be part of the Igor Pro 8.01 release which should occur within the next couple of weeks.

 

VDT2-221-Win.zip (422.63 KB)