LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shared variable does not work in executable

In editor mode, the shared variables update fine.  When I build the executable, the shared variables no longer work.

See attachment.

0 Kudos
Message 1 of 16
(3,542 Views)

What error code are you getting?

Do you need to create the whole process and DB on the fly?  If not then define in the project and just programmatically deploy.

0 Kudos
Message 2 of 16
(3,505 Views)

Yes, I need to create the whole process and DB on the fly!

And error code is: -1967361997  "Property Node (arg 1) in NI_DSC.lvlib:Configure Scaling (Shared Variable).vi->NI_DSC.lvlib:Configure Scaling.vi->TestCitadel.vi"

 

So, as I said the code works properly in edit mode but does not work in executable...

0 Kudos
Message 3 of 16
(3,477 Views)

I found this note in the LV2010 help, I wonder if this could be related to your problem...

 

Note  You can use scaling only for network-published shared variables, I/O variables, or I/O aliases. When the shared variable you want to scale is a network-published shared variable, it must have a data source. Configure a network-published shared variable to have a data source by placing a checkmark in the Enable Aliasing checkbox on the Variable page of the Shared Variable Properties dialog box.

0 Kudos
Message 4 of 16
(3,469 Views)

I wrote that it does not work in the executable. Where's the difference?..

0 Kudos
Message 5 of 16
(3,463 Views)

The whole idea behind NSV scaling is to apply it to a source and then have it appear as a scaled value in the destination.

I do not see that you are using it that way.

0 Kudos
Message 6 of 16
(3,456 Views)

could you make an example vi?

0 Kudos
Message 7 of 16
(3,453 Views)

Could you fill us in on what you are trying to do?  What data are you trying to scale?

0 Kudos
Message 8 of 16
(3,445 Views)

Could be the reason that I use LV2010 (to make the executable) and DSC Run-Time 2009 on the target PC?

0 Kudos
Message 9 of 16
(3,444 Views)

I need to create/delete/modify in the citadel database about 500 tags on the fly. And it should be scaled and so on etc...

0 Kudos
Message 10 of 16
(3,437 Views)