Jump to content

Problems with shared variable library deployment


Recommended Posts

Hi,

I recently started working with shared variables in LV 8.5 (previous work was done in LV 8.2 worked fine) and have come upon the following problem:

When I create and edit shared variables programmatically and use SaveTo Library.vi, the library is created with the settings and LV doesn't report any errors.

But when I try to deploy the variables this is what happens:

1. If deploying in source code variables are deployed without reported errors but if you open them in the Variable Manager they are displayed as type Variant.

This is not a big issue because when you start writing in the values the types are correct (and all the settings too). DSC Variable Monitor displays everithing correctly.

2. If deploying in .exe program LV reports an error 1, creates the process but does not deploy the variables. This does not happen if i create and edit the variables in Project explorer of Multiple Variable Editor. When I open the .lvlib file with wordpad i got an .xml file with the shared variable properties, after comparing the two libraries i found out that the library created programmatically has few more properties that shoud not be there - boolean type has all the logging properties of other variables.

Is there a workaround for this problem or is it a bug in LV which needs to be reported to NI?

Thanks,

Hacti

P.S. Sorry for the long post

Link to comment

Hi,

I recently started working with shared variables in LV 8.5 (previous work was done in LV 8.2 worked fine) and have come upon the following problem:

When I create and edit shared variables programmatically and use SaveTo Library.vi, the library is created with the settings and LV doesn't report any errors.

But when I try to deploy the variables this is what happens:

1. If deploying in source code variables are deployed without reported errors but if you open them in the Variable Manager they are displayed as type Variant.

This is not a big issue because when you start writing in the values the types are correct (and all the settings too). DSC Variable Monitor displays everithing correctly.

2. If deploying in .exe program LV reports an error 1, creates the process but does not deploy the variables. This does not happen if i create and edit the variables in Project explorer of Multiple Variable Editor. When I open the .lvlib file with wordpad i got an .xml file with the shared variable properties, after comparing the two libraries i found out that the library created programmatically has few more properties that shoud not be there - boolean type has all the logging properties of other variables.

Is there a workaround for this problem or is it a bug in LV which needs to be reported to NI?

Thanks,

Hacti

P.S. Sorry for the long post

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.