How to read / write several channels at a time target real PXI with a Board of 6259

On a PXI real-time target, I was able to access more of a channel at a time.  The attached example illustrates the problem, when the second analog read occurs, I get a 'resource is reserved error '.  It is my first challenge in real time and do not know how to proceed.  In the end, I need to read three channels of analog input and analog output channel in the loop in real time.  Thanks for any help.

Yes.  You need to put the two analog inputs in a single task.  There is only a single clock for reading of the analog inputs.  If you use it for a task, this clock is reserved and the other task cannot use it.

That means connecting it to an analog output channel must do with it?  If the ai0 is not connected to anything, why you try to read it?

The reason why you see something on this channel, it is that you see the residual value in reading the other analog input channel.  When you have an open circuit, the amplifier may not load or unload by another value, if you see a ghost of the other channel.  The entry for the land of analog unused thread and you'll see that the reading is zero or very close.

Tags: NI Software

Similar Questions

  • How to read/write tdms 2.0 files with the TDM C DLL?

    Hello

    How to read/write tdms 2.0 files with the TDM C DLL?

    How consequently the datas in interlaced with the TDM C DLL mode?

    Thank you

    Confirmation: TDM C DLL always wrote the file in TDMS version 2.0.

  • How to watch two clips at the same time on the other, with an opacity of 50% each.

    How to watch two clips at the same time on the other, with an opacity of 50% each. It is confirmed that the position of the object even two clips of mergers.

    Thank you

    PPut a clip on top of another in the timeline panel. In the video Inspector reduce the opacity of the clip on top.

  • How to read 2 simultaneous channels with Agilent 53230

    Hi, first time done Labview programming so I'm completely new to this. My task is to read the frequency 2 channels (2 sources) at the same time and compare the difference between them (as appropriate).

    So I used the examples and Agilent pilots to get something that gives me the frequency of channel 1 or 2 depending on the choice of the user. But how do readings of both at the same time? Sorry if there is an obvious solution, but I can't seem to get it haha.

    Thanks in advance for any help!

    User manual confirms that you can at the same time, you can make a measurement frequency if it's all good.

    Meter except for the frequency rate and timing channels

    the interim measures are separated and can be configured independently.

    Measures on the channels do not occur at the same time, however. Switching

    between channels keeps the channel configuration, but ends the current

    measure. The newly selected channel is reset and measures

    start when the programmed trigger conditions are met.

  • How to read 4 similar channels at the same time with the MCC

    Hello

    with the mcc libraries and a card PCi-6034 classic (by calculation of the measure), I want to read 4 analog channels at the same time. I have a "scope" with 4 channels.  How to read 4 channels at the same time with the mcc?

    MF

    Hello MF.

    Thank you for using OR support.  I guess you try to program in LabVIEW.  Where exactly did you get the MCC library of?

  • How to read/write files in Photoshop CC?

    Hi all
    I have plugin for Photoshop CC2014 and above using node.js to reading/writing files, download remote files and restful calls. It does not in Photoshop CC because CC uses 4 CSXS and node.js is not available here. So is it possible in javascript to perform these operations (reading/writing/download) in CSXS4? I think I can use XMLHttpRequest to download files, but how to read and write? Thank you!

    CEP has an API to access Local file.

    GitHub - Adobe-CEP/CEP-resources: Getting Started with Adobe CC 2014 Extension SDK

  • How can I write file to a discrete time step?

    I am writing some variables to output to a binary file in time real (PosX, Posy, elapsed time) with a while loop (see blockdiag.png).  I use the time achieved by LabVIEW with a clock from external devices to interpolate the position values, before ask you, I do not have access to the external clock interpolation is so needed after the data were collected.  Currently, the while loop is relentlessly and as fast he let the CPU. After I'm done collecting my data, I traced upward time spent in MATLAB and noticed a very strange, negative time behavior (see clocks.png). Black data here is my clock to external devices and the Red data represents the time elapsed, written by LabVIEW.  There are two instances of the vector that indicate a big negative step in time.  This is not always the case and seems to occur somewhat spontaneously in the vector of elapsed time.

    Issues related to the:

    (1) anyone seen this behavior before?

    (2) would be to put a Wait.vi in the while loop help? (I thought it would be at least to regularize the time step).

    (3) Please help.

    Well thank you, please do not judge my LabVIEW code (I'm sure there are better ways to do it, but it works, and that's how I want).

    Adam


  • How to read / write to a HID device with call a library function?

    I had tons of problems to read from a device USB HID in VISA. I had no problem make a driver for him and write it in LabVIEW. However, whenever I try to read using Read Visa, Visa USB Control In or interrupt USB event get different types of error messages.

    I decided to give up this route and talk to the device through hid.dll, setupapi.dll and any other .dll that I need to use. The problem is that I'm not sure I correctly use the nodes to call a library function... I've seen several KB articles that explain how to set up the nodes call library feature, but I need more information. I can configure stuff and sometimes get things to work, but I don't always know what each specific selections in Settings tab is doing. Can someone give me more detailed information on what do the settings tab and all of its components?

    Thank you

    Matt

    Have you looked HERE?

    Shane.

  • How can read/write on a file and stored in the internal memory of the device, 10 BlackBerry?

    I want to store a string value of my request. After that, I remove my device app & reinstall my app. I want to get the previous value stored in recently installed application.

    I think that if I can write the value to a file that is located in the internal memory of the device. After that, I read the value of this file in any time. I am new to the cascade of Blackberry, so I don't know how to write / read a file.

    Please help me...

    Thanks in advance.

    Hi all

    I solved my problem. I'm using the code below:

    QString call: readFromFile()
    {
    QFile textfile("shared/documents/Test.txt");
    QString str ="";
    If (textfile.open(QIODevice::ReadOnly |) QIODevice::Text))
    {
    QTextStream in(&textfile);

    Str = in.readAll ();
    }
    else {}
    QTextStream out (stdout);
    off<>
    }

    TextFile.Close ();

    return str;
    }

    Thank you all for the valuable suggestion...

  • How to read/write metadata "comment by the user?

    With my plugin, I have to write a string inside the metadata "User comment" field on Lightroom. I write successfully in other fields such as side or key words, but I can't write a comment to the user.

    How to do this?

    Unfortunately, the comment field of the user is not available through the SDK - this is an oversight that was reported two years ago.  Please add your vote and detailed opinion to this bug in the Adobe official feedback forum report: Lightroom SDK: no way to access EXIF:UserComment | Community customer Photoshop family. Unfortunately, Adobe has fixed the bugs very little, or none, in the SDK in recent years, so I'm not holding my breath that it will get fixed soon, if ever.

  • How to acquire data through several channels in parallel using E 6070 PXI, PXI-4071 and LabVIEW?

    Hello

    I use LabVIEW and NI PXI-4071 PXI NOR 6070E to measure the current through a variable resistance. Now, I use a single channel of SCB - 68, but I want to add another channel at the same time so that I can have two resistors instead of one that I cam measure current through them.

    I have attached a Pdf file showing installation of equipment to use and code LabVIEW also.

    Can someone look at these files and give me some guidelines or ideas that can help me solve this problem, please.

    Thanks in advance.

    Best regards

    Shaheen.

    Your 4071 can do a measure at a time. Your data acquisition cannot measure resistance is not she of the analog inputs.

    However, you could use a multiplexer and multiplexer your 4071 DMM. This habit give you simultaneous action, but can acquire data one after the other, the speed depends on the multiplexer, you choose!

    I hope this helps.

  • How to read/write a SQL Server records hosted on the Web?

    If I have a MS SQL Server hosted on the internet, how can I use Labview to access? Popular examples.

    TIA,

    Them

    Well Yes, just provide the connection string and they, query and database tools take care of the rest.

  • How to read the text from a DOS window in real time?

    I call an executable file that downloads a file to flash memory.  This program displays status information in real time as the percentage of completion in one window BACK.   It also makes account of the CRC of the file as it downloads.  I am currently redirect the output of the DOS window in a text log file.  This works fine for obtaining of the CRC when the file is actually downloading but the operator loses the visibility of the State in the percentage of download.  Is there a way to read text information in a DOS window with my request of LabWindows/CVI real-time?

    Hi Brent,

    If redirect you the output from the first application in a log file, you would be able to read the contents of the file streaming to your second request, and whenever the content changes (such as the download value percentage), couldn't display you this information immediately with the second request in one window DOS or some other GUI?

    Luis

  • How can I call sub s vi remotely on target RT PXI host computer laptop?

    I have about 20 sub-vis on my goal of PXI RT I want to run exactly a controlled time since my laptop host Panel. There must be an easy way to do it, but I'm still pretty new for LV the way I do it now is by ordering a shared variable (Boolean on) between the host and trigger a case on the target structure. It works most of the time, but the problem is that sometimes the host vi ends execution of its loop and latch the boolean return false until the target has a chance to run the sub - vi. What is the correct way to do it?

    Hi Michael,

    I'm happy to help you with your question. Some nice way to accomplish what you're trying to do is mentioned in this document: (http://digital.ni.com/public.nsf/allkb/F64D92E0BCA34162862573BD0072F807).

    Specifically, I recommend using VI server to run a programming LabVIEW Real - Time live from an application host on your laptop. Please let me know if you need additional information on how to do it, or if you try it out and have problems. Note that you need to make sure that your subVIs and all dependencies are copied to disk target hard real-time for this method works.

    Best regards

    Casey Weltzin

    Product Manager, LabVIEW Real-time

    National Instruments

  • How do you download a newer version of time Labview real-time in PSC-2200 when is not not in MAX?

    I can't figure out what I need. My PSC 2200 has a version of Labview RT 8.5.1 and fieldpoint 6.0.1.

    I need to be at least RT 10.0 Labview and fieldpoint 6.0.7 because I do Ethernet IP. I don't know that anything more recent that it will work as well.

    As far as I know, I downloaded fieldpoint 6.0.12 and I have the Labview RT 10 module. What Miss me to update software on the cFP-2200 by MAX?

    I don't know another software in the software other than what is currently installed real time Wizard.

    Software shown MAX:

    Any help is appreciated!

    Thank you.

    Wow, Fieldpoint 6.0.1 was released in 2008 - which has been in the LabVIEW 8.5.1 / 8.6 times.  If you want to use LabVIEW 2010RT, you really need to upgrade.

    Try to download and use Fieldpoint 6.0.11: http://joule.ni.com/nidu/cds/view/p/id/3073/lang/en

    LabVIEW Real-time is not "natively" delivered with Fieldpoint or cRIO supported, these happened as part of the RIO or Fieldpoint support modules (so that the most recent versions of RIO or Fieldpoint update your support).

    Who give a shot!

    -Danny

Maybe you are looking for