How do you flush a device's buffer using LabVIEW GPIB functions?

I know the VISA Flush function is an alternative, but I started my program with the low level GPIB functions and it would be a huge task switching now, so if anyone knows how I would do the buffer clear I would greatly appreciate it if you can show me how it's done. Thanks.
Otman

Your comment about an indicator getting "clogged up with data" doesn't make any sense. The contents of a string or array indicator can get large and slow things down but a numeric indicator cannot get clogged up. If the data stops making sense, then you are incorrectly reading the instrument and converting that data to a numeric. With your comments about the device transmit buffer, I suspect you have occasionaly set the byte count too low and unread bytes are there that you then read the next time. As long as the instrument is fairly new, it will send out a termination character (typically EOI) that will terminate the read. You can then set the read count to some arbitrarily high number to ensure you've got the entire tr
ansmit buffer contents. It's also possible that you periodicaly have an error condition where the instrument is sending unexpected information. For example, if it normally sends a floating point number as a result and then it sends an error message string, you might not be intrepreting it correctly.

Similar Messages

  • How do you analyse a binary time series using labview?

    I am new with time series data analysis and labview. I was wondering if anyone could help me out with analyzing a binary time series (1 or 0 output) using labview. ecifically I want to find out the period/frequency of a
    oscillating signal. Can I use the Walsh transform. If so how do I convert 'sequency' to time period. Are there any beginners text book out there? I would reallly appreciate it if anyone could help me out with this.

    Your comment about an indicator getting "clogged up with data" doesn't make any sense. The contents of a string or array indicator can get large and slow things down but a numeric indicator cannot get clogged up. If the data stops making sense, then you are incorrectly reading the instrument and converting that data to a numeric. With your comments about the device transmit buffer, I suspect you have occasionaly set the byte count too low and unread bytes are there that you then read the next time. As long as the instrument is fairly new, it will send out a termination character (typically EOI) that will terminate the read. You can then set the read count to some arbitrarily high number to ensure you've got the entire tr
    ansmit buffer contents. It's also possible that you periodicaly have an error condition where the instrument is sending unexpected information. For example, if it normally sends a floating point number as a result and then it sends an error message string, you might not be intrepreting it correctly.

  • How can you create a test plan generator using labview

    I am looking to create a testplan generator using labview to help RF Engineers translate test requirements into test parameters and wanted to know how i can go about it.

    Have you considered to use Teststand? Teststand organizes all the tests and allows to parameterize them.
    Creating a tool with a similar functionality will be more expensive than buying Teststand and modifing the operator interface.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How do you pass an array of characters using the DLL functions

    I have exported C code into my DLL and I want to know how to pass an array of characters using LabVIEW.

    Mont;
    If you want to pass a string from LabVIEW to your dll, and you do NOT change size of the string, you can use a C String pointer (CStr), which is equivalent to (unsigned) char *.
    If you do modify size of the string, pass string as a LabVIEW structure (LStrHandle).
    The example "Passing a Variety of Data Types from DLL to LabVIEW" is an excellent starting point. Also make sure you check the manual "Using External Code in LabVIEW".
    Regards;
    Enrique
    www.vartortech.com

  • How do you separate 3 devices that are using one account on itunes?

    I do not wish to have my families downloads on my device or vice versa!

    How do I get the itunes library that has all of there songs/apps transferred to their itunes library then?

  • If you deleted a  device off of find my iphone.how do you get the device to start back up agian and put it back on find my iphone?

    if you deleted a  device off of find my iphone.how do you get the device to start back up agian and put it back on find my iphone? becuase i have delted my dads iphone acedentily of find my iphone and it is nownot working. his phone is just staying at a black screen with a loading circle on it. i need to know how to fix this..like do i go the to apple store or the carrier store or can i fix it at home?

    Try these two ways to fix the iPhone (in order).  If neither works, you would have to take it to the store.
    1.  Reset the iPhone.  Hold the on/off and home buttons togehter for about 10 seconds.  If it works, you'll get the Apple logo and then something good should happen.
    2.  Try recovery mode as described here:
    http://support.apple.com/kb/HT1808
    If one of these work, you can then re-introduce the iPhone to Find My iPhone by doing Settings > iCloud > Find My iPhone = "On" on the device.

  • How do you change a device's name in the sound setting? For example, Let's say I want to change " logo headset" to "log microphone." Please help it's urgent!

    How do you change a device's name in the sound setting? For example, Let's say I want to change " logo headset" to "log microphone." I need to do this in order for Rosetta Stone to recognize my USB Logitech headset. I'm extremely confused. Please, just help.

    It is very difficult to offer troubleshooting suggestions when the "os version" you are using is unknown as each os has their own troubleshooting solutions.
    You can also post in your installed os section of the message board.

  • How do you delete a device in Logic Pro X Control Surfaces Setup?

    How do you delete a device in Logic Pro X > Control Surfaces > Setup?

    Go here:
    http://help.apple.com/logicpro/mac/10/
    Search on   Bounce

  • How do you reassign a device to Mac OS once it has been assigned to the Windows OS using Parallels?

    How do you reassign a device to Mac OS once it has been assigned to the Windows OS using Parallels?  I've tried ejecting device and plugging in again.  I've tried restarting Mac and shutting down Mac completely, but never get the device window to pop up to select the Mac for the device.

    See:
    http://download.parallels.com/desktop/v5/docs/en/Parallels_Desktop_Users_Guide/2 6819.htm
    That is one topic from the guide, not the whole guide

  • How do you remove a device

    How do you remove a device from Network Magic?

    r_starrynight wrote:
    Hi, I removed 2 devices and after that understood that they were my cell phone and iPOD! now as I try to connect to the internet with my cellphone I cannot! how can I solve this problem?
    Hi r_starrynight,
    You have not mentioned your Router. Does it have a Network Filter? Disable it.
    thecreator - Running Network Magic version -5.5..9195.0-Pure0 on Windows XP Home Edition SP 3
    Running Network Magic version -5.5.9195.0-Pure0 on Wireless Computer with McAfee Personal Firewall Build 11.5.131 Wireless Computer has D-Link DWA-552 connecting to D-Link DIR-655 A3 Router.

  • How do you track a device offline?

    So I went out to eat with my family, and I lost my Ipod touch. I tried using find my Iphone, but it says device offline.  What I'm really trying to say is how do you track a device offline

    you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it.
    - Apple will do nothing without a court order                         
    Reporting a lost or stolen Apple product                                        
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • How Can You Track Your Ipod If Lost Using The Serial Number

    How Can You Track Your Ipod If Lost Using The Serial Number?

    The find my iphone app has nothong to do with it.
    That app simply allow you to find other devices using your ipod.  It has nothing to do with fining the device on which it is installed.
    If you set up the find my ipod feature that is built into your ipod and the ipod is on and it is connected to wi-fi and it has not been restored, then you may be able to get an approximate street address using icloud.
    Othrewise, it cannot be tracked.

  • How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application?

    How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application? The DAQmx assitant won't allow me to create a task with hardware that isn't in my system.

    You will need to have at least the DAQ device in your computer to add the chassis. When you add the chassis, don't auto detect the modules. You will have to add the terminal blocks and tell MAX which SCXI module will be connected to the DAQ device. Just make sure you don't test the chassis, when its not there.
    I hope this helps.
    Joshua

  • How do i detect DAQ device number programatticaly using Visual Basic (not using MAX)?

    how do i detect DAQ device number programatticaly using Visual Basic (not using MAX)?

    Several of the CWDAQ objects have Device (the device number), DeviceName, and DeviceType properties that I think will give you the information that you're looking for. For more information, look in the index of the Measurement Studio reference for Device, DeviceName, and DeviceType.
    - Elton

  • HT203071 How does the clients (iOS devices) to configure/use the caching server to download apps from local caching server instead of App store?

    Hi ... How does the clients (iOS devices) to configure/use the caching server to download apps from local caching server instead of App store?

    Hi,
    If you want to restore a reomoved app,you need to use
    Add-AppxPackage to add a signed app package (.appx) to a user account.
    But we cannot extract them from the ISO.
    The behavior is by design.And this is a software protection regime.
    Thanks for your understanding.
    Regards,
    Kelvin Xu
    TechNet Community Support

Maybe you are looking for

  • Flattening text fields in Adobe Reader for Android

    Hi there, I created a form that works to my liking- doing all I need it to do be doing. Here is my problem: I fill the form with my customer (on my tablet) entering the prices and quatities, then they sign it. At this point, I would to have an option

  • "firefox has stopped working" upon startup

    Few seconds upon start-up, Firefox greys out and the message "firefox has stopped working" appears leaving me with only the option of closing it. I've tried resetting firefox to default state and safe mode with add-on disabled etc but so far the only

  • Net Price - direct copy from material master into purchase order

    When purchase requistions are converted to purchase orders, currently we are maintaining Net Price manually before saving the purchase order. Is there a way where the standard price is copied from the material master {Accouting view} into the purchas

  • Playback for music..

    Just recently got ahold of an E75 and quite excited about it. However, I'm not too excited in how the music is arranged for this. It's not supposed to be a music centric phone I know but I was wondering if there was any way that I could simply browse

  • IOS update resume problem

    My question is that I'm trying to update my ipod touch 4g to the version 4.3.3.  the file size is 650 MB as shown in itunes. Its a very large file size which approximately takes not less than 4 hours in my current connection. The problem is that when