09-23-2016 03:27 PM
Sorry i thought you might have made code changes as ravensfan had suggested. Correct me if im wrong, but you want to programatically find hardware on your system and then connect to it? Ive done this before and found it to be easily done with system configuration. You may want to give this a look and see if itll work for you.
Also like ravensfan said you can clear the error if the string from the index array is empty.
09-23-2016 03:36 PM
Matt,
My apologies. No I did not make the changes ravensfan suggested. I should clarify. The string that is passed from the index array is not empty as it sends the VISA resource name (ASRL10::INSTR) to VISA open then trys to obtain the property (Intf Inst Name) which is it's alias. This works fine when the aliases are com1, com2, com3, etc....but when the alias is lpt1, it crashes.
09-23-2016 03:58 PM
I would just clear the error.
Instead of just looking for an empty string like you said it was early, have it look for "lpt1" also and skip over that. But there is probably a bunch of other illegal names that are possible you haven't hit on yet.
So just do what I said earlier and clear the error.
09-23-2016 04:04 PM
Fixed. Found Ranjeet Singh's post and the vi works with no error. See below.....
09-10-2013 02:40 AM
Hi dave,
when you connect your USB and you have insalled the usb to serial driver for that USB then it will automatically read in device manger. Here is the simple VI I wrote long back.
Let me know if you want some help