Logging RS232 and analog data

Hi guys,
I'm trying to log data from my RS232 instrument, and also include a couple of analog inputs. 
The vi works "ok", but not great.  First off, the frequency on the daq assistant needs to be set very high to see a resonable refresh rate on the screen.   Secondly, the time sync is off on the data being logged from rs232 (unbundle node) and the analog inputs.
I like using the daq assistant and the write to file vi only because they are simple to set up.  Not too familiar with any other methods.
Any thought on how to make these 2 issues (plus a few more) better?
Formatting the front panel is still being tweaked. see attached.
This is a modified instrument driver vi, and the instrument driver vi library.  Hope this works for you guys.  Thanks for the help.
thanks
Darren 
Solved!
Go to Solution.
Attachments:
als8v0.llb ‏363 KB
AlicatReadLooped8V0 trial.vi ‏240 KB

I've turned the baud rate up to 38600 thinking that may help my problem.  I'm not really clear what that instrument driver vi is sending to the instrument  - I'm simply opening a visa, and getting data streaming from the instrument.....? At least that's what I assumed.
So I disabled all the other data stuff, including the "set pont" vi which basically just changes the valve opening amount, and I still don't get anything greater than approximately 2-3 points per second.  I was attempting to eliminate everything else from the code to diagnose the source of the slow data rate.  This told me it's definitely the instrument driving the data rate.
However, when I open up hyperterminal, data streams by very fast.   Seems way faster than 2-3 data points per second.
I attempted to turn the device ID from A to @, thinking this should turn the data to streaming from polling, but the communication didn't work (referring to  my vi didn't display data any longer).  .
I'd like to get about 10 per second.  I'm measuring pressure and mass flow, so that's about all I should be logging for a physical parameter
Thanks for the help.  I need it.  haha
Darren.
Ravens Fan wrote:
If you had absolutley nothing else going on, no DAQ assistant, no logging to file, just reading data from your RS-232 port, how quickly could your loop run?  Dealing with serial ports, it generally takes time to send the command, wait for the instrument to act on it, and then wait for the response to come back.  Three times per second doesn't sound that bad.  What is your baud rate?  If the messages are short, and the baud rate is high enough, I don't think you can really expect more than about 10 readings per second from a serial device.

