LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

conflict with structures

Hi everybody,

I'm a beginner with labview avec for a project; i have to design a measurement system with Daq-mx. My problem is not coming from the Daq-mx but from the interaction between the structures.

The measures have two step.

The first step was programmed wit success: I described it because it is useful for the rest of the "story":

All the program is in a while loop structure. Its terminal is wired to a button to stop the execution of the program and the iteratio is not used.

Insite this while loop

- there is a lot of numeric control to set up the properties of the measurement

- there is a case structure controlled by a Boolean control (button to start the measurement). Inside this case structure, there is a sequence structure which make the measurement and then ask if the measurement is stored (in tdms file). Note that the measurement’s parameters are stored too.

This program run very well, i can move on measurements, change the measurement parameter when i want....

The problems come from the second program. It's a separated VI.

This second program is based from the first on but there is something more. This program has to load a measurement file from the first program to apply the same measurement parameter of the measurement load. Some new parameters are added (distances which will be useful for post-treatment) but all the rest of the program is the same than the first.

The problem is that i'm not able to add the loading step without affecting the good operating of the rest of the program.

If i used the same structures than for the measurement step (sequence structure inside a case structure), it doesn't works. Pressing the button to load the data, it stay pressed and nothing happened.

Does anyone know what happened with the structures? It seems that there is a conflict somewhere.

If anyone has an idea to make it by another way, i'm interested too.

Thanks a lot for the help!!!!

 

PS: find here shematic draws of the working program and the program which doesn't works.

Download All
0 Kudos
Message 1 of 5
(2,991 Views)

Please post either the actual VIs or a PNG/JPEG image.  People here don't like to open Word documents (hidden viruses, macros, proprietary software...there are many reasons why).



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
0 Kudos
Message 2 of 5
(2,984 Views)

Hi,

find here the block diagram in .png format.

Thanks in advance for the help.

 

Download All
0 Kudos
Message 3 of 5
(2,967 Views)

Please post your actual VI.  Your screenshots are too big with too much empty space making impossible to see what it going on without zooming in.  Plus you have structures where you can't see what is happening in other cases since all it is is a screenshot.

 

You have an event structure set for the Quit Value Change event?  Do you have any other events being handled there?  The event structure will hold the execution of your master loop until one of the events handled within it has occurred.

0 Kudos
Message 4 of 5
(2,949 Views)

OK,

so find the VIs

For the event structure, i erase it.

I used it because without it, i'ts no possible to stop the execution of the VI.

I hope the VI can help you.

Thanks

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