LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview and terminal siemens tc 35i

Dear All,
I have a tc 35i GSM terminal.
I have managed to make it work with hyperterminal but my application requires that when there is a power cut it should notify me with an sms.can that be done directly from labview and if yes how?
If not,
in order for the device to send an sms there are some commands one has to write in HyperTerminal.
is it possible from labview to send these commands?or can i open a Hyperterminal file that will automatically run these commands?

sorry if my questions have profound answers but i am a complete newbee

Thanks

0 Kudos
Message 1 of 13
(3,767 Views)
I don't know what equipment you are talking about or what an sms is.  But if you are able to do what you want by putting some commands in Hyperterminal, then you can certainly do it with Labview.  You would just have to open up a VISA port to what port you would be opening up in Hyperterminal.  Then use Visa Writes to send out the commands.  Look in the Labview examples for serial read and write .vi's.
0 Kudos
Message 2 of 13
(3,751 Views)
the terminal siemens tc 35i is a device that sends text messages and receives and answers calls like a normal cellular phone.
if that adds any more details on your answer please let me know.
thanks!
0 Kudos
Message 3 of 13
(3,739 Views)

Hi,

Try using VISA commands to achieve this. There are several shipping examples that might help. These can be found by choosing Help - Find Examples in LabVIEW. Then choose Hardware Input and Output - VISA.

Let me know if these help!

Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 4 of 13
(3,717 Views)
Dear All,
I have managed to contact the terminal by an example application i found in national instruments site "basic Serial Write and Read_1bit".
I have a question though.
if i want to send an text message with my terminal, using HyperTerminal, after i write the text, I have to press CTRL+Z in order to send it.Do you now
in labview how can I express that command?

For example if i want to press enter and change line, for the commands to take effect i have to write \r\n

there must be a way
thanks

0 Kudos
Message 5 of 13
(3,676 Views)

The \r and \n are called slash codes and they are the slash codes for CR (carriage return) and LF (line feed). A LabVIEW string control/constant can be set for normal, '\' code, or hex display by right clicking on it. To send a CTL-Z, you should have an ASCII code table and lookup the hex equivalent, set your control/constant for hex display, and send the correct value. The hex value of CTL-Z happens to be x1A. You could also use a U8 numeric control set for hex display and type cast it to a string.

0 Kudos
Message 6 of 13
(3,672 Views)
if i understood correctly i have to set the display style to hexadecimal (?).
i want the program to be user friendly so isn't there any other way?for example is there abackslash code equivalent for CTRL+Z??
thanks
0 Kudos
Message 7 of 13
(3,665 Views)

I'm not sure why there has to be much of anything on the front panel at all. You said you wanted a program that automatically sent a message. All of the information you need can be constants on the block diagram. The example you mention is just that - an example to demonstrate serial communication.

If this is a program that a user will operate, design the front panel with just the controls necessary. If you want an operator to enter a message and destination, just have those controls and a send button. Everything else will be taken care of by the code you write. There is a very old example program posted at http://forums.ni.com/ni/board/message?board.id=170&thread.id=268276&view=by_date_ascending&page=1. The code itself can use with an update but look at the design of the front panel.



Message Edited by Dennis Knutson on 11-06-2007 09:23 AM
0 Kudos
Message 8 of 13
(3,660 Views)
you are right i'm not going to put this in the pannel.it worked with the hexadecimal!
THANKS!!
0 Kudos
Message 9 of 13
(3,652 Views)
i have to do two more things and i don't know if labview supports them.
First I want my terminal to send a text message SMS when the network is off and 2nd to send an sms every week at the sme time.
does anyone have any idea how to do this?
0 Kudos
Message 10 of 13
(3,614 Views)