VDT2 COM Port List
psingh8
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.
August 17, 2018 at 08:56 am - Permalink
It seems that removing the /SCAN flag fixes this problem. Including the /SCAN flag gives the wrong number of COM Ports.
August 17, 2018 at 09:05 am - Permalink
In reply to It seems that removing the … by psingh8
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?
August 17, 2018 at 10:00 am - Permalink
I used this program
https://freevirtualserialports.com/ and created a listening port
This is my very basic code
string allports
//VDT2 resetports
VDTGetPortList2
allports = S_VDT
return allports
end
Here are my command line executions:
Without new port and no /SCAN flag:
With new port and no /SCAN flag and no port reset
With new port and WITH /SCAN flag (again after port reset)
August 17, 2018 at 10:18 am - Permalink
In reply to I used this program https:/… by psingh8
Thanks. I will investigate.
August 17, 2018 at 10:43 am - Permalink
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.
August 19, 2018 at 08:52 pm - Permalink
Great! Happy to fix a bug.
August 20, 2018 at 09:05 am - Permalink
Oh cool! thank you very much!
I have simplified the task a bit with the com port, I used the https://www.virtual-serial-port.org/, the trial version was enough, I didn’t suffer as if with a freevirtualserialport.
Used on Windows 10
April 2, 2019 at 12:31 am - Permalink