LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Storing the VISA adress in a .ini file

Hi,

I'm looking for 'good' way to store the (RS232) VISA adress in a ini-File.
One way to do this, is using the 'flatten to string.vi', and cut away the first 3 characters ('^\00\00\04'), this way I get a readable and easy to change ini-information.
For reading I add the 'header' an convert it back to the VISA data type.

It works, however, I looking for a propper 'VISA-Adress to (ini)String' method, that surely supports the VISA adresses.

Greetings from Germany

Henrik
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 1 of 2
(2,401 Views)
What I do (LabVIEW 6.0.2) is to build a string indicator (and maybe hide it) and attach the VISA resource to the string indicator (or its variable). It gives you a dot on the input, but it works. You can also go from a string to the VISA resource in the same way.
I have included a VI for testing this. And, yes, I used a sequence - it's just a test VI and things have to be done in order.

Rob
0 Kudos
Message 2 of 2
(2,401 Views)