6501DAQMX digital line count wrong

I'm trying to set up a simple DAQ application driving only 4 DAQ output lines (see attached screenshot). I identified FOUR data lines, Port 2, lines 0:3, which I expect to be P2.0,P2.1,P2.2,P2.3, and set up the FOUR boolean inputs for same. Error message tells me I have FIVE channels in my task, not FOUR. Can someone explain where the FIFTH channel is?

hammer3 wrote:
Problem attaching. . again.
Do you have "compatibility" mode turned on?  Also try with another browser.
Problem Uploading Attachments
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • PCI 6602:How can I use the digital lines of the board and in the same time to generate pulse train using a counter?

    Hello!
    My problem appeared when I tried to update my code from Traditional NI-DAQ Legacy to DAQmx.
    I am using 2 counters (counter 5 and counter 7)  from PCI-6602, to generate pulse train, and also the Digital I/O lines of the port 0 (the lines form 0 to 7). What I do in my application is that I am starting to generate the pulse train on the output of the 2 counters, and after that I am playing with the state of the digital lines.
    In traditional there was no problem using the counters and the digital lines in the same time, everything was going perfectly, but in DAQmx this is not possible.
    What happens: I start to generate pulse train on the output of the counters,  no errors encountered, but when I try to modify the state of one line of the digital port the generation of the pulse train is stopped. This is happening when I start the task associated to the digital port.
    My question is: it is possible to create a channel on the digital lines without altered the channels created for the counters?
    Another thing what I manage to see using the  "Measurement & Automation Explorer" and Test panels for PCI-6602, basically is the same thing, I generate pulse train on the output of the counter 7 and try to start a task on the digital line, but I get one error :
    "Error -200022 occurred at Test Panel
    Possible Reason(s):
    Measurements: Resource requested by this task has already been reserved by a different task.
    Device: Dev4
    Terminal: PFI8"
    Instead if I use the counter 0 or counter 1 to generate pulse train I don't encounter the same problem.
    Which resources are used by the counters 2 to 7 from the PCI-6602 board and the counters 0 and 1 do not use?
    Thank in advance for any replies!
    Ciprian
    Solved!
    Go to Solution.

    Hello Jordan, thank you for your reply.
    I am sorry but I can not see or run your example, I don't use LabView, I use Visual C++ for developing.
    Here is the code for generating the pulse train:
    GeneratePulseTrain(unsigned long ulCount1, unsigned long ulCount2)
        short nStatus = 0;
        nStatus = DAQmxCreateTask("",&m_taskHandle);
        nStatus = DAQmxCreateCOPulseChanTicks (m_taskHandle, "Dev4/count5", "", NULL, DAQmx_Val_Low, 0.0, ulCount1,ulCount2);
        if( bTriggerMode == true) // if hardware trigger is enabled
            nStatus = DAQmxSetTrigAttribute (m_taskHandle, DAQmx_ArmStartTrig_Type, DAQmx_Val_DigEdge);
            nStatus = DAQmxSetTrigAttribute (m_taskHandle, DAQmx_DigEdge_ArmStartTrig_Edge, DAQmx_Val_Rising);
            nStatus = DAQmxSetTrigAttribute (m_taskHandle, DAQmx_DigEdge_ArmStartTrig_Src,"Dev4/PFI17" );
        //set the internal timebase
        nStatus = DAQmxSetCOCtrTimebaseSrc(m_taskHandle,"Dev4/count5","20MHzTimeBase" );
        nStatus = DAQmxStartTask(m_taskHandle);
        return nStatus;
    And the code where I try to set the digital line:
    SetChannelState(short nState)
        short nStatus = 0;
        uInt8 wrtBuf0[1]={0};
        nStatus = DAQmxCreateTask("",&m_taskHandle);
        // Configure line as output 
        nStatus = DAQmxCreateDOChan (m_taskHandle, "Dev4/port0/line0", "", DAQmx_Val_ChanPerLine);
        nStatus = DAQmxStartTask(m_taskHandle);
        wrtBuf0[0] = nState;
        nStatus =DAQmxWriteDigitalLines (m_taskHandle, 1, 0, 0, DAQmx_Val_GroupByScanNumber , wrtBuf0, NULL, NULL);
        nStatus = DAQmxWaitUntilTaskDone(m_taskHandle,10);
        nStatus = DAQmxStopTask(m_taskHandle);
        nStatus = DAQmxClearTask(m_taskHandle);
        m_taskHandle = 0;
        return nStatus;      

  • Arming a counter polling a digital line

    For arming a counter, a start trigger on the STC counter can be roughly emulated by polling a digital line and arming the counter once a high digital pulse is sensed. How can i do that?
    I'm using a PCI-MIO-16E-4

    Daniel,
    You did not mention which programming environment you are using, so I will describe the structure in LabVIEW (no matter which language you are using, this should give you the general idea).
    1. Configure your DIO port with DIO Port Config.vi.
    2. Configure your counter operation (Counter Group Config.vi, etc.).
    3. In a while loop, call DIO Port Read.vi.
    4. Monitor the bit corresponding to your trigger line. When this bit goes high, stop the while loop.
    5. Immediately after the while loop, call Counter Control.vi to arm your counter.
    This should be the basic structure of your program. Good luck with your application.
    Spencer S.

  • Director 11 line.count problem?

    Hi all. My name is Natassa and this is my first time here!
    I am not new with Director, but can't figure out the
    following!
    There seems to be something wrong when working with text
    members regarding the line.count property. In our project, i parse
    through XML files and store data in text members which are placed
    on stage and run a mouseOver script using pointToLine(the mouseLoc)
    in order to change the color of the "active" line of the text
    member.
    The XML files are all utf-8 encoded, since we have english,
    greek and french text.
    I use a repeat loop so as to fill a text member with some
    titles.
    I have tried everything i could think of and could not solve
    my problem. So, i thought i should try something very basic and
    figure out what is going on.
    Nothing seems to be working!
    I have run the following basic scripts with the following
    output:
    Example A
    script:
    --I use numToChar(940) which is a greek character, since in
    our project we have english, greek, french all utf-8 encoded
    member("myText").text=""
    repeat with i=1 to 300
    myString = " line " & numToChar(940) &
    numToChar(940) & numToChar(940) & numToChar(940) & i
    member("myText").line[ i ] =myString
    put i,member("myText").line[ i ],
    member("myText").line.count
    end repeat
    Message window output:
    -- 1 " line άάάά1" 1
    -- 2 " line άάάά2" 2
    . (everything ok so far)
    -- 232 " line άάάά232" 232
    -- 233 " line άάάά233" 233
    -- 234 " line άάάά234" 208
    -- 235 "" 235 HERE IS THE PROBLEM - NO STING STORED IN THE
    TEXT MEMBER AFTER THIS LINE
    -- 236 "" 236
    -- 237 "" 237
    -- 299 "" 299
    -- 300 "" 300
    put member("myText").line.count
    -- 300
    put member("myText").line[300]
    Example B
    script:
    --I use numToChar(940) which is a greek character, since in
    our project we have english, greek, french all utf-8 encoded
    member("myText").text=""
    repeat with i=1 to 300
    myString = " line " & numToChar(940) &
    numToChar(940) & numToChar(940) & numToChar(940) & i
    member("myText").setContentsAfter(RETURN & myString)
    put i,member("myText").line[ i ],
    member("myText").line.count
    end repeat
    Message window output:
    -- 1 " line άάάά1" 2
    -- 2 " line άάάά2" 3
    . (everything ok so far)
    -- 232 " line άάάά232" 233
    -- 233 " line άάάά233" 234
    -- 234 " line άάάά234" 209 HERE IS THE
    PROBLEM - line.count DOES NOT WORK CORRECTLY
    -- 235 " line άάάά235" 210
    -- 299 " line άάάά299" 274
    -- 300 " line άάάά300" 275
    put member("clippings").line.count
    -- 275
    -- But if i copy the text of the member and paste it into a
    text editor, there are 300 lines!!!
    put member("clippings").line[300]
    -- " line άάάά300"
    As a result, the pointToLine(the mouse Loc) is not working
    well! The mouse is over a line and a different line has the
    "active" color...
    As you can see, the problem occurs after line 234!! :-|
    Does anyone else have the same problem? I have a deadline and
    can't figure out what to do!!
    p.s. I updated a director MX file to a director 11 file. A
    text member (contains greek and latin characters) opened in MX has
    a line.count of 384 (correct) and the same member opened in 11 gave
    a line.count of 275!!!!! Again the same problem with
    pointToLine()...

    >
    Example A
    >
    > -- 233 " line ????233" 233
    > -- 234 " line ????234" 208
    > -- 235 "" 235 HERE IS THE PROBLEM - NO STING STORED IN
    THE TEXT MEMBER
    > AFTER THIS LINE
    FWIW: I can replicate this problem, and it doesn't occur in
    DMX2004, so
    it's a new bug. It seems that line 234 gets the line number
    wrong (208)
    and it all turns to custard after that
    >
    Example B
    >
    > -- 232 " line ????232" 233
    > -- 233 " line ????233" 234
    > -- 234 " line ????234" 209 HERE IS THE PROBLEM -
    line.count DOES NOT WORK
    > CORRECTLY
    > -- 235 " line ????235" 210
    And I can replicate this too.
    However, I can "fix" your second example by referencing
    member.text.line
    instead of member.line. See the following alteration to your
    original
    handler:
    on test2
    member("myText").text=""
    c = numToChar(940)
    s = "line " & c & c & c & c
    repeat with i=1 to 300
    member("myText").setContentsAfter(RETURN & s & i)
    put i, member("myText").text.line
    , member("myText").text.line.count
    end repeat
    end
    I can't find a fix for your first example in a similar
    fashion. It's not
    permitted to execute member("myText").text.line =
    "string"
    > As a result, the pointToLine(the mouse Loc) is not
    working well! The mouse is
    > over a line and a different line has the "active"
    color...
    > p.s. I updated a director MX file to a director 11 file.
    A text member
    > (contains greek and latin characters) opened in MX has a
    line.count of 384
    > (correct) and the same member opened in 11 gave a
    line.count of 275!!!!! Again
    > the same problem with pointToLine()...
    Try instead measuring member.text.line.count instead of
    member.line.count
    I will try to replicate the pointToLine() issue and see if I
    can find a
    workaround.

  • Time Controlled digital line PXI-6251

    Hi,
    I need to create a time controlled boolean.
    For example a digital line is set to False. I'd like to change to True status for a certain amount of time (e.g. 150ms).
    Is it possible with PXI 6251?
    Thanks

    Hi,
    yes you can. Set a buffered digital output task like "Digital - Finit Output.vi" example.
    You can use an external clock, generate it throught counter output or use ananog in/out sample clock.

  • Write to digital line and wait 20 mico sec and aquisition

    i have DIO-32HS and PCI-6036E. i want to select a port by writing to digital port or line and then wait for 20 micro sec after thar i have to aquire data from AI.my problem is waiting 20 microseconds how i can achieve this?E-mail id:[email protected]

    Here is what I suggest. I'm assuming you will use the DIO-32HS for writing to the digital line. You could use that digital line as a trigger for a counter on the PCI-6036E. When the counter is triggered, it could generate a single pulse with a delay of 20 microseconds and that pulse could be used as a trigger for analog input on the PCI-6036E.
    There are LabVIEW shipping examples that will illustrate how to setup triggered counter and analog input applications. I hope this helps.
    Regards,
    Todd D.
    Applications Engineer
    National Instruments

  • Reading digital line and local variable

    I am using digital lines in my program to start and stop "Flat Sequence Structures"
    like time measurement ( 4 sequence, start and stop time with "Tick Count" )
    Is it good behaviour if i use once "Read from Digital Line.vi" and other starts and stops etc. with Local variables?
    Or can i just use "Read from Digital Line.vi" many times in my VI? (same line)

    Most experienced LV programmers try to avoid both sequence structures and local (and global) variables. The state machine architecture is often preferred. Look at the examples with LV and search for "State machine" on this site.
    I would probably use one read line or read port VI in a loop and pass the data to other, independent loops for processing (the timing) via queues.
    Lynn

  • Order of delivery schedule line counter at schedule agreements from MRP run

    Currently we are using schedule agreements for our long term external suppliers, but we are facing a problem with the order of new delivery schedule lines created during MRP run.
    Because of master data settings like, lot size, rounding value, plan delivery time and planning time fence to set as firm new requirements, multiple schedule lines are created with no order for schedule line counter.
    Does anyone is aware of a BADI, user exit or customizing control to have this schedule line counter in order?
    Thank you
    Daniel Guillen
    IT
    Skyworks Inc.

    Hi,
    Pls put this query in SD fourms  and get immly help because this is technical fourms.
    Anil

  • Multiple small stories with variable line counts assigned to different editors

    I have a "best practice" question for you more experienced InCopy users about what workflow you recommend for my specific issue. I am experienced in InDesign, but am a InCopy newbie. I want to make sure I'm not missing a solution because my lack of experience with InCopy may be causing me not to see the forest for the trees.
    Short version: What is the best way to allow multiple editors access to each of multiple small stories separately (one story per editor), but to allow the line count of each story to be variable each week, while adjusting the rest of the stories along with it on the page (see image below)?
    Details: My publishing company's workflow is on CS6 with editors working in Word, and we're upgrading to CC2014 with InCopy. We have 7 in-house editors, and all files on an in-house server. We have quick deadlines (some are 15 minutes from editor writing copy to transmitting publication to subscribers). In the example below, we have 10 sections, and I have all seven editors writing different sections at the same time. A final editor has control over fitting the final page. My INDD files to test the new workflow use an assignment-based workflow. I understand I can place each of these sections as their own story, under the same assignment, so a different editor can have them checked out. However, each section does not have the same line count from week to week. Markets with more activity will get more lines.
    In our current workflow, we have multiple rough Word docs pulled into one master doc with a script, that the final editor edits to fit, so each section can be a different number of lines as long as the total is the same. Then production staff load it in. When we upgrade, we can use a hybrid workflow where the final editor just loads that final Word doc into one InCopy story and edits it to fit.
    It would be great if I just didn't understand how to make the text height variable for the story each editor is typing, and auto-adjust so the next story starts below where the story above it ends, and you all had an idea how I can do it!
    Thanks! Nancy

    I disagree to Seshu's answer to question 1.
    Correct answer of question 1 is C and <u><b>not A.</b></u>
    Sorry I didn't find time to check the rest.
    <u>To the examinee</u>
    I wouldn't assume all answers from SDN-ers are correct if my certification exam was knocking the door! I would rather try and find out the correct answers myself from the system instead of mugging these answers without any understanding of the technology involved! Find out the answers yourself from the system...that way it will help you to understand why the answer is 'C' and not 'A'...just knowing the answer is 'C' is not good enough...one has to understand "why" its 'C' and not 'A'. Hope you get my point! Good luck.

  • Link between Delivery schedule line counter from PO and the material docume

    Dear Gurus,
    I have one PO with single line item having delivery schedule -
    Material 1 -
    delivery schedule 01.01.2009     2000
                                                         01.03.2009    5000
    I have received quantity against this Po
    I want to know where I can find the link between Delivery schedule line counter from PO and the material document
    Best regards
    Sar

    There is no link from the MAterial document line item (Table Mseg) to the PO Schedule Line (EKET).
    If this is for Evaluating an on time delivery or GR, you may consider the following approach.
    PO details Po Date  QTY
    Sch1   01Jun2009   200   
    SCH2  08Jun2009   100
    GR Details
    GR1   01Jun2009   180
    GR2   07Jun2009   110
    GR3  09Jun2009      10
    Calculate a *** total qty for the PO Line.
    PO details Po Date  CUMUL QTY
    Sch1   01Jun2009   200   
    SCH2  08Jun2009   300
    Calculate a *** total qty for the ontime GR.
    PO details Po Date  CUMUL PO QTY  CUMUL GR on time
    Sch1   01Jun2009   200                180
    SCH2  08Jun2009   300                 290 (180+110)  the 3rd GR was too late
    Evaluate the PO SChedule Lines as follows:
    Po SCL qty + CUMUL GR QTY - CUMUL PO QTY = ADJ GR ON Time Qty
    SCH1 01Jun2009
    200 + 180 - 200 = 180 on time for 01Jun2009 date ( 90% fill rate)
    SCH2 08Jun2009
    100 + 290 - 300 = 90 on time for 08Jun2009 date (90 % fill rate) the first 20 of the GR on 07Jun2009 went to fill the late, early date.
    Best of luck !
    SCH2 100 +290 - 300 = 90 on time for 07Jun2009 date

  • Multiple VI's using different digital lines in one VI.

    I have created multiple vi's, each of which require either reading or wroting to a different digital line on the CB-68LP board. I need to put them all in one individual vi so that I can see everything on the front panel. When I have tried this the vi seems to send a confused signal and operate things which it shouldn't.
    Is it even possible to try and do what I am doing? If not, any ideas what I can do? Thanks.

    Multiple VIs are usually the better approach. What I would suggest is parallel loops. These are loops which do not have any data dependency on each other. One handles the User Interface - the front panel where you "see everything." Another which reads and writes from/to the digital lines. Maybe even a third which processes the data. Exchange data among the loops with queues or functional globals.
    Keep a record of the state of all the digital lines. When something is to be written to certain lines, use either a Write Line.VI ( I don't recall the exact name) or use AND and OR functions with masks to protect the states of line you do not want to change.
    BTW, the CB-68LP is merely a connection interface, not the digital I/O baord itself.
    Lynn

  • Report:Setting the line-count in the output automatically

    i want to set the line-count in the report automatically irrespective of screen resolution.could you please explain.

    hi,
    try this,
    report zrich_0001  line-count 25(4).
    reward points if useful,
    regards,
    Raj,

  • How does one write to individual digital lines accross many DIO-96 ports?

    I want to be able to write to any individual DIO-96 line without having to repeatedly init. The available vi's can set up only 24 lines at a time. If it is desired to write to a line outside of those 24, another 24 lines must be initialized, then to return to the first 24 lines, those must be initialized once again. Very clumsy! Does anyone know how to init all lines one time and then allow random access to all 96 lines without further initialization?
    Thanks,
    CBD

    Hi Tom,
    try to use (or at least to insert) that control in another environment (like a Visual Basic form) in order to check if it's working properly. Also, check if you have the DLL with the same name in your system folder - this control it's just a simpler way to use that dll.
    You can use Write to Digital Line.VI, but pay attention to ITERATION terminal - if it is 0(default) LV will call DIO Port Config (find details in help).
    Hope I understood the problem...

  • Pxie-6556 - How to control the rise time in the digital lines (hsdio)

    Hi,
    Is there any way to control the rise time in the PXIe-6556 digital lines?
    Even in a low frequency signal 10kHz the rise time is about 2ns.  
    Tks,
    Solved!
    Go to Solution.

    Hello engfpe,
    The PXIe-6556 is a 50 Ohm system, meaning the output is source series terminated to be 50 Ohms and all our cables and accessories are 50 Ohms.  With this setup regardless of the data rate you should have a clean rising or falling edge regardless of the data rate. The quality of the output (rising or falling edge) at your device will be related to the impedance matching of your cables. 
    The PXIe-6556 cannot adjust the slew rate by itself.  However you can insert some simple passive components to do this for you.  I've attached below to images.  The first is a schematic showing one way of slowing down the edge.  The second is the a simulated waveform showing the original edge rate before slowing it down, and the slowed down edge.   This simulation is not of the PXIe-6556 but instead a generic digital output for concept.  In the schematic R1 is set to 34 Ohms because U1.8 has the additional 16 Ohms inside it.  TL1 is the 50 Ohm output simulating the cable on the PXIe-6556.  R2, R3 and C1 are components you could insert after the PXIe-6556 cable before it goes to your device/cables.  In this setup the cable going to your device is TL2 which is also 50 Ohms but it could be another impedance in which case you would change R3 to match.
    You can see in the attached images you can significantly slow down the edge with this setup by altering C1.  I hope this helps,
    Jesse O. | National Instruments R&D
    Attachments:
    edge_compare_schematic.jpg ‏94 KB
    edge_compare_waveform.jpg ‏44 KB

  • Varying the line count in every page

    Hi All..
    I want to vary the line count in a page in my report.
    I have mentioned the line size n line count at the starting of the report, n it prints the same no of lines in every page but in the subsequent pages , I want to increase the line count .
    How can I do that ? 
    Thanks.

    Hi Naimesh..
    thanks for the reply .
    well,the code u suggested does not work..NEW-PAGE is jus a standalone command with which the line count cannot be associated.
    I actually have some header details that shud only appear on 1st page , n basing on the line count all works fine on 1st page ..but on the 2nd page the header details ned not appear , so only the itab details are getting printed , so the sy-tabix value remains the same but the line count is less than the 1st page leaving some space at the bottom of the page .
    And in the subsequent pages the printing takes place but from the begining of the page n also leaving more space at the bottom of the page.
    I want that equal no of lines get printed each page , also leaving equal no of lines at the bottom of each page.
    Hope I'm  sounding clear.
    Any answers ?
    Thanks.
    Sangeet.

Maybe you are looking for

  • The operation is not allowed for result set type FORWARD_ONLY

    Hi, I am trying to use scroll insensitive resultset in following manner- Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY); ResultSet rs = stmt.executeQuery("some sql here"); rs.last(); but the rs.last(

  • Folders count for 25,000 mailboxes?

    Hello, I am trying to get the folders count for each mailbox of our environment: [PS] C:\Windows\system32>$mbx|select Displayname,@{n="FolderIdCount";e={(get-mailboxfolderstatistics -id $_.Identity | s elect FolderId).count}} | Sort-Object -Property

  • Nokia 620 melting usb port

    18 month old phone. Plugged in to top up the charge. Usual charger, usual cable. 20 minutes later smoke and meltdown. USB port dripping melted plastic. Burnt finger. A quick goggle and a search on here. I am not alone it seems. Does anyone have a tec

  • Changing name and password

    Hello folks, when I first started my new MBP, it guided me through all those questions regarding Name, Address, Password, etc. I am planing to sell this computer now, so I would like to delete, or change all these information. Could anyone give me so

  • Hide 'Change Layout' button from alv toolbar

    Hello All, can anyone let me know how can we hide the change layout button or exclude the change layout button from the ALV tool bar using OOPS . what's the fcode for it. Thank You ! Ravi