LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx tasks stop (LabVIEW NXG)

Hello,

I am trying to make a program using DAQmx tasks. I have a one task that pushes a plate to a sensor and second task for pushing it back to start position (opening and closing valves). Sensor is a third task that lights up a LED in the panel when TRUE. When the sensor is TRUE, first task is supposed to be stopped and the plate needs to be pushed back. The issue I am having is that the first task is still active when LED is True and I end up blowing air (both valves open) in both directions. How can I make it stop when sensor is on? I appreciate your help!code.PNGcode2.PNGcode3.PNG

 

 

0 Kudos
Message 1 of 6
(2,570 Views)

In order to tell what you are doing "wrong", I need to be able to see, clearly, what you are doing.  Providing a picture of your LabVIEW NXG code, which is difficult to see (because the images are so small), impossible to manipulate (because, unlike a VI, if I click on the image of a function and move the image, the attached wires stay put and become disconnected), impossible to see "what isn't shown" (like the other instances of a Case structure), impossible to execute (how do you "run" a picture?).

 

Please attach your VI.  Include sub-VIs if they are important to understand what you are trying to do.

 

I can see you have three independent loops, but can not see how they communicate with each other (maybe it's simply bad eyesight, or not having a big enough screen on my laptop).  I can see that each of your loops contains what seems to be an unnecessary (and therefore potentially "harmful") sequence structure (why didn't NI drop this structure, or banish it to the "Advanced" Palette where you need to show that you really do need it?).  Try eliminating all of the sequences, straightening your wires, making the three loops easier to read, and see if the answer leaps out at you.  For more help from the Community, attach your VI (I know I'm using the wrong name, "VI", for LabVIEW NXG code, but that's because I have about 10 times the experience with LabVIEW than I do with LabVIEW NXG -- so sue me ...).

 

Bob Schor

0 Kudos
Message 2 of 6
(2,530 Views)

Looking at those images, I have a complaint about NXG.

 

Why do the case structures have rounded corners like the loops do?  Also the flat sequence structures.

 

In regular LabVIEW, the rounded corners of loops is just a subtle hint that is a loop.

But in these NXG images, the other structures having rounded corners makes it harder to distinguish them from a loop until you search harder to find other features.  It really makes sorting out the hierarchy like in that middle image that much harder when you have that many layers of nested structures.

 

😖

0 Kudos
Message 3 of 6
(2,523 Views)

Why do the case structures have rounded corners like the loops do? Also the flat sequence structures.

 

In regular LabVIEW, the rounded corners of loops is just a subtle hint that is a loop.

But in these NXG images, the other structures having rounded corners makes it harder to distinguish them from a loop until you search harder to find other features.

 

Good Point. (There are less obvious hints, For loop is a stack, While loop has arrows on top bottom) I haven't played around much with NXG, but I think I should start soon.

 

mcduff

 

PS what happened to the quote button?

0 Kudos
Message 4 of 6
(2,519 Views)

It actually contradicts my point that in regular LabVIEW, the For Loop does have square corners.

 

But just my first impression looking at those images with structures that are more nested than they should be, I had a hard time distinguishing the structures from each other.

 

I just dislike this overall appearance that NXG has adopted going with this "modern" appearance webpages have where everything is faint, and gray, and drab, flat, colors that have no brightness to them.   Look at what Microsoft Office as become compared to what it used to be.  Everyone with their webpages where fill in boxes are so faded or just barely a line, you can't tell where you are supposed to click to start typing in information.

 

Oh, and quote button has just become the quote symbol.   "   If there are other things not on the toolbar, hit ... and that expands the toolbar.

Another example of a web design where every thing is a grey, drab, lifeless symbol.  😉

0 Kudos
Message 5 of 6
(2,510 Views)

Sorry, here is the VI.

0 Kudos
Message 6 of 6
(2,469 Views)