How to read voltage on several channels using the 6255\SCB-68

Hi all

I have been able to get the following code to compile, run and display the data as expected. When you read the tension (CSR) on Dev0/ai65

... Instruments\NI-national DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Cont Acq - Int Clk\ContAcq - IntClk.c

* I think I'm using CSR, but I have no idea since I don't see an argument to specify

I'm reading two different data points:

1 discovered (CSR) tension on Dev0/ai65

2 show the (differential) voltage difference between Dev0/ai17 and Dev0/ai25

Can someone point me to an example (or a web link) where two different data points are read.

* edit - I am filling this task using C++

Thank you

Chad

This code is a start, and it works


using namespace std;





using namespace std;

#define DAQmxErrChk (functionCall) if (DAQmxFailed (error = (functionCall))) goto error; on the other

int main (void)
{

<>
< "\t="" starting="" the="" ni="" daqmx="" data="">
<>

int loop;

< 3;="">
{
Int32 = 0 error;
TaskHandle taskHandle1 = 0;
TaskHandle taskHandle2 = 0;
Int32 read1.
Int32 Read 2;
float64 data1 [1000];
float64 data2 [1000];
tank errBuff [2048] = {'\0'};

Channel settings and the schedule of the analog voltage DAQmx
DAQmxErrChk (DAQmxCreateTask ("task1", & taskHandle1));
DAQmxErrChk (DAQmxCreateAIVoltageChan (taskHandle1, "ai25/Dev1", "", DAQmx_Val_Cfg_Default,-10,0, 10.0, DAQmx_Val_Volts, NULL));
DAQmxErrChk (DAQmxCfgSampClkTiming (taskHandle1, "", 10000.0, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, 1000));

DAQmxErrChk (DAQmxCreateTask ("task2", & taskHandle2));
DAQmxErrChk (DAQmxCreateAIVoltageChan (taskHandle2, "Dev1/ai17", "", DAQmx_Val_Cfg_Default,-10,0, 10.0, DAQmx_Val_Volts, NULL));
DAQmxErrChk (DAQmxCfgSampClkTiming (taskHandle2, "", 10000.0, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, 1000));

Starting code DAQmx
DAQmxErrChk (DAQmxStartTask (taskHandle1));

Reading DAQmx code
DAQmxErrChk (DAQmxReadAnalogF64 (taskHandle1, 1000, 10.0, DAQmx_Val_GroupByChannel, data1, 1000, & read1, NULL));
< read1;="">
< data1[i]="">< "="">
<>

DAQmxStopTask (taskHandle1);
DAQmxClearTask (taskHandle1);

Starting code DAQmx
DAQmxErrChk (DAQmxStartTask (taskHandle2));

Reading DAQmx code
DAQmxErrChk (DAQmxReadAnalogF64 (taskHandle2, 1000, 10.0, DAQmx_Val_GroupByChannel, data2, 1000, & read2, NULL));
< read2;="">
< data2[i]="">< "="">
<>
DAQmxStopTask (taskHandle2);
DAQmxClearTask (taskHandle2);

Stop and clear spots
Error:
If (DAQmxFailed (error))
DAQmxGetExtendedErrorInfo (errBuff, 2048);
If (taskHandle1! = 0) {}
DAQmxStopTask (taskHandle1);
DAQmxStopTask (taskHandle2);
DAQmxClearTask (taskHandle1);
DAQmxClearTask (taskHandle2);
}

If (DAQmxFailed (error))
printf ("DAQmx error: %s\n", errBuff);

}
end of loop

<>
< "\t="" stopping="" the="" ni="" daqmx="" data="">
<>

return 0;

}

Tags: NI Hardware

