08-21-2013 03:25 AM - edited 08-21-2013 03:54 AM
Can any one give example vi for dialing up a modem and sending data to remote end
08-29-2013 09:57 PM
Hi sindhu6,
Presuming that you are connected to your modem via a serial connection:
I did find a forum related to your enquiry: http://forums.ni.com/t5/LabVIEW/AT-commands-in-labview/td-p/1213335
And I did find an example from ni.com: http://zone.ni.com/devzone/cda/epd/p/id/2577
Basically, what you need to do is to find out what are the AT commands used for your modem and send the command over using VISA related functions (e.g. VISA Read VI). You can send the command in a sequantial method. You can do this by using the method found in the first link. The best would be that you can create a state machine where by each case/state will consists of commands that you need to run in a sequence (let's say a sequence of AT commands for sending a message via TCP/IP communication).
You can also use a sequence structure but I would not suggest that since you cannot stop the sequence half way and if your command is very long, this may look pretty messy for your code.
The main question is:
Thank you
Warmest regards,
Lennard.C
08-29-2013 10:22 PM
Hi sindhu,
Basically you need serial communication. See you may get VI but as per your requirement you may not becasue baude rate and AT commands sequence will not be same. First read serial comm then do this.
08-29-2013 10:23 PM
Which modem you are using?
09-03-2013 06:37 AM - edited 09-03-2013 06:49 AM
.
09-03-2013 06:42 AM
They didnt give information about the type of modem they're gonna use,i just want a sample vi for this.
And i m using labview 8.6.
Thank u.. let me follow you after contacting them..
09-03-2013 09:11 AM
If you don't know the type of modem, how do you know it uses AT commands?
There have been numerous discussions on modem communication. Have you done a search yourself? One example can be found here. There are others.
Modem communication is no different than other serial communication. You send a command, properly terminated and if the command is supposed to generate a response, you wait for the response by doing a read. I would suggest you do a debug of communication with a terminal emulation program such as Hyperterminal,Putty, Procomm, etc.