From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview version problem?

Hello guys,

 

I have made a subVI that controls the rpm % of a wind tunnel vane. This consists in adquiring 2 values of data within 30 seconds and compare both to see the uniformity of the flux. I use a Labview 2011 version. The problem occurs when i use this subvi in a 2012 version. The 30 seconds turn to 1 minute... I want to ask if its possible for this to be a version problem. Untitled2.png

0 Kudos
Message 1 of 10
(2,553 Views)

What is the problem?  You haven't told us what is going wrong.

 

One thing I'd be worried about is that you are comparing two floating point numbers for equality.  I don't know why you are using a formula node for what is otherwise (ignoring the fact they are floating point numbers) a simple comparison.

 

How are you using this as a subVI?  Why do you have a loop in this?  It is going to run as fast as possible doing the same comparisons over and over on the same data files.

0 Kudos
Message 2 of 10
(2,550 Views)

Yes u right i dont need the node... i was distracted 😄 thx. The files values are not the same because the rotor rpm takes sometime to get to the % that i command.

When i use the 2011 version of labview there isnt any problem, but on the 2012 the 30000ms timer duplicates and the subvi takes 60000ms to execute!!!! im trying to kown if it can be a version problem. If its not then i assume that its the controller software of the wind tunnel and that's other problem that i have to solve.

0 Kudos
Message 3 of 10
(2,540 Views)

There is no logical reason for the wait timer to duplicate.

 

What happens if you change the timer to something else like a smaller value, or a larger value?  Would the 2012 version still be duplicated?

 

Put some more probes or indicators in your VI, I'm still suspicious about the comparing two floating point numbers for equality.  See what data is coming out of the two Read functions.  Are there any errors?  Does the data look the same?  If you compare them with a LabVIEW primitive and look at a boolean indicator, what does it show?  Put an indicator on your loop iteration terminal.  For the subVI to take twice as long, the loop must be running twice.

 

Is there a reason why you are comparing the two same data points of the same data file?

0 Kudos
Message 4 of 10
(2,531 Views)

I'm concerned that you are reading a file and then reading it again 3 seconds later.  This tells me you are looking for when the other process stops writing data.  File IO is a terrible way to share data.  Use a Notifier or Queue instead.  Much more efficient.


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

The values will duplicate allways on the 2012 version. there is a reason for comparing. i need that the wind flux of the tunnel to be constant for 30 seconds at least( thhis is the verification requirement). Its normal to have flutuations over time so i need to verify the same file.

0 Kudos
Message 6 of 10
(2,522 Views)

So are you saying that the file is actually changing during the 30 second period of time?  What program is creating this data file?

 

How do you know that the data in the file is the same after 30 seconds?  If you are dealing with  real world values that you are measuring somehow, then you are comparing them to each other with floating point numbers, there is a chance that the two numbers may never be exactly equal even if you thing for all practical purposes they are.

 

How do you know that the values aren't exactly the same for 29 seconds, then in the 30th second there is a slight change.  As you said "it is normal to have fluctuations over time."

 

I think there is a flaw in your testing and comparison process that is causing you problems, not an issue with the LabVIEW version.  If you were able to get things to work exactly like you wanted with an older LabVIEW version, then it was pure luck.

0 Kudos
Message 7 of 10
(2,511 Views)

Well thx for the suggestion i gonna try and rethink my process.thx for the help and the speed of response.

0 Kudos
Message 8 of 10
(2,506 Views)

Just one last question. The software that controls the wind tunnel is USB port and the data file generated is constantly  being updated. Is it possible that the constant updating of the data file could delay the execution of the subvi?

0 Kudos
Message 9 of 10
(2,482 Views)

If something else has control of the file, then the OS will not let other things use the file until that other process releases it.  So, yes, the other process writing to the file could be slowing you down.


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