LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending SMS using labview

You should probably read some basic labview tutorials, or ask your teacher what a flag is.
0 Kudos
Message 11 of 25
(3,728 Views)

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.


0 Kudos
Message 12 of 25
(3,712 Views)

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.

0 Kudos
Message 13 of 25
(3,708 Views)

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 .

0 Kudos
Message 14 of 25
(3,697 Views)

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.

 

value stable.png

 

If you have any questions, please don't hesitate to ask!

Best regards,
Jano
0 Kudos
Message 15 of 25
(3,685 Views)

I'm trying, but do not know where miss. Did I miss something?

 

0 Kudos
Message 16 of 25
(3,683 Views)

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.

 

0 Kudos
Message 17 of 25
(3,673 Views)

I solve the problem, thanks to all. 

0 Kudos
Message 18 of 25
(3,634 Views)

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!

0 Kudos
Message 19 of 25
(3,595 Views)

Hi,

 

since I think you are already reffering to the same issue in your other thread, could you please continue it there?

 

Thank you.

Best regards,
Jano
0 Kudos
Message 20 of 25
(3,581 Views)