AI Buffer Read Problem with PXI-4351

I have a PXI-8105 controller in a PXI-1045
chassis with labview 8.2 installed.  I would like to use a PXI-4351
board to measure a thermistor.   I am using the sample vi on the ni web page http://zone.ni.com/devzone/cda/epd/p/id/838, but I get an error code -10846 "AI buffer read" after a few acquistions.  I am new to Lab view --- what does this mean and how do I fix it?

Well, I don't have ready access to a LV PC and for some very odd reason, my attempt to search for "error code" (and even just plain "error") on the ni website returned 0 hits?!?  Strange...
Anyhow, I'll take a guess and offer you an idea for a workaround.  Could your error mean that your call to AI Buffer Read times out before the requested # samples have been taken?  This kind of error wouldn't be surprising as it's difficult to determine a reasonable timeout value.  Based on my own past experience with a 4351 board, I'd say that the whole notion of "sample rate" turns into something of an odd duck. 
As I recall, all you can specify is a filter frequency which will establish a ceiling for your actual sample rate.  However, the board also has some sort of criteria for signal stability.  If you have several different channels to measure which use different input ranges, your actual sample rate can be reduced pretty dramatically.  So you might get a few samples per second or a few seconds per sample.
The workaround I used was to always request data that had already been collected and was immediately available.  One of the inputs to the AI Buffer Read lets you set some parameters where you can specify that you want to read the most recent sample that's already in the buffer.  Granted, this may represent a temperature from a second or two ago, but this lag is not necessarily a major issue for temperature measurements.
Note: in my app, I could query for Temperature any time I wanted, as frequently as I wanted.  I would always get data back, but there was no guarantee that I'd get *unique* data back.  In other words, if I called it 10 times in a tight loop, I might get the exact same sample # back each of those 10 times.
-Kevin P.

