Need help on the use of the PCI-6221 and c# to control three digital Port and an analog of entry

I need to send the digital output at three ports and then read an analog input voltage using the analog card PCI-6221.

I did a c# program to fight against it. I built four tasks altogether. Three tasks for three digital output ports and a single task for analog input.

How can I reduce the time?

Using my method, to 3.3ms in total. And it's slow.

I can build one task for three ports?

What is the best way to the control task to reduce the time of communication with the PC?

Is that possible to save a lot of analog reading entry in the memory of the DAQ hardware and then read it all together from the computer in order to reduce time consumption?

1 million thanks!

Hello

Hi Jin,

To answer your questions, Yes, you are able to configure a task of digital output to use three output ports and PCI-6221 has a buffer of memory FIFO aboard 4095 samples.

I would like to direct you to the example of NOR-DAQmx for c# files located in the following location on your computer

C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DotNET2.0

 

Here, you will find predefined examples in c# that should give you a good idea of how to go about architecting your code to achieve the results you need.

There is also a useful help file which you will find by navigating to Start > all programs > National Instruments > NOR-DAQ > help of NOR-DAQmx .NET Framework 2.0

I hope that this answer is useful.

Best regards

Steve H

Tags: NI Hardware

Similar Questions

  • Need help with the OSB Assign and replace the

    I have a proxy service that receives the SOAP message:

    " < = xmlns:soapenv soapenv:Envelope ' http://schemas.xmlsoap.org/SOAP/envelope/ "xmlns:SOAP - ENC =" " http://schemas.xmlsoap.org/SOAP/encoding/ "container =" " http://www.w3.org/1999/XMLSchema ">

    " < = xmlns:soapenv soapenv:Header ' http://schemas.xmlsoap.org/SOAP/envelope/ ">

    < / soapenv:Header >

    < soapenv:Body >

    " < pidx:OrderChange pidx:transactionPurposeIndicator = 'Replace' xmlns:pidx = ' http://www.API.org/pidXML "xmlns =" http://www.API.org/pidXML "" xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance "xsi:schemaLocation="C:\shareIt\OrderChange_1-2.xsd" > ""

    ...

    < / pidx:OrderChange >

    " < = Xmlns:ocp DeliveryInformation ' http://www.digitaloilfield.com/OCP ">

    ...

    < / DeliveryInformation >

    < / soapenv:Body >

    < / soapenv:Envelope >

    I need to take the OrderChange element and place it in a SOAP body and the DeliveryInformation element and place it in the SOAP of the same SOAP message header.

    The SOAP message is then sent to a business service that makes an HTTP POST of the SOAP XML.

    I created the service of the company and he sent some data test SOAP and it works very well, but cannot create a bridge between the Proxy and the Business Service.

    In the stream of messages of Proxy I tried to do an assignment in a routing. I tried to do the following:

    1. an XQuery query transform to generate the XML SOAP just described

    2. not the entitlement where the "Expression" is the transformation and the Variable is a variable based on a schema for SOAP.

    I can see that the company is trying to be invoked, but the SOAP data does not have to be formatted or passed.

    It is the right approach or is their a better way of

    1. create the SOAP wrapped XML

    2. call the Business Service.

    Any suggestions are appreciated. I can provide more detail if necessary.

    Kind regards.

    Thank you Vlad...

    I think I'm getting in that direction now. Just do some debugging.

    Appreciate the input. I will update with final results.

    Again, your help is greatly appreciated.

    Kind regards.

  • HP 15 - ac043tu: need help with the key feature and WiFi Drivers

    Hi team,

    I try to activate the key feature and WiFi in my new HP 15 - ac043tu laptop.

    I use Windows 7 Ultimate 32 operating system.

    I installed all the drivers available on the site Web of HP (http://support.hp.com/us-en/drivers/selfservice/HP-15-ac000-Notebook-PC-series/7771404/model/8326116... for my product.

    To activate the function key, I installed driver: HP System Event Utility - sp71716, but it doesn't seem to work.

    In Device Manager, network controller shows exclamation as shown below. I tried to install Broadcom and Realtek WLAN drivers, tried to turn on/off, uninstalled/reinstalled drivers referring to other positions, but that did not work.

    I also tried to install HP SoftPaq Download Manager, but it did not help. Tool does not show my product described.

    I went through a similar question posted by other members, but failed to get the solution. This question gave me hard times.

    Appreciate your help in this regard.

    Thank you

    Kishan

    Hello:

    You need these drivers wireless and bluetooth driver 64-bit file should have the 32-bit drivers too.

    Network controller (wireless card):

    FTP://FTP.HP.com/pub/SoftPaq/sp71501-72000/sp71528 .exe

    Bluetooth:

    This package contains the Broadcom bluetooth driver and software for the laptop models running a supported operating system. Broadcom Bluetooth 4.0 driver is required to activate the bluetooth 4.0 Broadcom devices and is compatible with Broadcom bluetooth 3.0 and earlier versions.

    File name: sp71440.exe

    Unfortunately, I can't help you with the next question.  The system of the event utility would be the only software I can think that would have worked.

    You can try the software HP Quick Launch, but I doubt it will work.

    http://h20565.www2.HP.com/hpsc/SWD/public/detail?swItemId=ob_112835_1

  • 2000-2d19wm HP: I need drivers for the PCI device and SM Bus controller

    I have a Hp 2000-2d19wm and I have downgraded to win8 to win7. Now I am trying to install the drivers and I can't find it on the HP website. Please help me.

    Hello:

    You need this driver for smbus controller...

    http://h20566.www2.HP.com/hpsc/SWD/public/detail?swItemId=cp_118001_1

    You need this driver for the PCI Dev:

    Realtek card reader driver

    File name: sp64801.exe

  • Need help on the regular expressions and query

    Hi guru s, I hope that you all made great!

    I have a scenario where I need to insert data into the table.

    I have three scenarios:
    select 'Kodali,Raj,S' str from dual
    union 
    select 'Alex Romano' from dual
    union 
    select 'ppppp' from dual
    
    Alex Romano
    Kodali,Raj,S
    ppppp
    What I want is now.

    1 Alex Romano
    is there space between the chain and then I want to insert in the last name and first name columns
    2 Xavier, Raj, S
    If there is a comma between the chain and I want to insert in the last name, first name and middle name
    3. If there is one channel then insert even in first name and last name.

    I wrote the request more early to manage only by commas and now I'm trying but not able to use this all scenarios
    Can you please help me.
    WITH t AS (
     
    select 'Kodali,Raj,S' str from dual
    union 
    select 'Alex Romano' from dual
    union 
    select 'ppppp' from dual
    
    ) 
    select DECODE(trim(a),NULL,'a',trim(a)),DECODE(trim(b),NULL,'b',trim(b)),decode(trim(c),NULL,'c' ,trim(c)) 
    from 
     (
      SELECT max(decode(level,1,regexp_substr(str,'[^,]+',1,level))) a --INTO lFNAME
              , max(decode(level,2,regexp_substr(str,'[^,]+',1,level))) b --INTO lLNAME
              , max(decode(level,3,regexp_substr(str,'[^,]+',1,level))) c --INTO lMNAME       
       FROM   t
      CONNECT BY regexp_substr(str,'[^,]+',1,level) IS NOT NULL
      GROUP BY str
    ) ;
    Currently I put a b and c if its null value.


    Thanks in advance!

    Hello
    You can do what you asked for in pure SQL like this:

    WITH     got_pos          AS
    (
         SELECT     str
         ,     INSTR (str, ',')     AS comma_pos
         ,     INSTR (str, ' ')     AS space_pos
         FROM     t
    )
    SELECT    str
    ,       CASE
               WHEN  comma_pos > 0
               THEN  REGEXP_SUBSTR (str, '\w+', 1, 2)
               WHEN  space_pos > 0
               THEN  SUBSTR (str, 1, space_pos - 1)
               ELSE  str
           END     AS fname
    ,       CASE
              WHEN  comma_pos > 0
              THEN  REGEXP_SUBSTR (str, '\w+', 1, 3)
              ELSE  TRIM (REGEXP_SUBSTR (str, ' \w+ '))
           END     AS mname
    ,       CASE
               WHEN  comma_pos > 0
               THEN  SUBSTR (str, 1, comma_pos - 1)
               ELSE  REGEXP_SUBSTR (str, '\w+$')
           END     AS lname
    FROM       got_pos
    ORDER BY  str
    ;
    

    But look how it is difficult, even for this simple example of data.

    I suggest you write a PL/SQL function to analyze the name. It will be much easier to deal with a combination of spaces and commas, the names of more than 3 words, etc.

  • BlackBerry Z10 need help with the facebook chat and notifications

    Hey, guys.

    Since I updated to version 10.2.1.2102 of the software I was not able to receive messages from the hub of blackberry facebook chat. Before the update whenever I had my phone connected to a wireless network it was automatically getting messages facebook on the hub. Now, although I can send messages and receive messages if this contact is online, once I close the conversation hub is gone and I don't get the messages, only the "new messages of * person *" e-mail after a certain time.

    In addition, I don't get notifications about birthdays of the people. I get the "next event" x hours notification on the lock screen, if I go in the calendar I see the notification at the top of the page, but it does not sound to warn me of my birthdays from the contacts.

    Can someone help me with this two problems? Thank you!

    Fact. I needed to update the facebook app.

  • Re: Satellite A500 - need help with the FN key and Toshiba programs

    Hello

    The fn key Eco and other buttons specialized such as the one that opens Windows Media Player have stopped responding on my PSAM3A-03P00E A500 running Windows Vista. I can always change the brightness of the screen with the FN key, but no menu appears at the top of the screen.

    Also Toshiba programs that are intended to be run at the start as PC Health Monitor are not auto start, even if they are enabled in the Configuration (msconfig) system.
    The Bluetooth Manager however initially runs upward.

    I have blue screen errors, but they are not a problem since I have updated the BIOS to 1.5 and uninstalled Zonealarms.

    See you soon

    Hello

    Try reinstalling the additional package of Toshiba. AFAIK, this utility is responsible for these functions.

  • Need help with the error message and lose internet

    c:\\Users\TheJohnsons\AppData\Roaming\d3dx9.dll

    Keep this error message and lose internet. Can someone tell me how to get rid of it? Do an internet search revealed programs for free download that I know are malware. The other message is c:\\Windows\System32\Spoolsv.exe

    Thanks in advance.

    c:\\Users\TheJohnsons\AppData\Roaming\d3dx9.dll

    Keep this error message and lose internet. Can someone tell me how to get rid of it? Do an internet search revealed programs for free download that I know are malware. The other message is c:\\Windows\System32\Spoolsv.exe

    Thanks in advance.

    Download and run the DirectX end-user running, to see if we can eliminate the d3dx9.dll message.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=35

    Regarding the message in spoolsv.exe, see thread below.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/spoolsvexe-process-is-running-all-the-time-and/8268f671-51b8-42A3-9CE8-708e9686052d

  • hp350g1: need help on the admin password and power on password

    3 times to not receive a stop code 69074945

    Thank you!

    Try 76952381 password.

  • Speed/performance of my mac mini (mid-2010) is very slow. Need help, consolidate the files, software updates, etc. in order to improve the speed and performance.

    My mac mini (mid-2010) speed/performance is very slow - think of it as a result of letting my kids do "whatever" about it in recent years.  Need help, consolidate the files, software updates, etc. in order to improve the speed and performance.  You will also need to get data out of old PowerBook G4.

    < object edited by host >

    We are users like you.  Search locally by using something like Yelp or similar

    http://www.Yelp.com/search?find_desc=Apple+repair & find_loc = Chicago, + IT & start = 0 & ortby = rating s

    or read a few links which may be relevant on this forum about the slow mac mini

    http://BFY.tw/5C63

  • Need help with the installation of an adapter of Palit GeForce 9500GT Super chart - 512 MB in a M2N68 (narrated

    Need help with the installation of an adapter of graphics Super Palit GeForce 9500GT - 512 MB - DDR2 SDRAM in a M2N68 motherboard (narra6). Should I disable the onboard graphics in the bios? When the card is installed, no VGA work outs and the PC does not start. Checked and recontroler implementation of the card in the PCI slot. PC is a desktop HP G5200uk PC. Windows 7 operating system.

    Hello

    The link below is a guige to install a video card in your Pc.  In particular, it seems that you will have to perhaps specify the location of the new card in the bios and save this change before you install the new card - see step 4 in the guide on the link below.  If your new card fits into the PCI Express x 16 slot, you will need to define PCI Express in the bios and save the changes.

    http://support.HP.com/us-en/document/c01700855

    Kind regards

    DP - K

  • I need help with the program of Photos on my macbook pro

    I use a Macbook Pro with OS of Yosemite. I really need help with the Photo program. I never really got the hang of IPhoto and now that it's a new program, I'm really confused. Where can I go to learn this without waiting for the next workshop in a local store?

    Hi, I'm fighting to open same mine, making a new software update

  • need help with the CVI real-time

    Hello

    I'm new to CVI real-time and need help related to this. I'll explain my scenario:

    1. I have a few configuration files (INI). Need to validate the files (the range... check etc.) when the application is started.

    2. when the user clicks on 'START' in the user interface on the host machine, I need to generate outputs (analog/discrete...) according to the settings in the config file and read a few entries of other instruments. (I/O such tasks that generate outputs/inputs, I intend to perform beside reading RT)

    3. from the user interface, user can also change the configuration files. If the user modifies the files, file validation must again be made. After editing files, if the user clicks on START, the need to take the new entry to perfom tasks I/O configuration files.

    4. I am NOT using reflective memory for my application.

    I am confused in the following area:

    1 file validation during startup, I have to perform on host and on the side of RT?

    2. If the configuration files are changed in the host side user, how I send the names of files to RT? I think that I should not send the file names, I need to read from the file and its contents, I need to move on to Rt.... Pls correct me, I'm not sure about this...

    3. If I send the contents of the file to the RT, how do I do... I have to use structures, means... ???

    Please guide me. Any help would be much appreciated.

    Kind regards

    Samantha

    Hey Samantha,.

    1 file validation during startup, I have to perform on host and on the side of RT?

    It depends on the full range of responsibilities for INI files. If they are necessary simply to change what the I/O are for, then you would be technically just validate the content of the file INI on the side of the RT. However, you could post on both sides if you wanted to. However, I would probably set up as I have send a validation to the target control, have the target run a component of the code that validates the INI content based on how I loaded it and then returns a message that says if it meets the requirements I specified. However, if you are concerned with unloading of this process on the user's desktop (to the contrary increase the performance of the RT controller), you may FTP the file to the rheostat and perform the process of validation of the side host.

    2. If the configuration files are changed in the host side user, how I send the names of files to RT? I think that I should not send the file names, I need to read from the file and its contents, I need to move on to Rt.... Pls correct me, I'm not sure about this...

    You can send them to the target by FTP. This can be done programmatically, by MAX, command or a Web browser window.

    3. If I send the contents of the file to the RT, how do I do... I have to use structures, means... ???

    It is basically addressed in answer to question two. You would not need another structure in your code of RT to manage the FTP receive component as this is handled by the FTP Client/server communication. However, in case you successfully FTP a file to the target, you should probably send a message between the host and the target so that the target can react accordingly and reload the file I/O values, run an inactive procedure, or do what you want.

    I hope this helps. Have a great day!

  • Need help with the button mute on my helmet XL-3000 of Microsoft Chat, please!

    Hi all!  Hope everyone is having a good TGIF!  If you use my helmet even, I need help understanding the region button mute in the middle of the rope.  The red light is on or off?  I suppose that if I hit the curve button with the microphone on this subject, and the red light, I'm turn off my mike?

    I did some tests with others on the phone calls.  Sometimes, some other hear me, sometimes they do not have.  BUT I NEVER HEAR THEM!  FOR MY WORK, IT IS IMPERATIVE THAT I MAKE CALLS TO OTHERS!  HELP PLZ!  Thank you very much and have a great wkend!

    Hello
     
    Please follow the links below to troubleshoot the computer.
     
    Method 1
     
    Connect one microphone, music player or other audio device to your computer

    Method 2

    Step 1

    Troubleshooting: headsets

    Step 2

    Open the troubleshooting of Audio recording

    Method 3

    How to adjust the microphone volume

    a. click Start, type mmsys.cpl in the search box and press ENTER.
    b.
    in the sound dialog box, click the recording tab.
    c. click Microphone, and then click Properties.
    Note Make sure that the work appears under Microphone. If the job does not appear, click Microphone, and then click on set as default.
    d. the Microphone Properties dialog box, click the custom tab.
    e. select or clear the box amp Microphone.
    f. click the levels tab.
    g. set the volume to the desired level, and then click OK.
    h. click OK to close the sound dialog box.
     
    How to adjust the setting of the voice
     
    a. start the game.
    b. connect to LIVE (the Guide).
    c. click personal settings.
    d. click on voice.
    e. make sure that the recording volume level indicator records at a bar when you talk.
    f. click done.

    If you are still facing problems then, I would say that you contact support for Microsoft hardware for more direct intervention.


    I hope this helps.

     
  • Need help with the launching track pack for forza code 4

    Bought new Forza 4 and the lancer Track Pack code does not work, how do I get a code that is generated in the form I've already paid for it. Rank of loads of numbers and sent 10 s of emails but cant seem to get help.

    This is the help I get when the cat to an Ambassador xbox on xbox.com

    Terry wrote:
    Need help with the launching track pack for forza code 4
    The Xbox Ambassador says:
    Location of Ambassador of the community...
    The Xbox Ambassador says:
    Location of Ambassador of the community...
    The Xbox Ambassador says:
    Your question will be answered by an Ambassador of the Xbox. You have been connected to the Ambassador as a user Xbox [3]
    The Xbox Ambassador says:
    Hello
    Terry wrote:
    Hello
    The Xbox Ambassador says:
    Hey
    Terry wrote:
    just to be on the phone to xbox live support and was told to come here
    The Xbox Ambassador says:
    ok\
    The Xbox Ambassador says:
    What is your problem?
    Terry wrote:
    I bought the 4 for forza ansd 360 new sealed Christmas...
    Terry wrote:
    has got 2 codes that accompanies the game but the pack track code does not work
    The Xbox Ambassador says:
    Wow good
    Terry wrote:
    whenever I put in the code it says code redeemed
    The Xbox Ambassador says:
    I think the code is used. You must return to the retailer
    Terry wrote:
    I tried to, but since I already opened the case they will not accept
    The Xbox Ambassador says:
    Oh. No,
    Terry wrote:
    the code had been used or defective as I am the only person who has touched the game once opened, tried to enter the code when it is open
    The Xbox Ambassador says:
    Maybe it was auto bought?
    Terry wrote:
    so, how do I get another code generated track Pack if defective?
    The Xbox Ambassador says:
    I do not know.
    Terry wrote:
    bought the game new, so I get the track pack
    The Xbox Ambassador says:
    Oh. It's bad.
    The Xbox Ambassador says:
    I think that if you Exchange 1 code it will buy it
    Terry wrote:
    car pack code worked, starter pack did not work
    The Xbox Ambassador says:
    Oh.
    The Xbox Ambassador says:
    It's a bad
    The Xbox Ambassador says:
    BTW you have an evolution of the tests?
    Terry wrote:
    Yes, I want to? but more anxious to get a code object generated for this pack
    The Xbox Ambassador says:
    Hey if I help can u give me this game too?
    Terry wrote:
    ?????????????????
    Terry wrote:
    So is it possible to get a code for that time?
    The Xbox Ambassador says:
    Hey
    The Xbox Ambassador says:
    Yes.
    The Xbox Ambassador says:
    you need to contact them
    The Xbox Ambassador says:
    and tell them that the code is used.
    Terry wrote:
    I was told to come here? where can I go to get the code?

    Hi Terryg76,

    ·         What version of the operating system is installed on the computer?

    I suggest you to contact the game manufacturer for more help and information.

Maybe you are looking for