LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

deploying library programmatically

i am getting problem related with programmatically deploying library . getting error saying that :
LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
NI-488:  Command requires GPIB Controller to be Controller-In-Charge.

Method Name: Library:Deploy Library

0 Kudos
Message 1 of 12
(2,763 Views)

Hi preet_singh,

 

Can you create an indicator for the value that is going into the Lib Path at the invoke node and tell me where it is redirecting to (provide screenshots)?

 

May I ask where is the file Tempvar.lvlib located (provide the path address name)?

 

Warmest regards,

Lennard.C 

Learning new things everyday...
0 Kudos
Message 2 of 12
(2,741 Views)

that problem has been solved . now conflicted with some new problem

i am facing some problem in labview application made by as m new in  shared variable technique. when i press  switch for historical data analysis the new front panel comes but shared variable value does not update when i close the sub vi panel then it starts updating. shared variable value is written by random variable from main vi . kindly provide me assistance.

 

Download All
0 Kudos
Message 3 of 12
(2,736 Views)

Hi preet_singh,

 

Is your block diagram in offline.jpg the main VI's block diagram or the block diagram in both temp11 and temp_12? What are they supposed to do? Do you have the LabVIEW project file, VI and the subvi which we can look into? Do include the LabVIEW variable library file as well.

 

"shared variable value does not update when i close the sub vi panel then it starts updating"

When you mentioned the above statement, were you saying that the shared variable does not update when you close the subVI? Or were you saying that the shared variable updated when you close the subVI?

 

 

Sorry but it's hard to interpret from what is going on and what do you want to do just by looking at those screenshots.

 

There are some materials in shared variables:
http://www.ni.com/white-paper/4679/en/

 

There are some examples in shared variables in NI Example Finder as well:
Open LabVIEW >> Help >> Find Examples... Go to search and type in keyword "Shared Variable" >> You should see some examples like "Shared Variable.lvproj" and etc.

 

Warmest regards,

Lennard.C

Learning new things everyday...
0 Kudos
Message 4 of 12
(2,729 Views)

temp11 and temp 12 ar ethe part of main vi. and if you notice there is sub vi in case statement of  temp_12 . actually main vi is for real time plot for the two variable and analysis(case structure in temp_12) is used for historical data analysis.

in mian vi random variable is use to write the valye in shared variable . now if i press the analysis swicth for historical data analysis(sub vi in offline .jpg) new front panel comes but it does not update the random variable value. and it updates(random variable ) when i close the sub vi front panel

Download All
0 Kudos
Message 5 of 12
(2,708 Views)

Hi preet_singh,

 

So let me try to understand: your subVI should write the values to the Temp11 and Temp21 in the subVI front panel and at the same time, the indicator for Temp11 and Temp21 in your main VI should read the change as well?

 

From what I see from your code, I do not see anything which writes to the shared variable as they are all reading from the shared variables Temp21 and Temp11 respectively. I did not see anything that is written to those shared variable. Second, the shared variables in your main VI is not in the loop and therefore they are updated once (from what I can see from the screenshot below)

mainvi prob.JPG 

subvi.JPG

 

In order to tranfer data from 1 VI to another using Shared Variable, the subVI has to write to the shared variable while at the main VI, it reads from the shared variable. The example is shown at the below screenshot which was taken from the example "Shared Variable.lvproj" which I have mentioned in my previous post (to make a shared variable to write, right click on the shared variable >> Access Mode >> Write): 

shared variable example.JPG

 

At the loop which the random number is writing to the Monitor Value 1 and Monitor Value 2, you can create an indicator so that you can detect what value is writen to the other VI.  

 

 

Another possibility is that both of your VIs should be set to be non reentrant and at normal priorities (go to VI Properties).  

 

Sorry, I may need to look into that VI of yours. As for now, I can come out with this possible cause of the problem you faced.

 

 

May I ask why don't you extract the values from the subVI directly instead of using shared variables?: http://www.ni.com/white-paper/7593/en/ 

 

Warmest regards,

Lennard.C

Learning new things everyday...
0 Kudos
Message 6 of 12
(2,697 Views)

thanks for reply

please look into it

Download All
0 Kudos
Message 7 of 12
(2,685 Views)

Hi preet_singh,

 

At the main VI (Temp_TSC.vi), pressuming that the random number is the one circled below:

update.JPG

 

Have you tried to change the code like as the screenshot above? Since I am transfering data from the main Vi to the subVI using shared variable. Outside the while loop, I write to number (0 to 1) as 0 which in turn writes the value 0 to the Temp 21 and Temp 11 indicators and shared variables since anything outside the while loop runs once. After that, as the code progresses, every changes in the random number that is written to the number (0 to 1) indicator is written to Temp 21 and Temp 11 indicators and shared variables. That values stored in the shared variables is then transferred to the subVI

 

Second, I noticed that you are using Write Variables and linked some of the indicators in the subVI to the NI PSP. May I ask why did you do that?

 

Warmest regards,

Lennard.C

Learning new things everyday...
0 Kudos
Message 8 of 12
(2,678 Views)

thanks for reply

as i am very much new to labview i saw it in an example then trying to develop some understanding on this

 

0 Kudos
Message 9 of 12
(2,676 Views)

if you will observe then you will realise that randon variable value is not updating in main vi when sub vi runs but shared variable vaule changes and it repeats in every 4th data

0 Kudos
Message 10 of 12
(2,674 Views)