How to avoid losing data when communicat​e with high speed motor?

I connect with high speed servo motor via RS232. To avoid losing data. i thought to set receive buffer, only read the buffer if it collected all bytes. Is this possible?

Hi,
If you know the number of bytes you are trying to read, you can set a viRead call to return information once the particular number of bytes have been read.  For more information on this, take a look at the KnowledgeBase article on a Serial VISA Read to read a requested number of bytes. 
Even if you read before all bytes have been collected, you should not lose data.  When the specified number of bytes are stored in the buffer, the viRead call will send the information to the program, and new data coming in will be stored in the buffer until the byte count is reached again.
I hope this helps,
Lauren L.
Applications Engineering
National Instruments

Similar Messages

  • How to avoid erasing data when upgrading my iPad if i did not remember to back up?

    When i was in the middle of upgrading my iPad 2 to iOS5, the plug came off during the time when the computer was 'restoring' iPad data. when i re-connected, there is a message saying the old files may be erased. i am concerned i will lose all my files as i am not sure if they have been backed up during the process. what should i do to proceed with the upgrading and be sure the files will remain?

    I know this is an old thread. But I have the same problem. All the songs that I have deleted on my iPad, after uploaded to iCloud, doesn't show up when turning iCloud back on. But, all the songs show up on my iPhone!!??
    And when I start a new project on my iPad, upload it to iCloud and then exit GarageBand, I can see the project when I launch GarageBand again but then it vanishes after a second. And shows up on my iPhone?!?!
    Any thoughts? Obviously the files is till in iCloud. I've reinstalled GarageBand 5 times now. Still  pathetic same issue.

  • How to avoid clear data in the block in a form

    Hi All
    I am using Oracle form 10g and db 10g.
    My form i have a list item in my main canvas. It has a value of (EXPENSE,AMOUNT,SUPPLIER,ACCOUNT).
    The user used to select the list item one by one and used to enter values in the each canvas assigned to the Item(expense,amount,supplier,account) and go for a save.
    For instance when the user enter the value in expense ,amount and supplier and again back when the user navigate back to amount the entered value get cleared.
    how to avoid the data get cleared.
    Thanks & regards
    Srikkanth

    you can use EXECUTE_QUERY built-in to populate the data when that canvas or block instance. If it need at block level write this at When New Block Instance. if it a tab page then you can write when tab page change. If need where condition, add block level where condition.

  • HT4061 It is saying I need to do a restore - I accidentally unplugged during a download - I am scared I will lose my pictures from my recent family trip!!!  Please let me know how to avoid losing these pics.

    I need to do a restore - I accidentally unplugged during a download - I am scared I will lose my pictures from my recent family trip!!!  Please let me know how to avoid losing these pics.

    Hi @imobl,
    You sound like an Apple support guy who hasn't been able to answer my questions.
    To respond to some of the points you made,
    - I did not ignore Ocean20's suggestion. If you has read my post, you would have known that I took my phone to the apple service centre where they tried this restore on THEIR machines. I am assuming that Apple guys know how not to block iTunes. So I actually do not understand your point about me trying the hosts file changes on my machine. Do you not believe that apple tested this issue with the correct settings?
    - you also give a flawed logic of why the issue is a hardware issue. You mentioned that If I thought that the issue was with the software, i should try a restore and getting it to work. The problem is that my error (23), and many others comes up when the restore fails. And you would be astonished to know that not all errors are hardware errors. Sometimes even software errors prevent restores. Funnily enough Apple itself mention that 'in rare cases, error 23 could be hardware related'.
    - all Apple has done so far is replicate the issue. I don not know how anyone can conclude that the issue is a hardware issue.
    And by the way, I am not certain that this is a software bug. Again if you read my Posts, you will notice I only want a confirmation,/proof that the issue is hardware related as they mention..
    Please refrain do. Responding if there is nothing to add.

  • How to avoid the dialogue when converting from context menu

    This is a follow-up to http://forums.adobe.com/message/2016146#443364 which was locked due to a bug.
    i would like to know how i can avoid the 'save as' dialogue when using the context menu to convert a word file to pdf using windows XP/acrobat 8/word 2007.
    so far, it always prompts me for the filename, which is annoying as it does not allow me to batch-convert several files and let the thing run its course.
    the solution provided by Steve in the other thread does not work - even if the plugin from word does not propt for a filename, it still does when triggered from explorer/context menu.
    so back to square one: how to avoid that dialogue when not opening word at all?
    cheers, thanks for any help. michael

    For a permanent change, START>PRINTERS>right click on Adobe PDF printer and select properties>General>Printing Preferences>Adobe PDF Settings. Under the settings tab, uncheck the box related to asking for a name. Pretty sure that is the location, but it may vary with version.

  • How to view the date when the Customers credit limit updated in SAP-FSCM?

    How to view the date when the Customers credit limit updated in SAP-FSCM?

    OK you can look at field - LIMIT_CHG_DATE in the table - UKMBP_CMS_SGM via SE16
    I would assume you would want to run it based on a date range.

  • How to avoid launching Labview when invoking VI by Teststand

    Hi, friends.
    I'm a learner of teststand. I wrote some VIs by Labview. Now I want to invoke them in teststand environment. But when I run the sequence. Labview will be automatically launched. How to avoid launching Labview when I run the sequence?
    Thanks.
    Solved!
    Go to Solution.

    I'm not sure that I follow what you are saying..  But it sounds like when the VI is called, the LabVIEW development software is started and you want to avoid that.
    If you create an executable or dll and call that from within TestStand, it should not call the development environment.  You would need to have the LabVIEW run-time engine installed on the target PC. 
    It has been many years since I've used TestStand with LV, so my memory may not be accurate.  I think the above had worked for me.  However, it seems that I recall something about having the LV code in debug mode causing it to open the development environment.... but it's a distant memory.    You're not using breakpoints where the LV VI is being called, are you?
    R

  • How can I generate data when the link is click on?

    i have written a stackoverflow question ,
    would like some input if you have any , thanks, i would like to stay away from using jquery
    http://stackoverflow.com/questions/23143436/how-can-i-generate-data-when-the-link-is-click -on/23143813?noredirect=1#23143813

    I think you need to rephrase your question and be more specific. Also for me the images you are referring to do not exist. From your question I am interpreting it as "how do I program?"

  • How to avoid invalid data entering in LOV through code

    hi
    1)i have developed lov in table region, but user easily can enter invalid data and saved into the database tables.
    2)i created one formvalue and mapping into that return item , still its not working in table region LOV.
    3)how to avoid invalid data entering in LOV through code. i have tried this below code in EOimpl set value method. but some how its not wokring.
    if (value!=null)
    throw new OAAttrValException(OAAttrValException.TYP_ENTITY_OBJECT,
    getEntityDef().getFullName(),
    getPrimaryKey(),
    "ProcurementCategory",
    getProcurementCategory(),
    "FND",
    "FND_LOV_SELECT_VALUE");
    Thanks.
    krish.

    Thanks reetesh and gourav for your help.
    i followed below mapping details
    LOV Item Properties
    ID -PurcCommodity
    ViewInstance -VendorVO1
    ViewObject -PurcCommodity
    map1 properties
    LOV Region Item - segment1
    Return Item -PurcCommodity
    CriteriaItem -PurcCommodity
    Usefor Validation -Default
    map2 properties
    LOV Region Item - segment1
    Return Item -validation(formvalue)
    CriteriaItem -
    Usefor Validation -yes
    form value properties
    ID -validation
    ViewInstance -VendorVO1
    ViewObject -PurcCommodity
    Gourav- i double checked multiple rows it is not working, some times it is not working for single row too.
    Thanks
    krish.

  • How to avoid duplicate data while inserting from sample.dat file to table

    Hi Guys,
    We have issue with duplicate data in flat file while loading data from sample.dat file to table. How to avoid duplicate data in control file.
    Can any one help me on this.
    Thanks in advance!
    Regards,
    LKR

    No, a control file will not remove duplicate data.
    You would be better to use an external table and then remove duplicate data using SQL as you query the data to insert it to your destination table.

  • I want to create a HD disc with my Adobe Premier Elements but I am getting low resolution.  When I go to share the DVD to disc the form only offers 8pixels at the bottom.  How do I burn this DVD in HD with higher number of pixels?

    I want to create a HD disc with my Adobe Premier Elements but I am getting low resolution.  When I go to share the DVD to disc the form only offers 8pixels at the bottom.  How do I burn this DVD in HD with higher number of pixels?  I have read other forums on burning HD DVD's but I do not see the option to turn the 8 pi into 40 pi the one forum recommended.  I want my DVD to be HD so I may sell these videos online for my business.  I can't sell them the low quality they are burning now.  Hopefully you can help me.  Thanks.

    desalvom
    Thank you for your reply.
    You cannot burn your high resolution video that you can view on your computer to an AVCHD on DVD disc
    that will replay through a regular DVD player. But players are marketed under a variety of names with
    different support opportunities. One manufacturer may call its product MultiMedia Player, media player, Blu-ray player,
    etc.The bottom line is the specifications for each of the players that are candidates for the playback of
    the AVCHD format on DVD disc or the format of interest.
    If you upload your HD (1920 x 1080) video to YouTube, YouTube converts the video to flash format, but it goes up as the HD video.
    But, beware. Look at the YouTube viewing setting when your uploaded video is playing back. The YouTube default is not
    HD. It might be 360p, 480p. If you have a 1080p video, then before the YouTube playback, you should be looking
    at the video with the YouTube 1080p HD setting for best viewing. That is a YouTube matter.
    Best results depend on you
    a. setting up the Premiere Elements project preset to match the properties of the source media. That means, if
    you have 1080p source, you (manually) or the project (automatically) set the project preset at
    NTSC
    DSLR
    1080p
    DSLR [email protected]
    or the PAL counterpart, depending on your region need.
    b. if you upload your video to YouTube using the Premiere Elements feature, there is a HD preset, but you cannot
    customize it.....if you need customization, then you can export your Timeline to a file...in this example
    Publish+Share
    Computer
    AVCHD
    with Presets = MP4 H.264 1920 x 1080p30 or PAL counterpart
    and then customize the preset under the Advanced Button/Video Tab of that preset. In increase quality, you might look to increase
    the Bitrate under Advanced Button/Video Tab settings - without compromising the file size.
    Then you would upload that file to YouTube at the YouTube web site.
    All of the above are factors that need looking into in order to determine the why for what you wrote
    I have published a shortened advertisement video to YouTube- say 5 minutes-
    and it is low quality
    Often SD video upscaled to HD can present poorly. But, you are dealing with a HD workflow so that should not be introduced into the matter. The setup of the project and
    the properties of the source video are important, but let us start with the above and rule in or out those considerations first.
    Thank you. As always, any clarification needed, please do not hesitate to ask.
    ATR

  • How do I replace data on my PC with data from iCloud?

    How do I replace data on my PC with data from iCloud?

    This long article covers all types of transfers, including moving to a new computer: http://www.ilounge.com/index.php/articles/comments/moving-your-itunes-library-to -a-new-hard-drive

  • How to eliminate extra white when hovering over with a back ground color?

    I just finished my menu and I notice that the hovering color is not hiding all the white.  Does someone know how to eliminate extra white when hovering over with a back ground color?
    http://www.tammyfarringtoncreative.com/test/index.html
    Thanks!

    You have heights on the ul, li as 36px and a line-height of the text of 35px so they are not matching up.  Personally speaking I would normally recommend using padding on the links to create the height and not set the height on the ul or li elements.

  • How do i inprint date on photograph snapped with an ipad

    How do i inprint date on photograph snapped with an ipad

    See the link bob provided in this thread:
    https://discussions.apple.com/thread/3975544

  • HT1498 I started downloading a rental movie on apple tv, but I live in a rural area with terrible Internet download speed...is there anyway to stop the download, and resume downloading, onto my iPad when I have access in an urban setting with high speed I

    I started downloading a rental movie on apple tv, but I live in a rural area with terrible Internet download speed...is there anyway to stop the download, and resume downloading, onto my iPad when I have access in an urban setting with high speed Internet?

    Yes, to be honest I was a little surprised myself. But it absolutely didn't connect when plugged into the test socket (I even tried to force a connection from the Home Hub manager but it wasn't having it). It is definitely the master socket. The only extension is a small piece of (engineer installed) phone cable to link the hub and the master socket (because the socket and mains power are unhelpfully on opposite walls of the hallway).
    I ran the Java download for Google anyway and it only took about an hour. The speedtester results are as follows:
     Download speed achieved during the test was - 109 Kbps
     For your connection, the acceptable range of speeds is 50-250 Kbps.
     Additional Information:
     Your DSL Connection Rate :2560 Kbps(DOWN-STREAM), 448 Kbps(UP-STREAM)
     IP Profile for your line is - 135 Kbps
    I don't as a rule disconnect / reboot the hub; today it has been dropping off on its own, while several days ago I tried a few reboots just to try and get a connection.
    Additional info - my exchange is actually called Claypole Fenton (or vice versa). Whatever, my profile has probably been welded to 135k for days and days.
    Cheers
    Nick

Maybe you are looking for

  • Lower case in variable substitution

    Hi experts, in my scenario I have a receiver CC that put an xml file in a target server. The requirement is to dynamically determine target directory based on a field on mapping header. I have used variabile substitution to retrieve the value of the

  • Why is the TV episode I downloaded such poor quality

    I downloaded an episode of Greys Anatomy from itunes for the first time yesterday.  It is out of time, the sound is echoey and unwatchable.  Is this a common problem? My computer is brand new.

  • Set the value of an adf number slider with java script

    Hi, i develop a adf 11 webapplication with JDeveloper 11. in one page i use the number slider component and i wish to set the value with a clientlistern in javascript. is this possible?? thanks, hannes

  • Invoking system's default browser

    Hi While developing a swing application, in event handling, I would like to open a HTML file in the system's default browser like IE or netscape. Can I know how to do that?

  • $50 REWARD for working MediaWiki 1.15/PHP 5.3.2/MacPorts/libiconv.dylib

    I am so frustrated after a week of trying to get a working MediaWiki on my Mac Mini Server 10.6.3. For those who don't know, Apple has been including a seriously broken PHP (5.3.1) with Snow Leopard Server 10.6.3 (http://discussions.apple.com/thread.