Communicat​ing with modem-plea​se give some suggestion​s

Hi Every one....
We r having a real time system now and we r looking for a better idea for the same.
The real time system is developed using VB and now thinking of changing to labview.
The current system is ......Data from RTU is sent to serial device(modem) and VB application checks the modem
every 10 second and any new data found it inserts into relevant tables in the database and after insertion to the
database the data is fetched from the database for real time display.So in the real time dipay is getting delayed.
ie, a record that is newly obtained is displayed in the real time display after several minutes only. 
Think the display is delayed because of the fact that its getting displayed after inserting the data into the database
and then reading the data from the database.
What is the better idea to reduce the delay in display?I thought if v check the modem every 10 second and if new data got,fetch the data ,decode it ,display the information and then insert into the database,the system will be better.But if a single check of modem can give any number of messages which contain data.If v get 10 messages v have to decode 10 messages display 10 records and then insert 10 records into the database.Is there any better way for this?
I havent worked with serial communication applications.I havent thought abt the coding side now.Just thinking of theoverall idea only.
Thanks in advance for the suggestions.

Hi,
Thank you so much for your reply sir.
Actually my question is related to modem communication .But sorry, in the first post i asked to know
whether my idea is correct or not.
In Our real time system,RTU send message to modem at any time.
So as in the previous post ,after decoding the data  v can display the data ad then can insert into proper table.
And nw i have to also add a module to store the data in a txt file also, sfter fetching the data frm the modem.
ie,as suggested by u i want to check the modem when data arrives at the modem(instead of checking 10second or something)
and i want just to append it to a string until i get one complete message.ie,i have to check for the end delimiter(which is carriage return in our system)and when i get the end delimiter from the modem,i have to write the entire string into the text file.As RTU send the data to modem it may be sending a part of a message or more than one message ....
I want my entire code to be executed only when data arrives at the modem.ie,rather than putting all the code in a while loop i want some other method the code will be executed only when there is data in the serial port.Just like event structure in which certain code is executed only when an event happens(for example code inside a time out event will be executed only when the time out occurs.it is free from loop also).Is it possible to code like that?
I just coded using bytes at serial port and putting the code inside a loop.Now my PC is not connected to modem.so i havent checked my idea is working or not.
I want to code using VISA events.I tried to code.But i think  it is not correct..The out put of VISA wait for event's status i am not sure.
I thought if the status is true it indicates the event occured.Can u help me regarding this?
I am herewith attaching my idea.I have put both methods in the same VI.Sorry for the inconvenience because of the bugs in the code.
Thanks once again....
Attachments:
modemread.vi ‏41 KB