Similar Questions

  • Error in the capture of several channels using pre-trigger

    I have problems of acquiring data with pre-trigger samples during the capture of several channels, using hardware NOR-PXI-6071E and Analog Input VIs in Labview (inheritance OR-DAQ).

    My goal is to trigger a signal, while capturing another. Unfortunately, I can't use the PFI0 for external triggering, as our cables/material have already been built, so I have to use an analog input as the trigger channel. I understand that to do this I must capture the two strings and the string I want to trigger outside must be the first string in the list.

    If I trigger and capture on the same channel (I tried 1-4) then it works very well, regardless of the number of samples before relaxation together. If I capture more than one channel (the channel of the relaxation to a first), with no pre-trigger samples, then trigger and capture both work very well. However, if I do the same thing with pre-trigger > 0 sample I get the following error:

    Error-10621 to AI control. Possible reasons:
    NOR-DAQ LV: The specified trigger signal cannot be assigned to the resource for the trigger.

    I don't have to such limitation explained in the user manual, and the forum search, I found a few other people who have had the same problem but they had no solutions. Any ideas?

    Hi Jackson,

    Unfortunately, this is a hardware limitation when you reference analog trigger via one of the lines to HAVE.

    Please see this knowledge base. Particularly the second paragraph says

    The error-10621 appears immediately when the VI running if you try to assign scans of relaxation before while scanning multiple channels and using one of the entries as your trigger channel.

    Details are explained in the third paragraph:

    Because all the entries are multiplexed before being sent for analog triggering circuit, it is possible that the trigger on the trigger channel conditions might miss while the device is multiplexing by another channel. In this case, the trigger will not be detected.

    It is explained in the E-Series user manual page 10-3.  Specifically the second paragraph of the section entitled "Analog Input Channel".

    Eric S.

  • How do you install the creative cloud on several computers using the same license?

    How do you install the creative cloud on several computers using the same license?

    Installation on multiple computers can be done independently of the subscription.  You only need the lic3ense when it comes to activation, you have two active facilities (signed in).  Just install the desktop application and use it to install the applications, and then connect to activate.

    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    Creative cloud to desktop
    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app
    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Help of activation & deactivation
    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#a ctivate-how-to's

    Install, update, or uninstall applications
    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

  • We have 2 phones and 2 computers and they all sound when the phone rings. How to change that? they all use the same apple ID

    We have 2 phones and 2 computers and they all sound when the phone rings. How to change that? they all use the same apple - ID we buy apps and music coming from the same account. It all works very well, but we don t like any other device to RING eveytime a phone rings.

    Thank you so much: D

    ON both phones, check the settings > phone > call on other devices > Off.

  • How can I register my product without using the online process?

    How can I register my product without using the online process?

    He scored finally got.

  • How do I cofigure my laptop to use the Virgin mobile mifi wireless card

    Wireless zero configuration

    How do I cofigure my laptop to use the Virgin mobile mifi wireless card

    See the instructions provided with the Virgin card 'wireless mifi mobile.'

    What version of Windows, including service pack that you have (if of course service pack, start > run > winver > OK)

    Your laptop has a wireless adapter?  Look in under 'Network adapters' Device Manager (start > run > devmgmt.msc > OK).

    Look in network connections (start > run > ncpa.cpl > OK).  What icons appear?

  • How can I uninstall Windows 7 to use the license on a new construction

    Hello

    I am running a copy retail of Windows 7 Ultimate on a desktop PC I built myself.

    I'm about to replace many items, for all intensive purposes, construction of a new computer. I want to continue to use my Windows 7 license on the new system, but some of the forum posts I've seen suggests that I would need to remove Windows 7 from my current set in place before reinstalling so as not to invalidate the license agreement.

    My question is that Windows 7 has been a new installation on my current PC, there is no previous operating system to come back. How can I do to remove or disable at least Windows 7 so that I can use it on my new build?

    To make things more complicated, I have recently booked 10 Windows download through the app and would this be installed on my new PC, once it is available. How can I transfer Windows 7 and make sure my Windows reserved 10 downloads for the new generation?

    Please note, in order to transfer the Windows 7 Ultimate license, but a full commercial license. Also, since you will sit there, free upgrade offer for Windows 10 will not be valid for this computer. As long as you remove the Windows 7 and transfer then reselect, the new machine will be automatically eligible for the free upgrade.

    Remove the current installation.

    Click Start, type: CMD
    Right-click on CMD
    Click on run as administrator
    At the command prompt, type: slmgr.vbs - upk

    Press enter, this will uninstall the product key of the computer and to the evaluation mode, you are now free to use it on another computer. If you experience problems, try to activate by phone:
    Activate Windows 7 manually:
    1. click on start and in the search for box type: slui.exe 4

    2. press enter on your keyboard

    3. Select your country.
    4. Select the telephone activation option and brace yourself for a real person.

    The mode currently of the installation process, you will need to be activated or it will go into reduced functional mode. You have the option to install another version or edition of Windows or get a product key for it. Alternatively, you can put the system as follows:

    To format drive:

    1. Insert the DVD of Windows 7
    2. restart your computer
    3. When asked if you want to boot from your DVD player, do it.
    4. Select your language, click Next.
    5. click on "repair your computer".
    6. Select the operating system you want to repair.

    7. click on the command line

    8. at the command prompt, type: FORMAT C: /.

    Press enter on your keyboard

    Type y for Yes

    Press enter

    Please wait while the drive is formatted.

    Type exit to close the command prompt, and then click farm to shut down the computer.

    If the application of reservation (10 Windows app) has a blank screen or doesn't work or is not available:

    Please be aware, even if you do not get the Windows 10 app, you can always download Windows 10 as one. ISO file, create a bootable copy and update your system.

    How to: upgrade previous versions of Windows using the file ISO for Windows 10

    Backing up your computer:
    When you make significant changes to your computer for example updated operating system, you must always back up. See the links to resources on the backup by clicking the link for each version of Windows you are using: Windows XP, Windows Vista, Windows 7, Windows 8/8.1

    Also check:

    How to back up and restore your files manually

    How to: build 10 tips before installing the latest version of Windows 10

    How to: 10 things to do if the Windows 10 install fails.

    Once you have installed these important updates and followed the required steps, you should be ready to receive your free Windows 10 update this summer.

  • Photoshop CS4 - is - does anyone know how to find out if two people use the same file?

    Photoshop CS4 - is - does anyone know how to find out if two people use the same file?

    Yes, I assumed that was the case, and I thought that this link addressed to her.  I would have thought it was more a function of your network and the OS than Photoshop.

  • I have a DAQ Assistant configured to read several channels at the same time. When I have a graphical indicator of wire to the output, I see all my signals mixed together. How I divided them into separate signals?

    I have a DAQ Assistant configured to read 2 channels at the same time. When I have a graphical indicator of wire to the output, I see 2 signals mixed together. How I divided them into separate signals?

    When I wire any type of indicator, it is show that a release of a single channel.

    I want 2 indicators showing 2 different signals as expected from 2 channels configured. How to do this?

    I tried to use split signal but it end by showing that 1 out of 1 signal two indicators.

    Thanks in advance.

    Yes you are right. I tried, but I don't have the result.

    I just find the path. When we launch the split signal, we should expand it (split signal icon) by top, not the bottom. It took me a while to understand this.

    Thank you

  • 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.

  • Use several channels in the order of RT

    Following this post, and based on a simple sequence of RT that monitors a single channel, now I want to control multiple channels with setting specific time and level. The logic of this was to pass an array of strings that you want to monitor in the .vi create sequence parameter assignment (channel) and use arrays to manage all the time and level settings.

    However it seems that the sequence of RT cannot manage this type of object... so, how do I extend this functionality to several channels... Maybe that's the wrong avenue to use rt sequences?

    L.

    ... well, I look at one of the approaches is to create several calls sequence on a given sequence, each with different settings, then start them all in parallel. It seems to work for the moment.

    A simple question as opposed to events is used (for now) to detect when each called sequence stops and returns its result.

    Laurent

  • How to read data from several files and add columns in a single file

    Hi guys,.

    I have a problem in adding data from files in different columns. I have the attachment a file A and B which I am reading and not able to get the data in the Result.txt file. Please give your opinion on how can I do this

    You must add the data of all files before proceeding with a single entry.

  • How to write data I read frequency bands in excellent using the tools for the generation of reports.

    Hi all

    I wrote the code to read data from the Analyzer of spectrum and also for writing in excel using report generation tools. When I run the program values get read and excellent sheet also opens but I don't see anything written in.

    So if anyone can help me in that I'm very gald. I am attaching the screenshot of my program and also attach file .vi. As I use the drivers you can see some of vi.

    Thanking you,

    Patricia

    @tobid,

    Thank you and sorry long back only I got my error and its job well now... again thanks and sorry that I have not mentioned here...

    Patricia

  • BoolText.text how to give several channels (on the text and off text)

    How can I automatically change the text 'on' and 'Off' a Boolean value text. In the node property, I found BoolText.Text but how to use it to give power and text turn off? Thank you

    Hi TDE_CH,

    You can use the property '[4] Strings' to define these texts or you right-click on your control and use the Properties dialog box to change it.

    Mike

  • Several questions using the fixed layout

    I'll try to explain all my troubles and excuse my English.

    Problems for a long time, iTunes Connect, Pages or iBooks author.

    I'm basically a writer of children's books using the EPUB fixed layout as a template. One of my books with (interactive) video I've corrected several times through many contacts with support until I discovered that the problem was that iBooks was unable to read the EPUB 3.0 presentation stops and freezes. Currently, this problem has been fixed.

    In fact, iBooks author nor Pages have fixed layout support. For example, the EPUB models presented in the Pages carry only vertical presentation - where are the horizontal templates for books on photography? iBooks author is made for classic books requiring chapters and sections that are unnecessary for children's books who just needs the blank pages where the images can be copied / pasted with text. It is, but not so simple.

    At the moment I have finished another book and used Epub Checker. Everything was OK, so I tried to download it using iTunes Connect.

    To my dismay iTunes Connect returned with several error messages missing both Epub Checker or inDesign.

    I am here to tell all this issues with Apple tools and how they do not work in practice.

    If you ask Apple to make improvements in its applications, for them to see that you must republish to

    http://www.Apple.com/feedback

Maybe you are looking for

  • Firfox still play mp3 when told of not

    I implemented the solution specified in this announcement: https://support.mozilla.org/en-US/questions/963437#answer-514541 However, the question now is when I click on a link to an MP3 from an external program, IE. Outlook, Firefox opens a new tab i

  • Satellite A105-4094 display - only half screen problem

    So my screen is showing half, it is a compressed version of the full screen.The right of the screen is turned on, but all black and just after the point halfway on the left side is a bunch of image then a strip of black before you see the compressed

  • My MBP has a prismatic hinge box

    Adjusting the display angle produces a noise dry after the cover is in any position for a few seconds. Is there a way of restore the hinge for the operation? Thank you, Tom

  • Video drivers for Vaio model # PCG - 61411L

    Replaced the hard drive crashed and necessary, and I can easily install various forms of win7/8, but it seems that it is of type NVidia 310 M gpu in the present and the driver must come from the Sony (re: NVidia site). I could not find any informatio

  • How to configure the PFI0 terminal on the USB-6009 case as came event counter

    I'm watching the 8 inputs on the USB-6009 case and when fires Terminal PFI0 start saving the data. Y at - it and why to read the 8 inputs while monitoring the PFI0 terminal? I appreciate any help!