LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Balance and Pressure acquisition using one VI - VI hangs up

Hi
 
I have tried creating a VI in LV 8.5 for measuring voltage output from a pressure transducer (Omega) and a balance (Ohaus AV 812).  Pressure data acquisition is controlled by instruNet DAQ controller.
 
I used the drivers for pressure (iNet 380) and Ohap for the balance.
 
When I run the VI, based on the parameters that I have set, the VI should run for 300 seconds, and data recorded every 5 sec.  So, I should get about 60 readings. But the VI seems to hang up after about 2 min.  But, the front panel shows the VI as still running (The black arrow is still bold, after almost 30 min, as I write this).  I am not sure what is the problem.
 
I have run the combined VI before without any problem.  The earlier VI had an open/create and write to text file. 
This VI, I have used write to spreadsheet VI.  Also, I have tried to average the readings for Pressure during each iteration. 
 
I would appreciate your help in this regard.  I am very new to LV and instruNet, and just when I thought things were coming along fine, I have one more problem. 
 
Also, please suggest if there is a way to compute the mean for the weight data also for each iteration.  I tried using the mean VI, but all I got are zeroes as the output.
 
Pl. find the VI attached. 
 
Thanks,
 
Smuthukr
 
 
               
0 Kudos
Message 1 of 5
(2,732 Views)
I am not familiar with instruNet, but I am more than happy to take a look at the code to see if there are any possible programming errors.
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 2 of 5
(2,723 Views)

Here is the attached code.

Thanks,

smuthukr

 

0 Kudos
Message 3 of 5
(2,700 Views)

Ok I found a few problems, not sure if they are your exact problem though...you'll have to test them to make sure...

I can't test this because I don't have the ohap or net stuff...

In anycase your stop logic is a bit confusing, although I am not entirely sure it would be causing the problem. Personally Id make the compound arithmitic an OR instead of an AND and stop on true for loop (which should ALWAYS remain at the bottom right of your loop). I think one problem might be that you wait until next multiple is waiting 10 seconds, not 1 as you comment says...you wired 10000 into it instead of 1000...

Anything else is most likely in one of the subvi's which I can't look at...

________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 4 of 5
(2,695 Views)
Thank you so much for your inputs.  Let me try those.
 
Regarding the comment for ms wait, I had originally set it up for every second, but wanted to lengthen the interval  to 10 s.  I overlooked to make the change in the comment, though.
 
Smuthukr 
 
 
     
0 Kudos
Message 5 of 5
(2,688 Views)