LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shared variable

I am using a shared variable in one of my applications.  The variable works great on the machine where I developed the code but if I try to run the code on another machine it will not run and I get a deployment progress window with:

 

Initializing...
Calculating dependencies...
Checking items for conflicts. This operation could take a while...
Preparing items for download. This operation could take a while...
Deploying My Computer
Deploying update.lvlib\\192.168.1.1\update deployment failed (error: -2147467259, LabVIEW:  (Hex 0x80004005) Unspecified error.).
Deployment completed with errors

 

I have also compiled the vi on the original machine and then run it on the other machine and it runs but with an error relating to the shared variable.  I think that I have the right toolboxes installed but I am not sure why it will not run correctly.

0 Kudos
Message 1 of 6
(4,399 Views)

Hi Randy,

 

That error can be caused by the correct ports not being open for the shared variable engine. Can you check to see if you have a firewall enabled that might be blocking port 1024.

 

I would also like to have you try to make a single process variable and see if you can deploy it. If you still receive the error then it is related to the variable engine itself and not communication.

 

Let me know your results.

Sappster
0 Kudos
Message 2 of 6
(4,368 Views)
The single process shared varriable appears to work.  What is the difference?  I am not using a network but I would like to write data in one while loop and read it back in 2 other loops. 
0 Kudos
Message 3 of 6
(4,296 Views)

Hi Randy

 

A single process shared variable is only available on your PC and allow you to share data across multiple VI's. These perform similarly to a local variable and should accomplish what you are looking for.


Thank You
Eric Reid
National Instruments
Motion R&D
0 Kudos
Message 4 of 6
(4,257 Views)

Hi,

 

Im getting deployment error using my Network Shared Variables under .lvlib.

Here's the deployment status log.

I don't have any error on my target vi. Im using CVS for my vision project.

All my variables are added on my RT Project. I am not sure of the error. And how to fix it.

 