Similar Messages

  • Anybody has the exprience in programming I2C BUS and Jtag test with Labview? Pls give some suggestion !Thanks

    See the title !

    The following link may solve half your problem.
    http://www.calbay.com/I2C_driver.htm

  • We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    We have a requirement to print the w2 forms for employees using java application, how can i implement this. Please give some suggestion.

    Anyone any ideas to help please?

  • Pls. give some suggestion on Subsequent Credit and debit note?

    Dear Gurus,
    Pls. give some suggestion on Subsequent Credit and debit note?
    Regrds
    Shikha

    Hi Sikha
    We generaly use subsequent debit / credit to adjust invoice value without affecting Qty
    Pls check notes supplied by SAP
    A subsequent debit/credit arises if a transaction has already been settled, and a further invoice or credit memo is received afterwards.
    A subsequent debit/credit changes the total invoice value of a purchase order item; the total invoice quantity remains unchanged. Therefore, only a value-based update of the purchasing transaction takes place. There is no quantity-based update.
    You must enter an invoice as a subsequent debit if a purchase order item has already been invoiced and further costs are incurred. (Example: A vendor has inadvertently invoiced you at too low a price and then sends a second invoice for the difference.)
    You must enter a credit memo as a subsequent credit if a purchase order item was invoiced at too high a price and now you have received a credit memo. (Example: A vendor has inadvertently invoiced you at too high a price and then sends a credit memo for the difference.)
    If you enter a subsequent debit/credit, the system suggests the entire invoiced quantity, but no value. The maximum quantity that you can subsequently debit or credit is the quantity that has already been invoiced.
    You can only enter a subsequent debit/credit for a purchase order item if an invoice has already been posted for that item.
    A subsequent debit/credit cannot refer to a particular invoice.
    Subsequent debits and credits are listed separately in the PO history
    Typical example is like
    suppose vendor has overcharged u for perticular PO and afterward he want to correct it
    In such scenario u can post subsequent debit to correct PO without affecting Qty. field
    <b>Reward if usefull</b>
    Vishal..

  • HT204023 Hey guys I am having a problem. Could you guys give some suggestion? I can connect personal hotspot from iPad 5 to iPhone 5s via Bluetooth  but the wifi doesn't recognize and can't connect. USB and Bluetooth sharing of hotspot is okay but wifi do

    Hey guys I am having a problem. Could you guys give some suggestion? I can connect personal hotspot from iPad 5 to iPhone 5s via Bluetooth  but the wifi doesn't recognize and can't connect. USB and Bluetooth sharing of hotspot is okay but wifi doesn't

    troubleshooting hotspot http://support.apple.com/kb/TS2756

  • 6025E DAQ card is not communicat​ing with driver I have written

    I recently wrote a driver that used the 6025E DAQ card. I then packaged up this product, and am in the process of creating a second identical product. The problem is that the software I wrote does not work with the new hardware card. Nothing has changed, except for the new card. Basically, the first product works great, the second one does not... They both seem to be using the same version of NI-DAQ (6.9.1), and I can't think of anything else that would cause these problems...
    Could it be the computer speed? The actual system is a 866 MHz, but the test system (until the new computer arrives) is only 250 MHz...
    In addition, the NI-DAQ test software works fine, i.e. I can send Digital inputs and th
    e NI-DAQ test software will process the signals, but my software will not.

    First, I want to make sure I understand your terminology. You have written a driver for your 6025E? We consider NI-DAQ(6.9.1) the driver for the DAQ boards. If you are making NI-DAQ function calls, then I'd say you are using the driver. (You're not making register-level programming calls are you?)
    It's hard to say what the problem is right away, but I guess I do have some suggestions. In case you were wondering, computer speed usually isn't a problem when using standard DIO.
    What does your program do? Find a similar example program in your ...\NI-DAQ\Examples folder and see if it works.
    What is the other board you are trying to use? Is it also a 6025E?
    Also, you said the program is not working, but what is the result? Are you getting any kind of e
    rror message?
    Russell
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • Temperatur​e controller gives wrong powerup configurat​ion after communicat​ing with RS-232

    Hello,
    I was working with a Lakeshore 330 Programmable temperature controller using the LabVIEW drivers downloaded from NI driver site. My aim was to implement a continous RS232 data acquisition. I initially thought of using the similar code to the one used in another transducer (a pressure transducer which acquires data from RS232 continously). Unfortunately, I kept this vi in the same vi as the I am developing. While executing the vi, I got error from the pressure transducer, possible because both transducers are trying to communicate using same serial port. After that, my Lakeshore 330 temperature controller always power up in wrong configuration. I cannot switch input channels. Also, in the temperature it measures, the two digits after the decimal is missing. For instance, instead of 21.43 it is just showing 21.
    Anyone know what went wrong here? I restarted the Lakeshore several times, still no change. Is it possible the wrong write command to the lakeshore somehow messed the setting? Is it possible to get back to the original factory setting. I am getting desperate.
    I deeply appreciate any help and suggestions.
    Thank you in advance
    Zch
    Solved!
    Go to Solution.

    It really doesn't sound like a LabVIEW problem but a user error.
    All I can suggest is that you read the manual for the Lakeshore controller.  They are either going to have some steps that you can use to reconfigure it using front panel controls, or perhaps their own software to help configure it.  Also look at whatever protocol they are using for serial communication.  Comparing that to whatever you were trying to do with the pressure device might tell you how you might have accidentally changed the Lakeshore controllers configuration when you got their code and serial ports all mixed up.

  • Hp 1210 all-in-one not communicat​ing with word through my mac

    my hp 1210 works fine except when i attempt to print a recently modified word document I get an error message that says "word could not communicate with the printer"
    I aborted a print job yesterday and the "job hold" in the print queu has a red stop sign symbol...when i click on the jobs it say there are no pending jobs.
    I am at a loss for what to do. I tried rebooting and reconnecting the printer and the mac, no change.

    Hello JPV626,
    Welcome to the HP Support Forums!
    I understand that you are having issues printing with the PSC 1210 on your Mac, seems to be a queue issue on the Mac.
    What is the Operating System installed on the Mac?
    Try resetting the Print System on the Mac (Mac OS X: How to reset the printing system), Repair disk permissions, install any and all updates on the Mac and restart. Once restarted, add the printer back in System Preferences and try printing.
    I will look back for your reply.
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Communicat​ing with a GPIB connected instrument through network

    HI Folks,
    In our lab, we have different instruments connect to
    different computers. And it is extreme inconvenient to switch computers in
    order to use different instruments since not every instrument is connected to
    the same computer. And I would like to design a labview program that can communicate
    with any instrument via network so users can have control to all the
    instruments on the same computer in the lab so they don’t have to switch computers every time they
    want to use a different instrument. How do I do that?

    You could use Remote NI-VISA. The machine to which the instruments are connected would be running the Remote NI-VISA Server. Check the NI-VISA documentation, as this is described in there.

  • Communicat​ing with PC Based CArd on Register Level

    I have an unsupported, simple, ISA Bus based PC card. I wish to communicate to this device within Labview, on a register basis (analogous to DOS inport(), outport() statements) without developing a driver. Does anyone have an idea of how this might be done? Thanks

    And the NI site has a library called accesshw.llb which can be used to do
    the same things under NT-type os's (don't know about labVIEW under Win XP
    though).
    all the best
    Andy
    "Scott Seidman" wrote in message
    news:[email protected]​.4...
    > Larry the K wrote in news:506500000008000000E1350000-
    > [email protected]:
    >
    > > I have an unsupported, simple, ISA Bus based PC card. I wish to
    > > communicate to this device within Labview, on a register basis
    > > (analogous to DOS inport(), outport() statements) without developing a
    > > driver. Does anyone have an idea of how this might be done? Thanks
    >
    > There are InPort and OutPort commands in the Advanced section of the
    > fun
    ctions palette. They will work with win95/98, but no other OS
    >
    > Scott

  • GPIB not communicat​ing with my magtrol instrument​s

    Hello,
    I've installed my PCI-GPIB on a system running windows xp, it was on a system running windows 98 and worked correctly. I am using the card to capture data from a Magtrol Dynomometer Controller. I've run the software and driver updates from NI website. Also, when I am in the MAX software and communicate with my instrument manually I can read correctly from the instrument. What is happening is that when I try to write and read from the magtrol controller the data stream is not ending(getting the cr-lf?). In the magtrol installation instructions it says:" GETTINGSTARTED
    1. From the Windows taskbar, click Start, then point to Settings and click Control Panel.
    2. Double-click System. This will bring up the System
    Properties dialog box.
    3. Click the Device Manager tab.
    4. Using the right mouse button, click (right-click) National Instruments GPIB Interfaces.
    5. Click Properties.
    6. Click the Device Templates tab. See Figure 2�4 System Properties & GPIB Interfaces
    Properties.
    7. Scroll down Device Name list until DEV9 is reached.
    8. Click DEV9.
    9. Set DEV attributes to the following:
    a. Under Termination Methods, select the Terminate Read on EOS check box.
    b. Change EOS Byte to �10�.
    c. Select the Readdress check box."
    The problem is when I right-click on National Instruments GPIB interfaces I get a dialog box with a tab that says "General" and an empty page. I think my devices are probably not setup correctly because I haven't followed the magtrol instructions (this worked on the windows 98 setup). I am not sure how to fix this, Any help would be appreciated.
    Thanks in advance,
    Jennifer

    Jennifer,
    Thanks for your question regarding configuring the GPIB termination settings. Depending upon which version of the NI 488.2 driver that you have installed, the method for changing these settings may be different. However, after installing the NI 488.2 driver you should be able to change the termination settings of your NI GPIB device in the Measurement and Automation Exploer. This utillity should be loacted in Programs>>National Instruments folder from the start button. After expanding the devices and interfaces folder in MAX you can right-click on the PCI-GPIB and a configuration window will appear where you can change the settings that you are refering to. A screenshot of this window is attached below.
    Shea C
    Applications Engineering
    Nationa
    l Instruments
    Attachments:
    GPIB_Config.bmp ‏426 KB

  • Arghhhh - How can communicat​ing with Blackberry be this hard!!!!

    All I wanted to do was send an eamil to say...
    Why waste so much packaging?  I just bought a International Charger and opened the black box to discover inside a white box that was exactly 50% of the size of the black box it had been put into.  What a waste of packaging.  Have you heard of this thing called the Green movement?????
    Oh, I then wanted to send a simple email, (you know the things that you make easy when mobile), but cannot find an email address anywhere on your website, so had to REGISTER and sign a Terms and Conditions agreement, just to tell you that your wasting packaging. C'mon, do you really want Customer feedback.  If so make it a little easier please.

    Hello and Welcome to the Forums!
    Well, I understand your frustration, but, when you registered for these forums, you agreed to certain conditions and were presented with the purpose of these forums. Specifically, these forums are a user-to-user support channel, not a user-to-RIM conduit. As such, it is unlikely that RIM will see what you have written. However, if you have specific and constructive ideas for them, I have heard that they accept such via email to [email protected]
    There are other method of contacting them...their "Contact Us" page (http://na.blackberry.com/eng/contact/) has some options...albeit none of them seem to be email-based, but that's their choice to make I suppose.
    Anyway, posting here is nice -- but if you want your message to be seen by someone at RIM, these forums aren't I think the best way to do that.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Communicat​ing with Keithley 2602A using python script

    Hi everyone,
    I want to enable communication between my PC and Keithley 2602A SourceMeter Instrument so that I can send commands to the SMI without using Test Script Builder (TSB) - a scripting/remote controlling program that enables communication between itself and the host computer.
    The reason why I want to do this is because I want to program in Python to carry out a series of tasks involving other hardwares and adjusting the voltage on the SMI at the same time. I can't use TSB to do this because TSB is solely for controlling the SMI and not other hardwares. I need to use Python scripts to consolidate all the hardware control. So far, communicating with other hardwares from my PC using Python scripts is not a problem because I have readily available libraries for them.
    I have found PyVisa which I thought could solve the communication problem. So I installed PyVisa and wrote the following code to test the communication.
    import visa
    keithley = visa.instrument("COM1")  #SMI connected to COM1
    keithley.write("smua.source.output = smua.OUTPUT_ON")  #send this command to SMI
     However, the communication was not successful as I got the error message as shown below:
    C:\Documents and Settings\cho\Desktop\Python Ex>keithley_test.py
    Traceback (most recent call last):
      File "C:\Documents and Settings\cho\Desktop\Python Ex\keithley_test.py", line 2, in <module>
        keithley = visa.instrument("COM1")
      File "C:\Python26\Lib\site-packages\pyvisa\visa.py", line 292, in instrument
        return SerialInstrument(resource_name, **keyw)
      File "C:\Python26\Lib\site-packages\pyvisa\visa.py", line 680, in __init__
        "delay", "send_end", "values_format")))
      File "C:\Python26\Lib\site-packages\pyvisa\visa.py", line 358, in __init__
        "lock")))
      File "C:\Python26\Lib\site-packages\pyvisa\visa.py", line 132, in __init__
        keyw.get("lock", VI_NO_LOCK))
      File "C:\Python26\Lib\site-packages\pyvisa\vpp43.py", line 753, in open
        byref(vi))
      File "C:\Python26\Lib\site-packages\pyvisa\vpp43.py", line 398,
    in check_status raise visa_exceptions.VisaIOError, status
    pyvisa.visa_exceptions.VisaIOError: VI_ERROR_RSRC_BUSY: The resource is valid, but VISA cannot currently access it.
    Can anyone tell me what went wrong? How can I control the Keithley 2602A using a Python script run from my PC?

    Hi DavItron, this is a very old thread but it's one of the top google results when I looked up info on how to implement some Python code with PyVISA to drive the Keithley 2602A so I will post this response so that other searchers can find the info.
    You can store data in named variables in the Keithely 2602A and then "print" them to the remote interface using something like the following:
    import visa
    ps = visa.Instrument("GPIB::Address of your instrument")
    ps.write("smua.source.levelv=10")
    ps.write("smua.source.output=smua.OUTPUT_ON")
    ps.write("currenta, voltagea = smua.measure.iv()")
    ps.write("smua.source.output=smua.OUTPUT_OFF")
    current = ps.ask("print(currenta)")
    voltage = ps.ask("print(voltagea)")
    For what I do which is mostly setting and measuring a bias point, then holding that while I trigger a measurement on another instrument, this is fine for me.  If you want to do  sweeps with a lot of data points it's probably more efficient to use the buffers directly, but I haven't needed that yet.
    Hope that helps somebody!

  • Computer isn't communicat​ing with my HP Wireless Printer and Wireless light is flashing

    My computer isn't communicating with my HPDeskjet3054A.  I turned it off and now the wireless light is flashing. HELP

    What operating system?  What router?
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Several emails per day - from blackberry communicat​ing with server?? Need to remove emails.

    Afternoon, 
    Each day my outlook email recieves about 6 - 9 emails; of the below information, with an attached 'DAT File' that needs to be opened by selecting a program.
    Information in the main body of the email
    'this message is used to carry data between Blackberry handheld and an associated server. Please do not delete, move or respond to this message - it will be processed by the server.'
    These emails are becoming annoying as I have lots of important work emails to deal with.
    Does anyone know how to stop these emails without effecting how the blackberry works with the pc?
    Assistance would be appreciated.
    Thanks

    Reason : You have installed Desktop Manager using the 'Desktop Redirector' option.
    Step 1: If you're not using Redirector, you should uninstall Desktop Manager and then reinstall it using the BlackBerry Internet Service option.
    Step 2: On your device, go to: Options > Advanced > Service Book, and delete all service books for [Desktop]
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • Returns and Free Item indicator in Purchase Requsition

    Can we get the FREE Item and Returns Item indicator (as available in PO) in Purchase requsition. Can we create returns PR or free item PR. Thanks,

  • How to track sample items in SAP

    Hi experts, we need some advice on how toi nput and  track our sample items in SAP.  we would like to keep track of the quantity of sample items that we purchase, but we do not want it included in our inventory. the sample items are actually used in

  • Commitment carry forward

    hi gurus we just entered a new fiscal year and when we try to change orders created in the old fiscal year we get an error saying "Old FM line items 0010124941/00001 could not be found'. please advice.

  • Business Place and Section Code - Validation

    Dear All, While posting a document through Tr Codes FB60/F-43/MIRO, Business Place and Section Code should be Mandatory fields, the system should not move forward to other screen untill and unless, entire this fields. Provide me the Validation steps

  • Migrating Employee data from Legacy system - CRM

    Hallo all, I need to map the employee data of the legacy system to an Idoc(For migrating data with XI). I functionally mapped the fields in the legacy system to the fields in CRM BP master data(Most of them). I have selected the BP complex Idoc(CRM_X