NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
irish-mick
Posts: 5
0 Kudos
Accepted Solution

In CVI 2010/MAX 5.0, is there a file where instrument Aliases can be stored and be used upon new station configuration to prevent manual Alias setup?

 

 

 I ran into a situation where all NI components needed to be re-installed. After the re-install, previously working CVI code no longer worked. Troubleshooting the issue revealed there was a syntax error being returned against the resourceName from a ViOpen() call preventing the instrument from getting a handle. It turned out that due to the re-install of NI established Aliases set under MAX -Devices and Interfaces- Network Devices had changed to default settings, which did not match expected Aliases used in the previously working CVI code.

 

Is there a way to better control this? For example if configuring a new machine, is there a file that can set the Aliases that MAX uses so that each instrument's Alias under Network Devices does not need set each time manually? 

Active Participant
Charles.Tac
Posts: 434
0 Kudos

Re: In CVI 2010/MAX 5.0, is there a file where instrument Aliases can be stored and be used upon new station configuration to prevent manual Alias setup?

Hi

 

Would you please try the menu File >> Export and Import in MAX?

 

Thanks,

 

- Charles

 

 

Trusted Enthusiast
AnalogKid2DigitalMan
Posts: 3,000
0 Kudos

Re: In CVI 2010/MAX 5.0, is there a file where instrument Aliases can be stored and be used upon new station configuration to prevent manual Alias setup?

Not sure about CVI, but in LabVIEW you can also add MAX's *.nce file to the project build and installer to eliminate the need for manually importing the configuration file on a new system.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Member
irish-mick
Posts: 5
0 Kudos

Re: In CVI 2010/MAX 5.0, is there a file where instrument Aliases can be stored and be used upon new station configuration to prevent manual Alias setup?

I exported the .nce file and then imported it after minipulating Alias names and it set the Alias as written in the .nce file. Very Good. However, the .nce file did not seem to manage the IP address associated with the instruments even though the IP address box was checked when exported .nce file was created.

Member
irish-mick
Posts: 5
0 Kudos

Re: In CVI 2010/MAX 5.0, is there a file where instrument Aliases can be stored and be used upon new station configuration to prevent manual Alias setup?

It seemed to work for the Aliases but no for the IP addresses, even with the IP box checked.

 

By the way, you come off kind of arrogant.

Active Participant
Charles.Tac
Posts: 434
0 Kudos

Re: In CVI 2010/MAX 5.0, is there a file where instrument Aliases can be stored and be used upon new station configuration to prevent manual Alias setup?

I am sorry for that. Please believe that I meant no offence on that.

 

I am not sure what is your requirement. It looks to me that the import/export of MAX could work for both IP Address and Alias if we check both items in the wizard. Here the instrument name "TCPIP0::1.23.56.3::INSTR"  actually indicate the instrument's IP address.

 

2012-08-09_Import_Export.png

 

2012-08-09_IPAddress.png

 

Member
irish-mick
Posts: 5
0 Kudos

Re: In CVI 2010/MAX 5.0, is there a file where instrument Aliases can be stored and be used upon new station configuration to prevent manual Alias setup?

Thanks for the help, 

 

Is there a way to progromatically load the .nce file using CVI 2010?

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page