9401 line direction configuration in LabView

I use NI 9401 to measure a quadraure encoder. and I want 9401 to output 5VDC to drive my encoder. How to set the direction of the line for each port on the 9401 in Labview?

Hi godspeed13

A quick search reveals thisgreat KB on the configuration of the 9401. Looks like you want to have a task of digital output and a task of entry of the meter. With DAQmx you do not expliclitly all the dirrection for your two ports, just configure tasks and book and start them in the proper order so that DAQmx can set up the device before beginning to all tasks.

I would be very careful when you use a line of digital output to feed an encoder. Each line of output is only really planned for 1-2 my current output.

Luke

Tags: NI Hardware

Similar Questions

  • PXI-8145 RT configured with LabVIEW RT 2009 running EVS, is this possible?

    Hello

    I'm interested to know if the "EVS" (engine shared Variables) can run on a PXI-8145RT configured with LabVIEW RT 2009? My needs would be only a few Boolean variables. Did someone tried this configuration?

    Thank you

    Michel

    Hello

    Thank you for the information. The upgrade was successful.

    Michel

  • Go (argc and argv) command line argument to a LabVIEW built the shared library.

    Hello

    I correctly use this trick to create a LabVIEW application that runs on Linux without X display.

    http://digital.NI.com/public.nsf/allkb/5D6EC36DCF43343786257449006919E6

    I would like to know if it is possible to pass command line arguments (. / TEST A B C D) directly in the library shared without having to pass arguments using an array of strings that would need to write code using DSNewHandle, DSSetHandleSize, extract arguments and... (I'm not proficient in C, but if I don't have the choice, I'll do and improve my skills of C).

    int main(int argc, char *argv[])
    {
            Test(argc, argv);
            return 0;
    }
    

    Thank you

    Michel

    Well, you can always flatten it into a single string separated by a space and pass like that. Reverse basically what made the operating system, when he calls your main function with command line parameters. And while the first element of the array is always the name of the program itself you can just ignore that here, but then put shaped everything in a single string.

  • Direct download of LabVIEW?

    I am at home on my Mac, but I need to download a version of Windows in LabVIEW Professional of tomorrow. Is it possible to download the version of Win using a Mac? The problem is that the download of victory is a little .exe that contains a downloader. Now, when I was at work on the PC, it gave me the ability to use a downloader or a direct download, but I can't find this option on my Mac.

    Can anyone help?

    Hi ToeCutter,

    Direct download can be found here:

    LabVIEW 2013 32-bit (Windows)

    http://Joule.NI.com/nidu/CDs/view/p/ID/3980/lang/en

    Kind regards

  • How to generate pulses on the digital i/o lines? USB-6211 labview 8.5

    I want to generate a 5ms pulse on one of the lines of digital output that will be more used to delay the acquisition, DAQ.

    Thank you

    You will need to use counters to generate a digital pulse. I ask you to take a look in the examples that come with the DAQmx driver (in LabVIEW, help goto-> find examples).  You can look for impulses and select generate Dig Pulse.vi. If you have questions, after return!

  • How to remove a configuration of rman line!

    Dear friends,

    RMAN has a default configuration settings, i.e.:
    RMAN > show all.

    RMAN configuration parameters are:
    CONFIGURE REDUNDANCY 1 RETENTION STRATEGY; # by default
    CONFIGURE BACKUP OPTIMIZATION # by default
    SET UP DEFAULT DISK DEVICE TYPE;
    CONFIGURE CONTROLFILE AUTOBACKUP # by default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO "%F" # by default
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    SET UP THE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP COPIES OF DATA FILE FOR DEVICE TYPE SBT_TAPE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE SBT_TAPE TO 1; # by default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / orafs/app/oracle/10.2.0/db_1/dbs/snapcf_ababil.f'; # default
    end of test, I must add the below two lines:

    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ' / dev/rmt1/ababil_%s_%t';
    CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT ' / dev/rmt1/ababil_%s_%t';


    And now the configuration of shows like below:
    RMAN > show all.

    RMAN configuration parameters are:
    CONFIGURE REDUNDANCY 1 RETENTION STRATEGY; # by default
    CONFIGURE BACKUP OPTIMIZATION # by default
    SET UP DEFAULT DISK DEVICE TYPE;
    CONFIGURE CONTROLFILE AUTOBACKUP # by default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE SBT_TAPE TO "%F" # by default
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    SET UP THE DEVICE TYPE SBT_TAPE PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP COPIES OF DATA FILE FOR DEVICE TYPE SBT_TAPE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE SBT_TAPE TO 1; # by default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / orafs/app/oracle/10.2.0/db_1/dbs/snapcf_ababil.f'; # default
    now would someone please tell me, on top of the RMAN configuration, how do I remove the lines below:

    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ' / dev/rmt1/ababil_%s_%t';
    CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' FORMAT ' / dev/rmt1/ababil_%s_%t';


    Waiting for kind response...

    NO, you can clear the settings only. You can't delete lines.

    Concerning
    Asif Kabir

  • How to use Airport Extreme with ethernet leased line

    Hello friends,

    I was wondering if Airport Extreme is a true router, can I connect gout ethernet of my leased line directly in its WAN port, rather than put the provided ISP router between the two? I have lived many positions and all seem to suggest the connection of a cable/dsl modem to the WAN port on the extreme. Not found any information where it shows the ethernet line rented directly linking in the Giga WAN port, without any 2nd device in the meantime.

    If it's possible, then I guess also what public IP provided PSI can be put into the WAN of AE interface. Can someone develop more on it and detail the steps of configuration? Given that EI has basic firewall NAT, I think it's doable, but can someone confirm please.

    Thank you very much.

    Temporarily, if you connect your computer directly to the Ethernet line, can you get a good connection Internet in this way?

    If so, then AIrPort Extreme could function as a router for you, but you are also likely to face a Double NAT error on the network. How well... or, even if... This might work cannot be known until try you it.

    If the computer cannot connect, then what is required of your supplier for the computer to connect and get Internet access?

  • WSN NI 9792 safety 1.2: initial configuration? By default the username and password?

    Hello

    With NI WSN 1.1, using a 9792, I can click on the button set the permissions, and if none had been defined would simply ask me a new administrator password.  Now with NI WSN 1.2, when I click on the button set the permissions he takes me to the web interface of the 9792 and said "nobody is connected or you don't have permissions to view/edit users, groups, and permissions.»  When I click on the "connect" button, a box opens and asks me a username and password.  I scoured the notes version of the help files and the internet, and it seems there is NO documentation on how to set up the first name of username/password combination, or it indicates what combination of username/password default username there might be.  I also tried a brand new 9792 straight out of the box and load of 1.2 to this subject and it has the same problem.  Is there something obvious that I'm missing?  How a person initially configure security on the 9792?

    Hello, Garrett,.

    Thanks for your post!

    Looks like you're having need for information on how to find the information of your 9792 newspaper. When you use NEITHER-WSN 1.1 allowed us users to define the initial password and this is still the case for the 9791. The 9792 is a gateway OR WSN node and a target time LabVIEW Real-time. Its default log in information or lie in a (KB) Knowledge Base using LabVIEW or helping MAX. You use LabVIEW 2009 SP1 or LabVIEW 2010?

    The default name of the user and the password is the following:

    user name: admin

    password:

    KO

    By default the username and password for the newspaper in a real-time controller

    http://digital.NI.com/public.nsf/allkb/14D8257A7724BE85862577F90071B73F

    Help of LabVIEW

    Start > all programs > National Instruments > xx LabVIEW > LabVIEW help

    Then go to... Fundamentasl > working with egalitarian and target > how-to > control and configure a remote device from a Web browser

    Help MAX

    Open MAX > help > MAX Help (can also press F1 if open MAX)

    Then go to... Help MAX remote systems > LabVIEW Real-time targets Configuration > Device Configuration > logging into your system

    The help link above LabVIEW is called in 9792 under Related Documentation start guide that directs you using LabVIEW.

    NEITHER Wireless Sensor Network Getting Started Guide

    http://www.NI.com/PDF/manuals/372781c.PDF

    Is the information you were looking for? Please indicate if there is something else we can do.

    See you soon

    Corby

    WSN PES OF R & D

  • LabVIEW 2010 help control Source code...

    I'm trying to set up Tortoise SVN to work with LabVIEW 2010.  I was able to get lvmerge and lvcompare to work by adding them to the list of programs within the turtle, but leave in LabVIEW there is a section to configure the source control I have a problem with.  Under "Configure Source code control" there is a drop down to the name of the Source control provider.  There is only one option: < none=""> .  I looked into it a bit online and found that LabVIEW running in Windows searches the registry database for a list of the sources of control.  I don't know exactly what he's looking for in the registry, but maybe I could make an entry in the registry to get LabVIEW see Tortoise SVN.  Anyone had this problem or any experience with this?

    To use the NCC options provided by LabVIEW you will need from a provider. For subversion, it is possible with the PushOK SVN SCC plugin.

    If you install you can checkin/checkout directly from the LabVIEW project environment.

    If you really like TortoiseSVN discover the Tortoise SVN integration made by JKI-software.

    Tone

    PS there is nothing special about 2010 in the integration of the CSC.

  • Load a file in tiara with a use using LabVIEW

    Is it possible to load a file into tiara with a use that is customized by using LabVIEW.  I looked through the palette and see nothing.

    Hi Siriusly,

    I've added 2 additional lines of configuration of trainer to the use, and now that the last row of empty values has disappeared from a single file you sent me.

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • Error 1097 when calling DLLS in LabView

    I get an error 1097 when calling the LabVIEW provider library. Curiously, the error, the DLL routines still seem to do what is asked of them.  This is the test code.  It opens an Ethernet connection to a controller of axes Galil, he asks (possibly) the value of its internal clock, and then closes the connection.  Each call library function returns error 1097 but "valve function" I32 error number is always zero. Open function causes the connection to be opened, the command function causes the send command and receives a reasonable answer, narrow funtion seems to cause the connection to be closed.

    Here is what I see when I run the test:

    Also directly configure call-library functions, as I did in this VI, I also tried using the import-shared-library Wizard to create a vilib of functions of the DLL and I get the same behavior and errors when I use these functions.  I tried to tweak some of the data types in my configured manually call library functions to see if I could find a combination that worked better with the library, but had no luck there.

    I use the x 86 version of the DLL with v2014 LabVIEW 32-bit on a 64 bit windows system 7.  I see that the error on the two computer systems of different work configured in this way. I see a similar error on a home computer with just the RTE of 2014 installed. The manufacturer says they can not reproduce the error. I always saw the error over multiple versions of their library DLL.

    In the attachment ZIP it has a link to the DLL library on the manufacturer's website. There is also a copy of the VI, the DLL and a large part of how-to-use documentation that accompanies the DLL.

    I was hoping that someone who was familiar with the use of the call-library function might take a peek at what I do and see if an error could be spotted.

    Unable to find an error, I did, I would be happy to suggestions on how I could solve this. Little seems to me like there may be a problem with the library. The manufacturer, Galil, said that they have opened a log with OR to see if NEITHER could help but since Galil said they can not reproduce the problem and provide an example of the NC, it really went anywhere.

    Given the decoration of symbol names as exported by the DLL I "m convinced that you must change the stdcall calling convention.

  • return on investment for the profile line variable

    Hello

    I built a vi with vision assistant, where the profile of a single horizontal line is included. If the acquired image had the X, Y coordinate system, I want to extend the vi so that it updates all possible horizontal lineprofiles (X 1/Y0 to X 1/Yn) line (Y0/Xn to Xn/Yn) in this order. So I have to vary the return on investment (line), but how is this possible? I have no experience in labview, so it's hard for me with the data of different types and functions.

    Thanks for help

    Hi Blue12,

    You may not need to create a return on investment for each line. You can get information on line directly with "IMAQ-profile line. You can directly enter the coordinates of your line and out of the profile.

    Please save yourself frustration and get LabVIEW training before attempting to implement applications.

    Best regards, Topper

  • Launch the operator of TestStand, LabVIEW Interface via ActiveX

    Hello

    I create a simple VI in which I select a product in a list number and press Go. The VI is used to ensure that the most recent sequence file is open and is not inteneded to replace the OI, simply start with a single click.

    I don't know that I am takign the right approach at all, that I know very little about ActiveX, but am trying to learn! When I run the VI, I am prompted to select a file sequence and connection, and that's all. TestStand windows never appears. It's just a setting that is incorrect, or will the approach I take work, as I am access API instead of just opeing the application?

    I removed all the extra features (dropdown list, the configuration file, etc.) from the code included as it works very well.

    Any help would be appreciated.

    Kevin

    What you do are from TestStand without the interface, and then you set the sequence to use.  I think that there is another necessary step indicating the sequence to start really and not only the application.

    It looks like no this is what you want to do, because the intention is that you can then use these tools ActiveX to create sequence files, or run them, without running the sequence editor which is what you normally see when you run TestStand.

    I've never tried, but you can look at this article on the launch of sequence files from the command line which allows to LabVIEW.

    http://digital.NI.com/public.nsf/WebSearch/146D372C1F807E6D862567E7004881AB?OpenDocument

  • Connections of encoder with cDAQ 9401

    I hope that some of the experts here can help me with this as I am new to encoders. I want to make sure I connect this right but am finding conflicting information on this subject. I found this tutorialwhich shed some light on some things for me.  If I interpret it correctly, 9401 card that I use (with 9172 chassis) can provide 5 VDC needed excitement for the encoder on any unused line. However, I have seen a response to an applications engineer OR which suggests an external power supply is necessary to this thread.

    So my first question is if I need an external power supply.

    Secondly, I have an encoder with 8 sons and am a bit uncertain to know if I need to connect each of them for my angular position measurement, I don't see any reference to A', B ', Z' in the documentation I found. Here is the datasheet for the encoder I use, in line driver configuration (I think it's x 2).

    I have also attached a picture of the stitching and the configuration of the meter for this encoder for someone who won't get the full data sheet.

    Thank you in advance to anyone who can help!

    Hi Johnny,.

    In this case, as we have said before, this module won't be able to excite your encoder properly using digital lines. It will not be able to provide the full 5V on a given channel output. Also, since the input for your encoder voltage is 4.75V minimum, you will need an external power supply. Who will provide the adequate power to drive this encoder. As long as you can excite the encoder properly, this module should be good to read the signals and interpret them for angular position measurement.

    Chris

  • Configure the input voltage range

    I use an NI USB-6221 with SignalExpress 3.0 card.

    The Spec for the 6221 map specifies 4 analog input ranges of +/-10V, 5, 1, & 0.2.

    My question, how is the range of input voltage on the map on one of the beaches specified?

    The closest thing I can find in SignalExpress is step 'DAQmx aquire', looking at the tab "configuration" of "Configuring the stage." There is a group called 'settings', there are areas of maximum and minimum input Signal, but context-sensitive help indicates that it is expected for the channel after the scaling values.

    I also looked into MAX, but I see no way for me to directly configure one of these ranges.

    Can someone explain how this works?

    Mike

    You look at the right thing. When you specify the min and max, the DAQmx driver and then automatically selects the best range of this signal. For example, the Council supports + /. 1 + /-1, at ± 5 and ± varies from 10 volts and a jury of 12 bits. If you enter max/min to + /-2, the jury will be set to the +/-5 volt range. Your resolution is then 10 (oscillation of the total voltage) volts divided by 4096 (2 * 12).

    If you were using LabVIEW, you can get the actual voltage selected range by using channel properties DAQmx AI. Rng.High and I. Rng.Low. If you specify a min and max that is less than the amplitude of the real signal is greater than the actual scale used, then you cut your input signal. DAQmx does not have an autoscale. Take a look at Page 4-2 in the Manual of the M series.

Maybe you are looking for