LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem in shared variable with program execution

dear all,

      i am facing a problem in my program which is for the monitoring of temperature parameter at 2 different locations with DSC module .this module stores the value in citadel database using share variable for temp location. in my program there is a count down timer when i click on timer and define the value of time duration. it should run for that time and after that it should not log the value in database and automatically it should stop for logging data. now my problem is that when i click on system ON it start the timer but  all control of the front panel do not work . controls include historical data viewer and alarm read msgs. i have seperte program for timer and for serial port through which i am reading the value of temperature. i am using run vi mehod for the system on and abort vi for the system off in my program . i am attaching image of vi.

 

thanks

 

 

Download All
0 Kudos
Message 1 of 11
(2,974 Views)

Yes, your FP will become because that is the way you wrote you code. When the event in the picture fires, it dynamically runs two VIs -- one of which you have set so the program running the VI will wait until the VI being called finishes.

 

Assuming the VI being called is the one in the first screenshot, it has a while loop in it so execution won't continue until the loop stops. And that is just the first frame! Goodness knows what is in the other two frames of the unnecessary sequence structure.

 

 

Oh yes, you are doing the dynamic launching wrong too, but I don't think that would cause the problem you are seeing.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 11
(2,900 Views)

thanks mike

                     it was very nice to see reply from your side. i have  changed run vi method of vi but then  count down timer value hangs up in between when i click on control on front panel and then values do not update or share values  do not update

 

thnks

0 Kudos
Message 3 of 11
(2,859 Views)

You need to get rid of the sequence structures and then post your code, not just pictures of it. Also, why are you dynamically calling those two VIs? Seeing the code will help clarify what you are trying to do.

 

You might want to also look into state machines. The state machine is a design pattern that can be very useful.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 11
(2,846 Views)

i hav posted code please look into it

0 Kudos
Message 5 of 11
(2,818 Views)

That is just the project file.  It contains none of your actual code.  I recommend putting all of your code into a zip file and posting that zip file.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 6 of 11
(2,803 Views)

please see it

0 Kudos
Message 7 of 11
(2,798 Views)

did you see the code mike

0 Kudos
Message 8 of 11
(2,783 Views)

mark did you see the code. pplease give me feedback i am stuck on this issue

0 Kudos
Message 9 of 11
(2,714 Views)

I finally got a chance top look at your code and I don't know where to start. It is, to be blunt, a mess to the point that I have no idea what it is that you are trying to accomplish. Wires are running every which way, you are using sequence structures, there are no errors being checked for or handled.

 

You need to go through some learning and then give it another try.

 

3 Hour Introduction http://www.ni.com/white-paper/5243/en/
6 Hour Introduction http://www.ni.com/white-paper/5241/en/
LabVEW Basics http://www.ni.com/gettingstarted/labviewbasics/
Self Paced training for students http://www.ni.com/academic/students/learn/
Self Paced training beginner to advanced, SSP Required http://sine.ni.com/myni/self-paced-training/app/main.xhtml
LabVIEW Wiki on Training http://labviewwiki.org/LabVIEW_tutorial#External_Links

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 10 of 11
(2,697 Views)