Initializing...
Calculating dependencies...
Checking items for conflicts. This operation could take a while...
Preparing items for download. This operation could take a while...
Deploying LED_New.lvproj
Deploying Compact Vision System Target(successfully deployed target settings)
Deploying Untitled 1 (SubVI).vi (24.06 K)
Deploying ROI Descriptor (3.06 K)
Deploying IMAQ Classifier Type.ctl (1.98 K)
Deploying IMAQ Classifier Read Options.ctl (1.98 K)
Deploying IMAQ Classifier Engine Type.ctl (1.98 K)
Deploying NI_Vision_Development_Module.lvlib
Deploying IMAQ Image.ctl (2.02 K)
Deploying NI_Vision_Development_Module.lvlib:IMAQ ROIToMask (13.32 K)
Deploying NI_Vision_Development_Module.lvlib:IMAQ ColorHistogram (17.17 K)
Deploying IMAQ Dispose (9.71 K)
Deploying IMAQdx.ctl (2.02 K)
Deploying NI_Vision_Acquisition_Software.lvlib
Deploying NI_Vision_Acquisition_Software.lvlib:IMAQdx Unconfigure Acquisition.vi (9.86 K)
Deploying NI_Vision_Acquisition_Software.lvlib:IMAQdx Start Acquisition.vi (12.55 K)
Deploying NI_Vision_Acquisition_Software.lvlib:IMAQdx Close Camera.vi (9.18 K)
Deploying NI_Vision_Acquisition_Software.lvlib:IMAQdx Camera Control Mode.ctl (1.98 K)
Deploying NI_Vision_Acquisition_Software.lvlib:IMAQdx Open Camera.vi (20.01 K)
Deploying NI_Vision_Acquisition_Software.lvlib:IMAQdx Buffer Number Mode.ctl (1.98 K)
Deploying NI_Vision_Acquisition_Software.lvlib:IMAQdx Get Image.vi (17.40 K)
Deploying NI_Vision_Acquisition_Software.lvlib:IMAQdx Grab.vi (13.55 K)
Deploying NI_Vision_Acquisition_Software.lvlib:IMAQdx Acquisition Mode.ctl (1.98 K)
Deploying NI_Vision_Acquisition_Software.lvlib:IMAQdx Configure Acquisition.vi (14.52 K)
Deploying NI_Vision_Acquisition_Software.lvlib:IMAQdx Configure Grab.vi (13.26 K)
Deploying Image Type (1.98 K)
Deploying IMAQ Create (11.44 K)
Deploying Check for Equality.vi (15.08 K)
Deploying ex_CorrectErrorChain.vi (19.41 K)
Deploying Dynamic To Waveform Array.vi (3.19 K)
Deploying ex_Modify Signal Name.vi (11.59 K)
Deploying ex_Modify Signals Names.vi (6.85 K)
Deploying Waveform Min Max.vi (40.74 K)
Deploying Waveform Array To Dynamic.vi (3.56 K)
Deploying Untitled 4 (SubVI).vi:Instance:5
Deploying Untitled 4 (SubVI).vi:Instance:2
Deploying I128 Timestamp.ctl (2.39 K)
Deploying Move t0 to the end.vi (5.11 K)
Deploying Express Voltage Measurements.vi (28.35 K)
Deploying NI_MABase.lvlib
Deploying NI_MABase.lvlib:ma_basicErrorCode2ErrorCluster.vi (11.76 K)
Deploying NI_MABase.lvlib:ma_Compute t0 eps timestamp.vi (11.01 K)
Deploying NI_MABase.lvlib:ma_Find First Error.vi (14.33 K)
Deploying NI_MABase.lvlib:ma_patchErrorCode or Caller as Source.vi (12.72 K)
Deploying NI_MABase.lvlib:ma_Check Waveform Timing.vi (12.42 K)
Deploying NI_MAPro.lvlib
Deploying NI_MAPro.lvlib:Transition Measurements 1 chan.vi (38.82 K)
Deploying NI_MAPro.lvlib:Transition Measurements N chan.vi (28.53 K)
Deploying NI_MAPro.lvlib:Pulse Measurements 1 chan.vi (36.82 K)
Deploying NI_MAPro.lvlib:Pulse Measurements N chan.vi (27.79 K)
Deploying subPulseMeasurements.vi (92.28 K)
Deploying Untitled 4 (SubVI).vi:Instance:1
Deploying NI_MAPro.lvlib:Cycle Average and RMS 1 chan (obs).vi (49.42 K)
Deploying NI_MAPro.lvlib:Cycle Average and RMS N chan (obs).vi (38.95 K)
Deploying Express Cycle RMS.vi (26.37 K)
Deploying NI_AALPro.lvlib
Deploying NI_AALPro.lvlib:Real FFT.vi (89.73 K)
Deploying NI_AALPro.lvlib:RMS (DBL).vi (51.21 K)
Deploying NI_AALPro.lvlib:General Cosine Window (DBL).vi (11.87 K)
Deploying NI_MAPro.lvlib:ma_Hee window.vi (202.53 K)
Deploying NI_AALPro.lvlib:AllCosWindow (DBL).vi (15.85 K)
Deploying NI_AALPro.lvlib:Hanning Window (DBL).vi (11.32 K)
Deploying NI_MAPro.lvlib:ma_Calculate window.vi (11.68 K)
Deploying NI_MAPro.lvlib:ma_FFT with Hanning.vi (103.78 K)
Deploying NI_MAPro.lvlib:ma_Process RMS for 1 Block.vi (57.48 K)
Deploying NI_AALBase.lvlib
Deploying NI_AALBase.lvlib:Sine Pattern.vi (42.09 K)
Deploying NI_MAPro.lvlib:Extract Single Tone Information from Hann Spectrum.vi (72.35 K)
Deploying NI_MAPro.lvlib:Extract Single Tone Information 1 Chan.vi (42.11 K)
Deploying Ex_Extract Single Tone.vi (34.66 K)
Deploying Untitled 4 (SubVI).vi:Instance:0
Deploying NI_AALBase.lvlib:Real Dot Product.vi (30.18 K)
Deploying NI_AALBase.lvlib:Mean.vi (27.45 K)
Deploying NI_MAPro.lvlib:ma_Process DC for 1 Block.vi (55.14 K)
Deploying IMAQ Classifier Classify Results.ctl (2.22 K)
Deploying DU64_U32SubtractWithBorrow.vi (4.57 K)
Deploying Timestamp Subtract.vi (10.24 K)
Deploying NI_MABase.lvlib:ma_time continuity checker.vi (18.49 K)
Deploying NI_MAPro.lvlib:ma_check Time History Signal Continuity.vi (24.05 K)
Deploying NI_MAPro.lvlib:ma_Basic Averaged DC-RMS no state.vi (61.46 K)
Deploying NI_MAPro.lvlib:Basic Averaged DC-RMS for 1 Chan.vi (42.29 K)
Deploying Express DC-RMS.vi (28.64 K)
Deploying subAmplitudeMeasure.vi (131.19 K)
Deploying Untitled 4 (SubVI).vi:Instance:4
Deploying Untitled 4 (SubVI).vi:Instance:3
Deploying Untitled 4 (SubVI).vi (32.86 K)
Deploying IMAQ Classifier Session.ctl (1.98 K)
Deploying NI_Vision_Development_Module.lvlib:IMAQ Read Classifier File (14.14 K)
Deploying NI_Vision_Development_Module.lvlib:IMAQ Classify (15.93 K)
Deploying TagReturnType.ctl (1.97 K)
Deploying DialogType.ctl (1.97 K)
Deploying Error Code Database.vi (4.96 K)
Deploying whitespace.ctl (1.97 K)
Deploying Check Special Tags.vi (6.85 K)
Deploying Trim Whitespace.vi (4.22 K)
Deploying Search and Replace Pattern.vi (10.18 K)
Deploying Find Tag.vi (14.59 K)
Deploying Format Message String.vi (7.35 K)
Deploying GetRTHostConnectedProp.vi (4.75 K)
Deploying DialogTypeEnum.ctl (1.97 K)
Deploying General Error Handler CORE.vi (60.21 K)
Deploying General Error Handler.vi (12.65 K)
Deploying Simple Error Handler.vi (9.50 K)
Deploying CalculateFPS.vi (10.30 K)
Deploying Controls.lvlib\\169.254.19.221\Controls deployment failed (error: -2147220735, MAX:  (Hex 0x80040301) Internal error: The specified class could not be found in the configuration database. Your installation may need to be repaired.).
Deployment completed with errors

 

 

 

Download All
0 Kudos
Message 5 of 6
(3,762 Views)

Hi there,

 

I would look into first creating a very simple shared variable application to make sure that the shared variables are working properly.  

 

Also check out this article.  It sounds pretty similar to what is going on here.  Why Do I Get Error 2147220735 When I Run My VI On a Real-Time (RT) Target?

Scott A
SSP Product Manager
National Instruments
0 Kudos
Message 6 of 6
(3,748 Views)