Similar Messages

  • Can I use SH68-68S cable with PXI-4351?

    I'm trying to figure out which cables are actually compatible with PXI-4351 and TC-2190
    Will a SH68-68S work?
    thanks!

    Hey Grocket,
    I apologize for the delay in any response.
    It appears that the TC 2190 is only compatible with the SH68-68 cable. The product manual only suggests using that cable.
    The SH68-68-S is only compatible with TBX-68S, CB-68LP, and NI 2501/NI 2503.
    Let us know if there is anything else we can clarify for you!
    Happy Holidays! 
    J Newk
    Systems Engineer
    National Instruments

  • Multiple NI-Switch problems with PXI-2566 including blue screen

    We've been having intermittent problems with our PXI-2566 for months now.
    It seems like at some point the device and/or driver gets in a state where the open of the device causes a "blue screen." It traps in niswdk.dll (addr: ae9db759, base: ae9b7000, datestamp: 488e1ebe). The NI_Switch version on this system is 3.8.0f1. We now have the system configured to do a full kernel dump (as suggested in another thread).
    We've seen some bad viStatus'es (that we've haven't been able to decode) returned from NI-Switch:
    niSwitch_InitWithTopology - 0xBFFA6767 
    niSwitch_Connect - 0xBFFA4B50 -- I think this is the error that starts the downward spiral...
    niSwitch_Disconnect & niSwitch_Connect  - 0xBFFA495D (after 0xBFFA4B50 error)
    We get a blue screen the next time we start our app -- best guess is on the niSwitch_InitWithTopology ("foo", NISWITCH_TOPOLOGY_2566_16_SPDT, VI_FALSE, VI_TRUE, ) call. 
    We'd seen these kind of problems several months back & switched out to a different PXI-2566 & they went away, but now they've come back. Not sure how much the relays have been stressed, but even if they were don't see why we'd get these types of failures. The card passes self-test (from Max), but I get errors running the soft front panel & can't get to the relay counts:
    The system is running XP. The application uses MSVC, VISA, etc. This doesn't have anything to do with powering on/off the PXI chassis (another reason for blue screens).
     Ideas for fixes or debugging ???

    OK, 1 easy answer: the device name was set to "PXI1-NI2566" MAX allows this & we have no trouble using this name from our application, but apparently the "-" is invalid from the soft front panel app. So at least I can get to the switch counts now (and they're all <2000).
    We did get another 0xBFFA6767 this morning, follow shortly by a blue screen & have a kernel dump. Does that help in tracking this down?
    We've been running this application for many months. It's use of the 2566 is pretty simple and has not changed. It fails intermittently & we haven't been able to correlate the failure with any other events. The system in general has been pretty stable in terms of hardware & software changes. 
    There are a lot of devices in this system -- this is the only one we're having problems with. We have a rack-mounted PC interfacing to separate PXI & VXI chassis. Here are summaries from MAX & Device Manager: 
    Is this enough detail? The MXI interface card (MXI-4?) is currently PCIe, but had this same problem with the PCI version of the card 
    Can you be more specific about resetting after a 0xBFFA6767 to get closer to the fault?
    The "other blue screen" events I was referring to were in a different thread on the NI forums. Those problems had to do power cycling the PXI (or powering it on after the PC) -- we know from experience not do that.

  • Problems with PXI after motherboar​d replacemen​t

    Hello,
    My PXI system consists
    of PXI-1045, PXI-8360 and five NI
    PXI intruments (5152, 4065, 6552, 2532, 5404). I was working with this
    system without problems for a long time. However, the motherboard of my
    PC had a specific problem with the ethernet connenction and I decided to
    replace the motherboard with a new one (same model). After the
    replacement (the pc finally was fully functional), I tried to power on
    the PXI chassis, but  I couldn't "see" any module in PXI chassism, using
    the MAX. I must tell thatI didn't change the hard disk of the
    pc, or anything else just the motherboard.After some experiments, I
    finally fix the probrem with the following solution: First I unplugged
    all the modules from PXI chassis. After that, I plugged one module and I
    reboot the pc. After that I plugged the second one module and I reboot
    the pc. And so on...
    This was the only solution
    that I found in order to indentify all the modules of the PXI chassis.
    My question is why happend this
    thing? Where are the PXI modules' adresses stored? Also, is the
    procedure I used correct, or I had to do something else in order to make
    the system work?

    Hello,
    Im glad that your system is up and running, ideally that behavior should not have occured. For future troubleshooting, also check Windows Device Manager to see if your devices show up if MAX does not detect them (Windows may have initially failed to detect the hardware). In a PXI system, the pxisys.ini file provides mappings from PCI logical addresses (PCI bus, device, and function numbers) to corresponding PXI slot numbers, allowing device driver software to identify the slot of a PXI module. There is a unique pxisys.ini file for every combination of PXI chassis and controller. See the link provided below for additional information regarding how to configure PXI systems in MAX.
    1. Configuring Your PXI System in MAX 3.x and Above: http://zone.ni.com/devzone/cda/tut/p/id/11136
    Best regards,
    Ali M
    Applications Engineer
    National Instruments

  • How to Write BUFFER & Read TEXT with Encrypt file ?

    I'm using Windows Phone 8.1 RT.
    I have a issue :
    - I write a BUFFER encrypted to file. After, I read file with TEXT. It's throw exception : No mapping for the Unicode character exists in the target multi-byte code page. (//ERROR 2)
    - I write a TEXT encrypted to file. After, I read file with BUFFER. It's throw exception : The supplied user buffer is not valid for the requested operation. (//ERROR 1)
    Code Write Buffer & Read Text.
    //Write Textstring msg = EncryptText.Text;
    //ERROR 1 - Use 1 or 2
    await WriteTextAsync(this.file, msg);
    //ERROR 1
    //Read Buffer
    string msg;
    //ERROR 1 - Use 1 or 2
    IBuffer buffer = await ReadBufferAsync(this.file);
    StreamReader stream = new StreamReader(buffer.AsStream());
    msg = stream.ReadToEnd();
    //ERROR 1
    Code Encrypt-Decypt.
    public static string EncryptString(string msg)
                var bufferMsg = CryptographicBuffer.ConvertStringToBinary(msg, BinaryStringEncoding.Utf8);
                var bufferMsgEncrypted = Encrypt(bufferMsg);
                var msgEncrypted = CryptographicBuffer.EncodeToBase64String(bufferMsgEncrypted);
                return msgEncrypted;
            }public static IAsyncAction WriteTextAsync(IStorageFile file, string msg)
                return FileIO.WriteTextAsync(file, EncryptString(msg));
    public static IBuffer Decrypt(IBuffer bufferMsg)
                var key = CreateKey(KEY);
                var aes = SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithmNames.AesCbcPkcs7);
                var symetricKey = aes.CreateSymmetricKey(key);
                var bufferMsgDecrypted = CryptographicEngine.Decrypt(symetricKey, bufferMsg, null);
                return bufferMsgDecrypted;
            }public static IAsyncOperation<IBuffer> ReadBufferAsync(IStorageFile file)
                var buffer = FileIO.ReadBufferAsync(file);
                Task<IBuffer> result = Task.Run<IBuffer>(async () =>
                    var Buffer = await buffer;
                    return Decrypt(Buffer);
                return result.AsAsyncOperation();
    Link demo code :
    https://drive.google.com/file/d/0B_cS3IYO936_akE0cmI4bExJMjh0RU9qR3RvWDBWWElZWC1z/view?usp=sharing

    Please provide a working app so this can be tested. You can upload to OneDrive and share a link here.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • TC measurements with PXI 4351 DAQ Card

    (I am using version 6i of LabVIEW). I am trying to create a VI that will use a PXI 4351 Card with a TBX-68T to take 4 thermocouple continuous measurements. I am also acquiring 8 voltages with a 6030E and TBX-68 and writing them to a file. My voltage data acquisition is modeled after "Buffered Continuous Analog Input.vi" I would like to aquire voltages and temperatures in the same vi, but using different devices and accessories. (I need a higher frequency for the voltage acquisition, and more precision with the temperatures). Is there a subvi I can use to collect the temperature data in the same vi as my voltage? I don't want the thermocouple DAQ to interfere with the voltage DAQ, either.
    I tried the NI435x thermocouple.vi
    but I couldn't get the Built-in Cold Junction Sensor to work or figure out how to combine it with my exisiting voltage acquisition. I also got NaN for my readings, and I checked the wire connections in all the sub vi's as suggested by another solution.
    Any comments would be great. Thanks in advance.

    Claudia-
    Thanks for the response.
    Regarding the CJC- When I switch it on, the temperature readings I get are very random, roughly negative 1 degrees. (I am operating right now at room temperature, and will be using J-type TC's to measure ~43 degrees C). Also, when I use the built-in CJC, the aquisition rate seems to slow down considerably. When I use the "user specified" everything seems to be ok, including the aquisition rate.
    I measured the resitance of the Thermistor on the TBX-68T and it was about 5000 Ohms, as expected.
    Just to make sure: When using the TBX-68T, do I need to hard-wire a thermocouple to Channel 1/auto-zero and another to channel 0/CJC? Because I connected a TC to channel 0 right now, but I wasn't 100%
    sure.
    I've attached my main vi and two sub vi's that I am using for the voltage aquisition part of my project. (Note:the current measurements are just voltage measurements multiplied by the recipricol of the resistance it was measured across, ie. 10).
    I would like to keep this file as is because it writes to a file exactly the way I want it to. I'd like to have the temperature aquisition with the 4351 in the same vi as the 6030E so that they both stop and start at the same time. I am just not sure how and where to log the temperature data since there will be fewer data points than the voltage data. Any suggestions? Should I write two separate files? can I somehow append them?
    Thanks again. Hope to here from you soon.
    Attachments:
    EBlackMainDAQ.vi ‏107 KB
    Save_Data8.vi ‏45 KB
    Build_String_Array5.vi ‏33 KB

  • USB card reader problem with T430 laptop (Win 8)

    I have a Thinkpad T430, running Windows 8 with 16G memory.
    I have recently encountered problems with a USB card reader. I thought the reader was faulty so I bought a new one, but that one fails as well. It makes no difference which socket it is in.
    After being plugged in for a few seconds, the 'drives' the reader sets up start to flash in the 'Computer' window - it seems they are continually being disconnected and reconnected.
    Disabling USB 3.0 in the BIOS makes no difference. One card reader is USB 2 and the other is USB 3
    Changing the power settings so the USB selective suspend is disabled makes no difference.
    I am pretty sure that it was OK a month ago when I last used a card reader (the machine is about 2 months old).
    What is going on?
    Any ideas?
    Thanls,
    Michael

    Ok Mr. Micheal,
    One thing you can attempt to do is download the SmartCard Reader Driver for Windows 8 (64-bit) - ThinkPad on the Lenovo website. The path you need to take is listed below.
    1. Go to the Lenovo website (www.lenovo.com)
    2. Select the support link at the top of the page
    3. Your going to see for windows listed select the type of support you need, so select drivers and software
    4. Its going to ask for your machine information so enter in your machine type or your product ID
    5. Scroll down to camera and card reader and open the link
    6. Download SmartCard Reader Driver for Windows 8 (64-bit) - ThinkPad
    7. Follow the set up wizard and one the driver is installed reboot your machine
    Please respond once this action is performed and let me know if this happens to resolve your issue. Thank you
    ______________________________________________________________________________________________________________Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • Card Reader problem with MSI K8T Neo

    Hi,
    I have the K8T Neo motherboard, and every once and a while my Atech Flash 9 in 1 card reader  (http://www.newegg.com/app/ViewProductDesc.asp?description=20-176-003&depa=0) doesn't power up, thus I can't use it.
    What's odd is that all my other USB devices work flawlessly.
    The only way I'm able to use the card reader again is to power down my computer and then flip the power switch on the psu, then turn it back on, or unplug the reader from the usb header on the motherboard and plug it back in.
    I've noticed other people have had similar issues...
    Any ideas what causes this, or any ideas on how to fix this?
    Bio Haz

    Yes, I had the same hanging problems as well with older BIOS versions then 1.7.
    But that isn't the problem I'm talking about, the computer always starts up, it's just a matter if the usb reader will work or not.
    Maybe MSI has yet to make a BIOS that is compatible with all card readers.
    BioHaz
    Quote
    Originally posted by me_AMD
    ...yes, I had USB card reader problems but it caused the computer to hang during POST, and that was fixed with BIOS v1.7...
    ...I've had what you describe happen on another machine with a Mitsumi card reader/floppy drive combo...not sure what caused it...had to disconnect it and then plug it back in...???...

  • Reading problems with MS-8340S

    When I use Nero CD Speed to check the CD Quality of my discs, no matter what kind of disc, it gives me a result of over 70.000.000 reading errors (this are damaged areas that are still readable). Similarily, the scandisc feature gives me 100% DAMAGED discs. Now, the media is out of question because every kind of disc, from printed to copyed to auido to data posts the same results. I'm using the latest NERO/Firmware/CD Speed/ATAPI versions, IMAPI is disabled, and the problem persists. Nevertheless, the driver reads this supposedly damaged discs at full speed (48x), so I believe this can be a fake reporting, and that the writer isn't reading any errors, but what can I do to fix this? The only thing I have left is to put the drive on a separate IDE cable, since now shares the same cable with an ATA-133 disc.

    Hi,
    What is the computer's specification? Have you tried the drive on another machine?

  • A Programming problem with PXI 8461

      I use PXI-8461 CAN Card.
      The subvi READ_AI's function is to aquire data,and save datas to database.
      And Process.vi dynamicly calls READ_AI twice,and a Main.vi calls Process.vi for every step.
      Every step lasts 10 seconds,and has 10 seconds interval.
      step1: from 0s->10s, aquire data;
             delay 10s;
      step2: from 20s->30s,aquire data;
      I find that ,step2's data is from 10s->30s!
      What is the problem ? Is there any error in CAN's use ?
      Here is my vi. thank you.
    Attachments:
    READ_AI.vi ‏80 KB
    Process.vi ‏44 KB

    It displayed that error message because it reached the end of the file before your program was complete. For example, remember when last Thursday when you
    Hey, did you notice how the last sentence up there just stopped before the sentence was really done? Your program does the same thing.
    Read some tutorials about Java; they'll have plenty of examples of complete programs.

  • Print & read problem with Acrobat 7

    Hi,
    Recently my Acrobat 7 has developed a problem where I cannot open or create a PDF without a Microsoft Word window opening with a coded message.  The screen shows a "File Conversion" window which asks me to select either: 1. Windows (Default), 2. MS-DOS or 3. Other Encoding.  The rest of the window then shows a list of code.  Selecting 1,2, or 3 does nothing. 
    Any ideas on how I might fix this problem so that I can read and create PDFs again?
    Thank you!!!!!

    Dear Biker,
    Thanks for your email.  Since receiving it this morning, I have received the following advice from HP Support and although I appreciate it's not your exact problem, maybe some of it will help.
    I note that they suggest adding a Generic Drive for a Deskjet 990c model (even though mine's a Photosmart C46800) but later they mention my model so I suppose you need the 990c drive to make it all work.
    One of the other replies I got from the forum was one which said, 'never buy an H.P'.   In fact, I'm so worried that H.P's advice will either cock-up my computer completely or change the way it prints 'Word' documents (currently O.K.) that maybe I'll buy a decent one..  Anyway, here's what H.P advised:
    STEP 1  Add Generic Driver 990c
    1. Click 'Start
    2  Click Printers and Faxes'
    3  In Printer folder, click 'Add a printer' icon
    4  Click Next
    5  Select 'Local' and remove the check mark from 'Automaticallhy detect and install my Plug and Play printer
    6  Click 'Next'
    7  Click 'Next'
    8 Select HP from Manufacturer list
    9 Select the printer modeol as HP DeskJet 990c from the printer list, and then click Next
    10. Select Yes to make this printer the default printer and Click Next to continue
    11. Select No to skip the test page and then click Next
    12 Click finish to complete the installation.
    STEP 2 Configure the port
    1  Click Start, then Printers and Faxes
    2.  Right click on HP Photosmart C4680 All in one printer icon and then selct Properties
    3  Select the Ports tab and then check which port is selected from the list of ports.  Make a note of the port that is selected
    4  Close Window
    5  Right click on the HP Deskject 990c printed icon you have installed, then select the ports tab.  Select the same port that was selected for the HP Photosmart C4680 printer icon
    6  Cick Apply and the OK

  • Adobe Reader Problem with Accents

    I have a pdf document which Reader shows all the accented text incorrectly. It makes the whold document look very bad... I think these characters are in Unicode and Reader is mis-reading them.
    Adobe Reader 9.4.6
    Windows 7 Pro
    Preferences > International > choose language at application startup (but always comes up in English after restarting AR)

    I've had a similar problem on Adobe Reader X and I'm not sure if this is the same with 9.4.6 but here's how I fixed it.
    Go to Preferences>International>Same as the operating system
    This enables you to use the language your keyboard is set to.
    If you don't have the keyboard for the language you want and you have Windows, you can right-click the taskbar and go Toolbars>Language Bar. If the toolbar appears on the taskbar, select the little triangle (Options) at the bottom right and go to Settings>Add. From there you should be able to add your language from the list (i.e. French>Keyboard: French) and switch to it from the Language bar by clicking on the language name abbreviation and selecting it from the list.

  • Data reading problem with Read LVM

    Hi
    I am acquiring the pressure signals with 6 channels using LabView 7.1. The sampling rate is set at 10kHz. I am saving the data using Write LVM.  For post-processing of the data I am using Read LVM function to replay the data. When I saved the data and reopened it using Read LVM, the waveform was different as compared to when I was acquring the data.  Both images are shown in online_data.bmp and image_by_read_lvm.bmp. The Read LVM vi has also been attached. The write LVM file size was around 15MB.
    I think the problem is with the rate at which read lvm is reading the data.
    Any help/suggestions will be appreciated.
    Thanks
    Pramod
    Attachments:
    Read_LVM1.vi ‏75 KB
    online_data.JPG ‏127 KB
    image_by_read_LVM.JPG ‏145 KB

    Hi Mike
    Thanks for your reply.
    Please find the write LVM file as an attachment.
    As the write LVM file size is 5 MB, it is
    not getting attached.  Therefore I am attaching the vi code. If you need the write lvm file then can you please give your e-mail id? I need the smooth thin lined waveform instead of
    thick waveform. Please let me know if the lvm file is required.
    Pramod
    Attachments:
    data_acquisition2.vi ‏1028 KB

  • W500 card reader problems- with a wrinkle??

    My card reader won't  recognize SDHC cards.  I have a W500 (4061-BL2) running Win XP Pro, Service Pack 3.  I installed the latest drivers for the 4-in-1 reader (Ricoh Multi Card Reader driver 3.64.02 which does show up in the "Add/Remove Programs" listing).  Based on reading this forum, I considered KB934428, but, when I tried to install the hotfix, I learned it is not needed with SP3.   (I didn't try to install KB923293 which is the other hotfix frequently mentioned for this problem as it appears to be older than the ...428 hotfix??)
    Everything appears to be normal in Device Manager. 
    When I try to insert a Kingston 8GB SDHC card (that I know has pictures on it as I can see the pictures on my Canon camera), my system does recognize  the card (under "My Computer", it shows up as "SD/MMC (E", but, when I try to access the card, it only says "The disk is not formatted.. Do you want to format now?". 
    I know there are 20 other forum posts on this problem, but, mine appears  to be somewhat unique with XP SP3. 
    Like everyone else with this problem, I can read the card just fine with a USB card reader.
    Any help will be deeply appreciated!  Love the W500 except for this nagging problem as I am really anxious to use the card reader.  

    I just fixed a co-workers Ricoh 4-in-1 reader by following these instructions
    http://www-307.ibm.com/pc/support/site.wss/documen​t.do?sitestyle=lenovo&lndocid=MIGR-70881
    It says it's for R61 but worked on W500.
    Running Windows XP Pro SP2. I tried the Lenovo Drivers but they didn't work.

  • Adober reader problem with printing a PDF

    I instaleed Adobe reader on a new computer w/o problem. I could open a view documents. When I go to print I get a message that says: "Adober Reader has stopped working" I can then check one of two boxes: 1. Checkonline for a solution later and close program or 2. "Close program"
    I'm baffeled - all i want to do is print a PDF doc??

    Hi,
    We have provided the permanent fix for this issue. please refer http://kb2.adobe.com/cps/928/cpsid_92870.html.
    Thanks,
    Atul Agarwal
    Adobe Systems

Maybe you are looking for