LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

logical loop labview 7.1

I hope someone can help me...In the process of changing from Labview 6.1 to 7.1 (going from NT based computer to XP). Overall I have no issues with running my VI, and sub VI's except for one part. It seems to revolve around a logical loop...I'll try and explain it the best I can..The VI is used to measure coatings (takes an digital signal, compares it to a linear fit profile & returns a coating weight)

Here are the steps:

Make an inital measurement, if it is OK, the operator clicks a button (Reading OK move to next position), if it is not OK, there is a (Reread position button)...so after each measurement, the operator has the option of moving onto the next position or re-reading...The problem I am facing is this...In running the VI in 7.1, the first time I take a measurement, I can select either "Move to next" or "Reread". From there the SUB VI is locked into whatever choice I made rather than resetting...i.e   if I choose "re-read", I constantly get the same position to re-read...if I choose "Move to next" no mater if the analysis is good or bad, the program moves to the next position for testing..

 

I've attached a picture of the loop control...Is there a way to post the entire VI, or Sub VI?

0 Kudos
Message 1 of 6
(3,217 Views)

There is a way to post VIs. Since you posted an attachment, it's done the same way. There have been issues with some browsers, though, such as Google Chrome.

 

I don't know what the rest of your code is doing, so I can't say what the overall problem is. All that I see is a single small loop. As for your code: classic Rube Goldberg. You take a Boolean, negate it, then go into a case structure which returns the negated negated value, and then negate that output.  Can you think of a shorter path?

 

 

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

I cannot seem to post the VI....I will try from home, as my work computer system may be the issue...I will post the main VI....this should provide the necessary information...I just can't wee why it works in LV 6, and not in LV 7.1...There were no modifications made to the VI...just recompiled into 7.1....I have my home e-mail contact information posted...if someone wants to contact me individually, I will be happy to discuss this, and to send whatever files are necessary...I am not a labview user, nor programmer....I had used this in college, but just for some simple experiments. Just trying to upgrade some computers in our lab to XP vs outdated NT

0 Kudos
Message 3 of 6
(3,180 Views)

Well I solved my dilema by just making some adjustment to the boolean controls (Buttons). The buttons were configured as "Switch when released" in labview 7.1....I couldn't tell what they were in labview 6.1....I did notice that in 7.1 the buttons would not stay red as they do in labview 6.1, so I changed the control to "Latch when pressed" and now the loop operates every time an analysis is run....I've attached a pic with the Front panel and block diagram....can someone explain the difference in the mechanical operation of the buttons...Switch when released to me means the button is changed (Off to On or vice versa) when it is depressed and then released. Isn't latched the same thing? How did the recompile to labview 7.1 change the operation of the control?

0 Kudos
Message 4 of 6
(3,164 Views)

Hi vskerche,

 

"have my home e-mail contact information posted"

 

2 points:

- where have you posted that information?

- I wouldn't post my email address in a public forum as this is crying for SPAM...

 

"I cannot seem to post the VI"

 

- Well, you could attach a picture but not a vi? What about zipping the vi before attaching? Or renaming from *.vi to *.bmp to fool any filter mechanism (which should not catch a *.vi either)?

Message Edited by GerdW on 04-17-2009 09:43 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(3,163 Views)

Hello,

 

We actually have a great exampl in the Example Finder that demonstrates exactly this. Go to Help >> Find Examples and search for the key word "mechanical" the example is called Mechanical Actions of Booleans.vi

 

Regards,

 

Anna K.

National Instruments
0 Kudos
Message 6 of 6
(3,122 Views)