How to define logical tristate using NOR-DAQ 6212 in c#

Hello world

I am very new to NOR & help each of you experts out there.

As the subject says, I'm trying to set digital output at tristate DAQmx & c# channel. I found the link on the Tristate property, but I don't know how to use it. http://zone.NI.com/reference/en-XX/help/370473H-01/mstudiowebhelp/HTML/bd33b0d/

Any help would be much appreciated!

Thank you.

Hi kasrus,

You set the property using the following syntax (after creating your task):

digitalWriteTask.DOChannels.All.Tristate = true;

As help document states: "you must commit the task for this setting to take effect."  The help document also highlights when the value of property compared to a reading or writing.

This refers to the status of task template DAQmx:

State of task model

http://zone.NI.com/reference/en-XX/help/370466AC-01/mxcncpts/taskstatemodel/

Methods of configuration will move your task through this model of the State, but you can also control using the syntax in the article below:

Check, committing, start and stop of NOR-DAQmx tasks programmatically

http://zone.NI.com/reference/en-XX/help/370473H-01/mstudiowebhelp/HTML/verifycommitstartstopdaqtask/

Kind regards

Kyle S.

Technical sales engineer

National Instruments

http://www.NI.com/support

Tags: NI Hardware

Similar Questions

  • Problem setting Legacy DAQ board using NOR-DAQ 6.1 for Labview

    I know that the Board of Directors is an old legacy product not supported by NEITHER, however for a low-budget project, I have 3 of these AT-MIO-16 x cards and the need to use them.

    I know I got this job in the past not distant os, however, for the life of me can't get things sorted and work.

    You use a NT box, in which this configuration used to work... uninstalled and started fees for other reasons, and I can not get the NOR-DAQ 6.1 to support LAbview 6.1 or 7.1.

    Of course, I understand the OR-DAQ 6.1 should be used for Labview 5 and older, but also know this has been successfully done in the past.

    I downloaded all knowledge base articles dozed or both support and remember to use successfully the last time that I set up so I know not somehow it works.

    My configuration is: AT-MIO-16 X to the bus combo board (called work)

    NT PC

    LabVIEW 6.1 or 7.1

    NOR-DAQ 6.1 is the most recent to support this card.

    However, it will not install its support to its latest versions of Labview and I get errors, crashing, or missing files, when I followed various circumvention of knowledge base solutions.

    I was hoping that someone has a documentation somewhere how to handle this, because it really is a matrix of spaghetti.

    I can get NOR-DAQ support files installed, and Configuration Manager works well, finds the map and allows its parameters to be defined.

    But when I load the DAQ vi of any type, Labview accidents and the wizard of data acquisition channel does not work at all (no error).

    Thank you

    Yes, the installation program from the folder of disks for NOR-DAQ 6.1 on the ftp site has worked well.

    Workaround. Thank you

  • CR1000 are accessible using NOR-DAQ?

    Hello

    I'm trying to control a CR1000 datalogger using Labview. Is it possible to configure the available CR1000 in NOR-DAQ?

    Thank you!

    Why do you think you can use drivers OR a product OR NOT?

    NOR-DAQ is for products OR.

  • How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit

    Hello

    How can I create a Windows using NOR-DAQmx application in Visual Studio 2010 64-bit?

    I'm transferring a 32-bit application on 64-bit.  In visual Studio, I added the 64-bit project configuration.  He compiled the source very well but the reports link errors:

    error LNK2019: unresolved external symbol DAQmxReadAnalogF64 referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateAIVoltageChan referenced in function NI6008_AnalogInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxReadDigitalLines referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDIChan referenced in function NI6008_DigitalInput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxWriteDigitalLines referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj
    error LNK2019: unresolved external symbol DAQmxCreateDOChan referenced in function NI6008_DigitalOutput NI_6281\NI6281.obj

    These, of course, are the functions OR that I use.  The NIDAQmx.lib has been added to the Input of the link property.

    Any help would be appreciated.

    Thank you

    -Neil shore

    Hi LaserShore,

    Think you that you added the 64-bit platform settings target according to this page? : http://zone.ni.com/reference/en-XX/help/372636F-01/mstudiowebhelp/html/64bitcore/

    Already running 32-bit application? Have you changed references to the 64-bit version?

    You use Measurement Studio? If so some features are not supported with 64 bit.

    Also when you say that you have added the NIDAQmx.lib, did you follow this KB:http://digital.ni.com/public.nsf/allkb/38F67B28D995C6958625706E000C580C

  • How to create different types of analog inputs without using the DAQ assistant?

    Hi all

    I would like to create multiple entries multiple analog channels of type... I mean I want to have the voltage of 5 and 2 channels of temperature...

    However, I am not using the DAQ assistant. I use "create channel" vi.

    Can anyone suggest me please how to do / I submit my VI for reference... I have 5 tensions, and 2 temperature characterized as showing these 2 two separate graphics...


  • Conversion of a VI that uses OR-DAQ traditional to NOR-DAQmx

    Hello

    I'm trying to convert a VI that uses OR-DAQ traditional to NOR-DAQmx.  I'm almost there, but when I run my new rear version number 'read' and 'scan' are not the same.

    In the original version the "number read" always came back as 1 and "scan" backlog is always returned as 0.

    In the new version, "number readings" and "rear scan" could come back with any value.  It's sure to shake my recording of measures and VI the interaction with the rest of the program.

    I have attached a light version of the VI for the old OR-DAQ traditional and new OR-DAQmx that illustrate this problem.  The two VI is written in LabVIEW 2011 SP1.  I would be willing to upgrade to SP1 2013 LabVIEW if it would help solve the problem.

    I would be grateful for any guidance.

    Thank you in advance.

    I think I did.  Use-1 to erase everything in the buffer when the program is waiting for the countdown to the end and then just ask for 1000 measurements when the countdown reaches 0.  Do not need the Scan back or number reading.  Also don't need to add the measure in table 1 at a time because I get them all at once.

    I enclose a copy of my solution for all those who might need to do something similar in the future.

    Gary

  • How to call a method defined in AppmoduleImpl using a groovy expression?

    Hi experts,

    With the help of jdev 11.1.1.5.0 - adfbc battery.

    I followed this post as the blogger says.
    How to call a method defined in AppmoduleImpl using a groovy expression?
    https://blogs.Oracle.com/ADF/entry/how_to_call_a_method

    While a button insert hit

    Suite error survey.
    java.sql.SQLException: ORA-20483: ADM-
    ORA-06512: at "RMSTD.FUNC_FIND_PLNT_DESC", line 22
    ORA-06512: at line 1
    
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
    It is my code for the function.
    CREATE OR REPLACE FUNCTION func_find_plnt_desc (
       p_bu        VARCHAR2,
       p_plnt_id   VARCHAR2,
       p_lang      NUMBER
    )
       RETURN VARCHAR2
    IS
       CURSOR cur_find_plant
       IS
          SELECT bup_name1, bup_name2
            FROM bus_unit_plants
           WHERE bup_bu = p_bu AND bup_plant_id = p_plnt_id;
    
       rec_find_plant   cur_find_plant%ROWTYPE;
    BEGIN
       OPEN cur_find_plant;
       FETCH cur_find_plant INTO rec_find_plant;
    --RAISE_APPLICATION_ERROR(-20999,P_BU||P_PLNT_ID);
       IF cur_find_plant%NOTFOUND
       THEN
    
          raise_application_error (-20483, 'ADM' || P_PLNT_ID ||'-'||P_BU);
          --NULL;
       END IF;
    
       CLOSE cur_find_plant;
    
       IF p_lang = 1 THEN
          RETURN (rec_find_plant.bup_name1);
       ELSIF p_lang = 2 THEN
          RETURN (rec_find_plant.bup_name2);
       END IF;
    END;
    /
    Reason behind:
    while hitting the insert means null from the value of the survey so error function.

    If am not hitting doesn't mean no problem. the function works correctly return description.

    can someone help me how to override?

    Published by: ADF7 on April 10, 2012 23:51

    ADF7,
    the subject of the post has nothing to do with the question (for as far as I see it).
    As you can see the error message clearly comes from the procedure pl/sql you call the application module, works of groovy appeal method.

    We cannot decide what makes your service if you pass null as a parameter. You can check the settings before you proceed to the procedure or write the procedure in how it treats null parameters.

    Timo

  • How to extract information from tree logical structure using the PDF Library?

    How to extract information from tree logical structure using the PDF Library?

    Adobe's PDF Library has PDSEdit APIs to extract information of the logical structure of a tagged PDF file.

    But I couldn't find any example code to demonstrate the C API on PDSEdit layer.

    I google search using different keywords, find none.

    I contact datalogics (which gives me the evaluation of adobe PDF library copy), no code sample on APIs PDSEdit yet.

    Everyone knows any code example can demonstrate extract structure logic tree information PDSEdit APIs (in C/C++ or Java)

    from a tagged PDF file? And is there any sample to demonstrate that connects a tagged logical tree contained in the content stream?

    I thank very you much in advance!

    logicaltree

    Did you look at the code snippets in the SDK?  There are a bunch of samples to work with PDSEdit and structure/marking.

  • How can I change the target directory for NOR-DAQ 6.9.3?

    I try to install NOR-DAQ 6.9.3 on a new laptop computer.  I tried to change the target directory, but the installer does not allow me to change it.  Is it possible to change the directory?

    When you say that the installation program does not let you change the directory target, you receive an error?  In my view, is it possible to change the target directory by selecting the feature in the feature tree, then by manually changing the target directory to the bottom of the installer.  When this is done, a pop up will occur who says a new folder will be created to save the files to.

  • MAX does not recognize NOR-DAQ traditional (old) devices * HELP

    I have a card PCIe-6259.  I want to use blocks of input-output in my program .vi (read Port DIO-DIO Port writing reading Digital Line), so I installed the version of NOR-DAQ traditional (old) devices 7.4.4.   But when I got to MAX (measures & Automation) and look on the left side under devices and Interfaces, I do not see the Tradional-NOR-DAQ tab; I see only the devices NOR-DAQ-mx, PXI, series and parallel system.

    Then when I go to run my program I get the error: error-10401 took place in a DIO Port Config Possible reason (s): NOR-DAQ LV: the specified device is not a product of National Instruments, the driver does not support the device (for example, the pilot exited until the device has been supported), or the device has not been configured using the Explorer Measurement & Automation.

    So, how do MAX to recognize that I have installed NOR-DAQ traditional (old) 7.4.4?

    Thanks for the reply!  I realized this too after going through the files for example... but thanks for the confirmation.

  • Verification of task names valid in the basis of NOR-DAQ

    Hello

    I have a question about the configuration of the tasks in the version of Base of NOR-DAQmx (I need basic because the application will need to be able to run on both Windows and Mac computers). The material is a box USB-6009, ordered through LabView. When you create a task inside LabView, is it possible to tell if the name you choose is already in use or not?  Similarly, is it possible to get a list of and if all tasks are running?

    The context is that I have a subroutine that made a brief burst of acquistion of analog input and then passes the result to the caller. I would like also to the subroutine to run standalone for different testing purposes. Normally, I would have the subroutine create and configure a task, the measure and then close the task. The problem is that the process of create/set up/start takes about 200-250 milliseconds (the measure itself is about 20 ms) that is long enough that I don't want to go through it whenever the subroutine is called from the top (I need to call this routine and do some other stuff a few times per second). So what I would is have the name of the task as a control on the subroutine, test that the value is a valid and if not valid only the initialization/etc. in the context of the subroutine, but if the subroutine has been passed a valid task from the top to skip a step all the time.

    Looking through all of Base of NOR-DAQ functions, it doesn't seem to be something that allows me to do this kind of check with the exception of brute force to try to create a task and trapping so all errors that might be generated.

    Suggestions (or ways) welcome.

    Kelsey,

    It seems that the property node is a component DAQmx, not a component DAQmx Base .  I can't find any DAQmx Base property nodes.

    dmsilev,

    Try to replace the property node of the tasks with the DAQmx Base get tasks.vi.  It is not in the DAQmx Base palette. It's a Subvi DAQmx Base create Task.vi.  Caution: when you use a Subvi, which isn't on the pallets, know that they are generally not documented well and are subject to change in future versions of LV

    If you weren't aware, DAQmx Base is written in LV and almost all the diagrams are not p [rotege so you can look inside and see how things are doing.

    Lynn

  • How to end a loop using hits/keypress in applescript?

    the value dFolder to '~/Desktop/screencapture/ '.

    the shell script ("mkdir - p" & dFolder)

    the value I 0

    the value x for the shell script 'date + %m %d - hour %M %S %Y' as string

    repeat 10 times

    define a shell script ("screencapture gif t - x" & dFolder & i & x & ".gif") as string

    Try

    say application "Image events".

    the value this_image to Open one

    this_image scale size 10

    Save this_image

    end say

    end try

    delay 3

    the value i to i + 1

    end Repeat


    Sample applescript with a screencapturing loop.

    Problem: How to end the loop using the key combination or keycode?

    Problem: How to end the loop using the key combination or keycode?

  • NOR-DAQ traditional to NOR-DAQmx

    I am a neophyte of LabVIEW.  I inherited a previous employee long gone from the company, so that I work a LabVIEW project.  The project has been written using NOR-traditional DAQ and I need some update OR-DAQmx so that it is 64-bit capable.  Of course, I ran into trouble with the VI first that I try to put in level.

    This VI was built with LabVIEW 2011 SP1 and I need to replace the Config AI, I start, I Read, Index channel, control and HAVE clear screw with their equivalents of NOR-DAQmx.  Upgrade to SP1 2013 LabVIEW is possible if that makes things easier.

    Now here is the tricky part.  I want to keep the terminals on this VI even if possible.  This VI is used in several places and a few different programs and I want to make the change as minimally invasive as possible.  If possible, I want the changes must be made within this VI.

    I am looking for any help and or advice. Thank you.

    First, abandon all hope to keep the same connector components.  It is possible, but it's foolish to try. (Just trust me, OK?)

    Read these articles in the knowledge base

    http://www.NI.com/white-paper/3021/en/

    http://www.NI.com/white-paper/4342/en/

    What you're trying requires skills usually not developed in a neophyte of LabVIEW. (And you start with the 'Spaghetti' code - this is not 'Fun') Do an internship of audit and meet with your representative local of NOR.  Chances are that some local expert advice will point you away from some serious mistakes.

    Take care

  • Using the DAQ USB-6009 meter and an analog input voltage at the same time.

    Hello

    Currently, I'm reading the two channels of voltage with the USB-6009. It happens that one of the channels is the output of a digital coder, and it would be much easier to use it directly to the PFIO entry that is defined as a counter. The problem I am facing right now, it's that I can't use the DAQ Assistant to use the analog voltage to a channel and the digital channel counter at the same time. Once I put the DAQ Assistant to read the input from analogue voltage, I won't be able to add analog inputs. And as I put the DAQ Assistant to use the PFIO as a counter, I can add more entries to read analog voltage is.

    I wonder if it is possible to solve this problem using the lower level data blocks? Another solution would be to read two channels in analog input voltage and that the use of Matlab to process data resulting from it, since I was not able to do the counting to work simultaneously with the acquisition in Labview to impulses.

    Hope you guys can help out me.

    Thanks in advance.

    Using a simple wizard of DAQ is incorrect. You need one to acquire analog inputs and one for the meter.

  • where is the function AI_VRead() defined, which is used in the AIonePoint.c file. ?

    Hello

    I installed the Ni DAQ software for 6024E card. As I walked through the code examples in Visual C, I came across AIonePoint.c file where the AI_VRead() function has been used. But I could not find the function definition. I would like to know where is the AI_VRead() function body is present.

    Kind regards

    Rakesh

    Hi Rakesh,

    AI_VRead() is exported from % SystemRoot%\system32\nidaq32.dll. The corresponding import library is %ProgramFiles%\National Instruments\NI-DAQ\Lib\nidaq32.lib. The source code of this function is not available.

    nidaq32.dll is part of NOR-traditional DAQ. If you are developing a new application, using the API OR-DAQmx newer is recommended. Transition of NOR-DAQ traditional (old) using ANSI C OR-DAQmx and NI LabWindows/CVI , contains more details about this.

    Brad

Maybe you are looking for