12-03-2011 06:41 PM
12-05-2011 08:32 AM
Ok now I solved the problem of multiple SMS, but I have another one problem. I set weight 50kg to send sms, but when I put 60kg on force cell the measured take some 2-3 secods to final value (60,00kg 61,00kg) this is ok, but the message sent is always about 50,11 50,44 51,77. Never sent the final value.
12-05-2011 08:49 AM
You are now changing the requirements. The VI will send the SMS as soon as the weight goes above 50kg. Once it does, it doesn't matter what the final weight is, and if it takes 2-3 seconds it doesn't care, because it sent the message as soon as it got above 50kg and any further increases ignored. You are continuously acquiring data, so you will catch a reading while it's increasing. Sometimes it will be 50.11, sometimes 50.44, and sometimes 51.77. It all depends on how frequently you are checking the reading. So, do you really want to send it once it gets above 50kg, or once it "settles"? Or, do you want to send two different SMS messages? One once it goes above 50kg, and another once it settles? Once you define your requirements then you know how to write the code.
Also, what in the world are you doing with that shift register? If you want a running average, use an array. Look at the shipping examples. And watch your datatypes. Your constant of zero outside the loop should be a float, not an integer.
12-05-2011 03:49 PM
I will try tomorrow, I just want a only one message-sms when weight stabilized - final value weight. If I put 60kg on load cell and sms condition is 50kg the message must be: Weigt is: 60kg .
12-06-2011 02:18 AM
Hi Ajtimstoj,
I think that the easiest way to check for the stabilisation of the scale is keeping the measured values in a shift register, and sending the sms only if last x values don't differ by more than some margin.
You can check the simple example I added. Just replace the prompt user dialog with your measured value and set a proper margin (also depending on your needs increase the number of shift registers to compare more values), and set your sms sending code in the true case.
If you have any questions, please don't hesitate to ask!
12-06-2011 05:14 AM
I'm trying, but do not know where miss. Did I miss something?
12-07-2011 12:34 AM - edited 12-07-2011 12:34 AM
You didn't wire up anything in your True case. You have hollow tunnels showing that there are missing wires.
The True case should look like this.
12-10-2011 01:41 PM
I solve the problem, thanks to all.
12-30-2011 09:30 PM
hi everyone,
do you have any idea on how to receive the sms by using labview?
i have tried with the AT commands for receiving sms and there is no error but i have encountered in receiving sms by labview!!
any example codes to refer?
thanks heaps
Cheers!
01-02-2012 02:19 AM
Hi,
since I think you are already reffering to the same issue in your other thread, could you please continue it there?
Thank you.