LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save default RS232 port configuration in Labview 2011

I have an application using two serial ports. I would like to give the
user possibility to select the serial ports from the list of his ports
(depending on the hardware configuration) and their settings and save
these as defaults in some ini file. Can someone give me a hint?

Is there any possibility how to limit the Resource names selector only
to COM ports? By default it offers everything, i.e. including GPIB and
LPT etc.. That may be confusing for some users, I would like to make
it easier to understand for an unexperienced user.
Thanks
ladislav
0 Kudos
Message 1 of 2
(3,066 Views)

By creating my VISA resource name control with a right click on the VISA Configure Serial Port vi , it only showed me the COM ports. 

Additional filtering of displayed names can be done by right click on the control and choose I/O Name Filtering.

 

To store/read values from an ini file you can use the Configuration file vis found in FILE I/O

serial settings ini file demo.png

 

Quick and dirty demo

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 2
(3,057 Views)