Similar Messages

  • How to log incoming and outgoing data in OSB?

    Hi
    I need to log incoming and outgoing data in OSB.
    What is the best approach to do it?
    Thanks
    Vibhor

    Have you changed the log level of OSB server? You may do it through weblogic admin console.
    Open weblogic admin console and go through -
    1. Servers --> osb_server1 --> Logging (tab) --> General (sub-tab) --> Advanced
    2. Change 'Minimum severity to log' to 'Debug'
    3. Set Log file : Severity level to debug
    4. Set Standard out : Severity level to debug
    5. Save
    Now run a test.
    Regards,
    Anuj

  • CanI dont want my data synch with my work pc. Why cant I just go to a FireFox Account log and once logged in, have my data shown as a plug-in. When I am done surfing I log out and my data remains on the web and NOT on the local pc?

    Lets make Firefox Synch a function that if one 'logs onto' his or her account, then the browser will 'plugin' the users data (ie History, PW, etc). Once the user finishes his day (work or at home) he or she logs out and nothing remains in the local pc regarding favorites or anything. Instead of synching the data to every pc just keep the data on the cloud or web. That way the data travels where ever one is without the need to synch it and thus having it on the local pc. Maybe it already does this, but I dont see it explained anywhere. My 2 cents.

    When my pc and tablet were together I synched the bookmarks and everything was fine but I had to send my pc to repair and upon receiving it back I used the same sync account and although my phone and pc sync history the bookmarks and preferences on my tablet will not show up on my phone or pc. I have reset firefox and uninstalled and reinstalled, and I have changed recovery key, but the only thing that seems to show up as sincing with my pc is my pphone with no bookmarks passwords or preferences.

  • Any way to use OBDC in SAP to access MySQL DB and retrieve data

    I'd like to logon to an external MySQL DB (can de done easily enough with PHP)   but I'd like to do it with ABAP if possible.
    Connecting via OBDC I should be able to retreive the data from the DB  and then use it in my SAP application.
    Some databases will allow connection via
    EXEC SQL.
    connect to :dbsid
      ENDEXEC.
    EXEC SQL.
        set connection :dbsid
      ENDEXEC.
    EXEC SQL.
      open xxxxxxx for
      select
    ...... data from external DB
    from tablespace in external db
    ENDEXEC.
    do.
      EXEC SQL.
        fetch next XXXXXX into
               :db_table_field, .... etc
                 ENDEXEC.
      if sy-subrc ne 0.
        exit.
      endif.
      insert table int_sap_table.
    enddo.
    EXEC SQL.
      close XXXXXX
    ENDEXEC.
    If you can make this type of stuff work for a MySQL DB i'd appreciate the answer.
    Using PHP has a drawback as you need to have it installed on the front end PC and run in Foreground.
    The EXEC SQL commands run in batch which is what you need if you are talking about 100,000's of records from an external DB.
    Cheers
    jimbo

    Hi Graham
    Currently it doesn't seem to support MySQL.
    Now that SAP has taken over again the development of MAXDB I can't see it providing  direct MySQL to SAP functionality.
    MAXDB is available but that would mean changing the entire architecture and we don't want to do that.
    I think probably the best route to go would be to create a BAPI which is capable of performing a logon to the remote  MySQL DB server, get the data and either send it back as  IDOCS, an external flat file, or as an internal table depending on the volume of data to be retrieved.
    The good thing about MySQL is that the command line interface makes logging on and retrieving data quite simple.
    This data is actually wanted in a BI  / BW system to provide for a number of business proces analyses.
    I did think abut using "Web Services"  but the data retrieval will essentially be done offline.
    There is no requirement currently for transferring data FROM SAP back to the MySQL database ( although if you've ever dealt with top level management you know how quickly developments can change).
    PHP for all it's drawbacks is the really easy way - but we'll have a problem doing this in background from the SAP servers. For foreground tasks it's a real doddle if you have php on your front end.
    for example
    <?php
    $username = "pee_wee";
    $password = "let_me_in";
    $hostname = "localhost";        */* IP address of remote DB server */*
    $dbh = mysql_connect($hostname, $username, $password)
    or die("Unable to connect to MySQL");
    print "Connected to MySQL<br>";
    // you're going to do lots more here soon
    mysql_close($dbh);
    ?>
    Batch mode also seems OK  also from the documentation
    http://dev.mysql.com/doc/refman/5.1/en/batch-mode.html
    so running an ABAP which can issue system commands (readily available) should work in theory provided the SAP server can connect to the remote MySQL server machine.
    Thanks for your suggestions however
    Cheers
    jimbo

  • Logging of Remote Temperatur​e and Humidity data

    I am starting a project to gather data for humidity and temperature in
    several labs in our building. The sensors will be networked and one
    central computer needs to grab the data from them. I'll need to log and
    store data 24/7 and create alarms and send pages when readings go out
    of spec. I was looking for some general help and ideas form anyone.
    Canned VI's, or any information would be very appreciated.
    [email protected]

    Hello,
       My application is also Data logging 24X7, I am using Lakeshore 218 temperature monitor and taking data to PC by RS232 interface. I don't have problem to plot data on chart. But in my application i may have to look some time historical data.It is little bit SCADA type application but only data display. I tried to find some example but i couldn't understand , how to implement that. How it is possible to write/read same file at a time. My data logging is continous 24X7 and for example i want to see trend of temperature 1Hour back for 30 minute. How it is possible. because when i look at historical data same time datalogging is running.
    Is there any example available for such application? or can you guide me how i can do this?
    --Vishnu

  • Get Total DB size , Total DB free space , Total Data & Log File Sizes and Total Data & Log File free Sizes from a list of server

    how to get SQL server Total DB size , Total DB free space , Total Data  & Log File Sizes and Total Data  & Log File free Sizes from a list of server 

    Hi Shivanq,
    To get a list of databases, their sizes and the space available in each on the local SQL instance.
    dir SQLSERVER:\SQL\localhost\default\databases | Select Name, Size, SpaceAvailable | ft -auto
    This article is also helpful for you to get DB and Log File size information:
    Checking Database Space With PowerShell
    I hope this helps.

  • Belle: No WLAN and Packet Data log.Filter options ...

    In Nokia N8, with Symbian Anna, WLAN and Packet Data logging wasn't possible, even though there were options in the log filtering settings.
    See below:
    http://i44.tinypic.com/9kxbfa.png
    After updating to Belle, log isn't still working, and both WLAN and Packet Data options were removed from filter options.
    http://tinypic.com/r/6dxwgg/5
    Will it be implemented in a further time?
    Best Regards

    Hi,
    quick update on this one as we now have a FAQ online.
    Q: How can I get a WLAN/Wifi and packet data filter with Nokia Belle?
    A: There is no data filter included in Nokia Belle by default, but you can download specific apps from Nokia Store.
    BR,
    yvonne

  • How to retrieve users logging-in and logging-out date and times in SharePoint

    At the moment I am using SherePoint 2013 with a few tenants.
    I am going to have access to the users logging-in and logging-out dates and times.
    For instance, I would like to know the detail of the dates and times which a particular user of a tenant has logged-in and logged-out during the past few months.
    Any idea?

    You can retrieve that info from the IIS log files. Maybe you can use a free IIS reporting tool that I've built and adjust it to your own needs, you can get it here:
    http://gallery.technet.microsoft.com/office/The-SharePoint-Flavored-5b03f323
    Btw, in a web environment usually there is no such thing as the log-out date and time because the end user just stops making requests. So, you've got to take a look at the last request and by default, after 20 minutes the session times out and you can assume
    the session has ended.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Chat Messages do not show date and time of buddies logging in and out.

    If I keep my buddy chat with friends open, it used show the date and time that they log in and out. Now after updating to Yosemite, it does not and also will show the last message exchange as something way older that the last chat session. Not the actual last exchange. Why?
    Is there a setting that I can keep the date and time log. It's important for work conversations. Thanks.

    I realize that my needs are outside of the normal editing workflow. I am a private investigator and last week I shot over 6 hours of surveillance video on a Sony video camera. Within this 6 hours of video there is at most 2 minutes of actual footage of my subject. So what I wanted to do was just import the parts of the clip I want, so I can avoid importing the whole 6 hours, and then add a text title of some sort that shows the date/time. My problem is that once I get this clip I have easy way of establising the TOD short of taking the clip capture time and then counting up using the SMTPE Timecode. In this regard iMovie makes it easier because I can just hover over the clip and see the TOD of that specific frame. iMovie on the other hand would force me to import the whole 6 hour video so i'm left moving between both programs which is less than ideal.

  • Deletion of data from change log table and PSA

    Hi,
    For a DSO  I want to delete data from "Chnage log table"  and " PSA Tabel".
    For the DSO manage screen I have seen " Environment-> " Delete changelog table" from this we can delete chnage log table data as per my understanding.
    at PSA Level Mange screen also I have seen " Environment-> " Delete changelog table" from this option also it deletes the data from change log table or it deletes data from PSA table?.
    if this option also deletes data from changelog table then how we can delete data from PSA table?
    Please clarify me

    Hi,
      I am not sure what are you referring to from your point "PSA Level Mange screen also I have seen " Environment-> " Delete changelog table". When ever you click on manage for your psa you will be routed to a popup where you can see all your requests in the PSA table & there after if you click on any single request you will get Environment menu option but there wotn be any change log deletion option available. Please check again? Right clicking on your data source will take you to the manage requests for PSA. You can selectively delete the requests as required.
    For DSO when you right click on manage you can directly find Delete change log data option in the Environment tab. there you can select the requests you want to delete.
    Also if you want to automate the deletion process then you can simply create a chain and include the steps for PSA deletion & change Log deletion accordingly.
    Also it is recommended to keep on clearing the PSA table & Chage log data at regular intervals as it saves the disk space & thus helping in performance optimization
    Please refer the below doc at SDN, it will be helpful for you in automating the process of change log deletion & PSA deletion.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02ba9e7-bb6f-2c10-09b4-e86b9fcbad41?QuickLink=index&overridelayout=true
    Hope it clears your doubts
    Thanks

  • HT3231 I have completed migration, is it possible to merge the two account now? or a short cut to share information? I don't want to log in and out each time I want to see my old data.

    I have completed migration, is it possible to merge the two account now? or a short cut to share information? I don't want to log in and out each time I want to see my old data.

    No, the camera connection kit only supports the copying of photos and videos to the Photos app, it doesn't support copying content off the iPad. For your second camera instead of the SD reader part of the kit, does the iPad to camera cable not work with it for direct transfer to the iPad ?
    For Lightroom and Nikon software again no - you can only install apps that are available in the iTunes app store on your computer and the App Store app on the iPad, 'normal' PC and Mac (OS X) software are not compatible with the iPad (iOS). There are some apps that perform fairly basic editing functions that are available in the store, but nothing as sophisticated as, for example, Lightroom.

  • RS232 and how to build some datas into a waveform

    Hello everyone !
    I would like to ask you a question about how to build some datas into waveform.
    Let's me explain :
    Actually, I am working on a project with a PIC.
    The PIC sent 3 informations to Laview by RS 232 :'velocity;current;tension\n'
    Lynn and Crossrulz help me to make a diagram that allows to read datas and displays them with charts.
    It works perfectly.
    Now, I would like to display some datas from a sensor (dynamic datas)  and double datas from RS232 on the same chart with different plot.
    So, I have to build double datas into waveform,  convert double datas into dynamic datas.
    I have tried something : I used 'Convert to dynamic data' function but it doesn't work and I don't know why.
    Can you help me ?
    I join you :
    - VI
    - a gif that shows what's happening
    - screenshot
    Notice : I used 'simulate signal' to represent a sensor
    Thanks for your help
    Attachments:
    test5.vi ‏84 KB
    test7.gif ‏685 KB
    diagram.JPG ‏77 KB

    Hello Crossrulz !
    Thanks again for your help.
    I have found Build Waveform but I get a strange result.
    As first step, I have simplified my problem and I have just tried to build a waveform from my datas.
    Since Build Waveform must have an array as input, I have used  Array Subset.
    As result, I don't get a plot but if you pay attention, you can see a little white dot around my value.
    How can I fix that ?
    Thanks again
    Attachments:
    test_build_waveform.vi ‏19 KB
    diagram2.JPG ‏59 KB
    build_waveform.gif ‏597 KB

  • I was informed my credit card expired in February but was not informed until March. I logged in and updated the new expiration date but now Netflix has cancelled my subscribtion. What can I do?

    Was informed by Itunes that my credit card expired in February but was not informed until March. I logged in and put new expiration date but now Netflix has cancelled my subscription. What's up with this?

    Contact Netflix and ask them.
    Contact iTunes customer support and ask them.
    Why would you think anyone in these user to user support forums would be able to assist in this matter?

  • Problem removing Diagnostic and Usage Data Log

    I have had several iPod crashes and ironically that's not my problem. The problem is the Diagnostic and Usage Data log is getting larger and larger. I have my iPod Touch 4th Gen. set to not send reports to Apple and I do no see any way to delete or editing it. Is there a way to delete the  log or remove some of its lines of reports or dose it have to be sent to Apple to remove it?

    I may be a little rusty on the rules here but I didn't think hijacking a thread was not aloud. If it was me I would have started my own thread instead of taking the original question in a different direction. Just sayin.
    We I was looking for my answer I found yours.
    http://support.apple.com/kb/HT2534

  • DAQmx configure logging (TDMS) and counter

    Hi,
    I'm trying to stream analog data jointly with counter data to one TDMS file with use of DAQmx configure logging vi. This is quite new but powerful function but I can't manage with it successfully. I'm able to acquire analog data only and display no. of counts simultaneously (attached diagram). I have no idea how attach counter data to TDMS stream as separate channel group.
    It is important for me to stream data with this VI bacause I'm sampling analog data with 95kHz per channel (PCI-6143 board).
     Could you post any ideas how to resolve this problem?
    Best regards
    Mark
    Attachments:
    acq_analog_and_contr.PNG ‏44 KB

    Eric, hear is short info about DAQmx configure logging http://zone.ni.com/devzone/cda/tut/p/id/9574.
    Yes I thought about producer/consumer structure, It is first alternative way.
    There is also another very simple way -  connecting encoder to analog input and acquire together with analog signals. Of course It will be neccasary to process sigal from encoder after recording. I'm also concerning such solution
    Ok I have to sleep with this problem  
    Best regards
    Mark

Maybe you are looking for

  • How can i delete all traces of firefox please

    how to get rid of every last hidden folder,i have firefox 13 installed and its crashes 20 times aday at least maybe more so i want to get rid of every last thing then reinstall

  • CJ20n (settlement rule)

    Dear Experts, Can any one plz provide solution, CJ20n (settlement rule) 1 Can we delete all settlement rules in single shot at WBS Element Overview. Actually by mistake user has marked all billing items, generated settlement rule (CJB2) to all WBS, n

  • How to run crystal report in business objects xi 3.1 sp3 enterprise

    hi, i created crystal reports thru crystal reports 2008, i have the crystal reports locally on my machine. the source for the crystal report is stored procedure to get the data from database the main thing is i need to import these reports into busin

  • Black Flickering In Wipe Transition?

    I have a few wipe transitions for a fading in and fading out effect of photos on the timeline. For some reason there's this weird black flicker taking place on some of them. An example would be that when a photo has a wipe (left to right) to fade in,

  • Make utility

    I am getting an error when installing Oracle 8i on solaris 2.7. I am getting an error that it could not find ..../usr/make. No make utility. Where could i get and install this uility on my server. I have conducted a search on my sun box and no makefi