04-16-2010 12:33 PM
I need to programatically change the COM port within LabView.
I am writing a program for clients and need to save the COM port settings within an exicutable. I was going to atchieve this by writing to an ini file. I cannot directly save the VISA variable but can save the following properties.
Intf Inst Name
Intf Type
Intf Num
The problem is I cannot write to these properties on the initialization state of the program. Is there a way I can save which COM port was being used from one session to another of an exe? Thanks in advance for all your help.
Jesse
04-16-2010 12:50 PM
Hi Jesse,
you can store it as a string. If you read the string from a file you can directly connect it as a com port selection. It also works if you typecast the string to the com Port type.
Mike