LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

saving COM port settings (VISA Configure Serial Port settings) to an .ini file

Solved!
Go to solution

I'd like to save user-updated COM port settings to an .ini file on exit, but it doesn't appear that the NI_LVConfig.lvlib:Write Key.vi will accept the COM port (VISA session of class instr) as a direct value input.  Is there a way to convert that class instr into something I can write into the .ini file? [LVPro2015]

 

Thanks!

 

0 Kudos
Message 1 of 3
(3,423 Views)
Solution
Accepted by topic author GiantUncleJohn

@GiantUncleJohn wrote:

I'd like to save user-updated COM port settings to an .ini file on exit, but it doesn't appear that the NI_LVConfig.lvlib:Write Key.vi will accept the COM port (VISA session of class instr) as a direct value input.  Is there a way to convert that class instr into something I can write into the .ini file? [LVPro2015]


The VISA Session can go right into the Value input and it will coerce to a string.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 3
(3,417 Views)

Thank you, crossrulz!  My polymorphic selector was set to something other than automatic or string so I was getting a type mismatch.  All good.

0 Kudos
Message 3 of 3
(3,395 Views)