04-08-2014 07:29 AM
I have two identical pieces of test equipent that use the same database frames and signals. I have two databases that are also identical, but use different arbitration ID's.
I created a couple of vi's to read/write to the equipment, but each time I run them, I have to manually select the database for the one I am talking to by right clicking on the signal list and selecting the database.
I plan to put these vi's into an automated test. Is there a way to programatically select the database when I call these vi's?
04-08-2014 07:31 AM
You can use the "Generic" version of CreateSession. You pass the name of the database as a parameter, separate from the name of the signal(s).
04-08-2014 07:39 AM
you can also point dynamical to any database and object by not using predefined IO Names but create a string
see the NI-XNET manual for more information how to use XNET IO Name Strings:
here an example how to use XNET Frame IO name strings
... Use the following syntax convention for the XNET Frame I/O name string: <frame>\n<dbSelection>
The string contains the frame name, followed by a new line (\n) as a separator, followed by
the selected cluster name. When you drop the I/O name onto your front panel, the control displays only one line by
default. This enables the VI end user to focus on selecting the <frame>, rather than the more
complex syntax that includes <dbSelection>. Lowercase letters, uppercase letters, numbers, and the underscore (_) are valid characters for <frame>. The space ( ), period (.), and other special characters are not supported within the
<frame> name. The <frame> name must begin with a letter (uppercase or lowercase) or
underscore, and not a number. The <frame> name is limited to 128 characters. The frame
name is case sensitive. ...
04-08-2014 01:33 PM
I read the section of the manual you referred to and am a bit confused. I am new to XNET and am still learning how it works. Where do I put the string?
04-08-2014 01:33 PM
Thanks. That did it.