Illegal operation occures running a 'Write Digital Line' vi in Test Executive

I'm switching a single line of a PCI DIO 96.

Hi,
I have a PC set up with Labview 5 and Test executive 5.1. I'm trying to create a vi that can be run in test exec that will allow me to control any of the DIO lines of a PCI DIO 96. When I put the vi in a sequence and try to exit the edit screen the Test exec stops and an 'illegal operation' window appears.
I have also tryed this with the DIO example that comes with labview 'Write 1 point to digital line.vi' and the same occurs.
I hope this explains it better.
Many thanks
Rob

Similar Messages

  • Warning 200015 occurred at DAQmx Write (Digital Wfm 1Chan NSamp).vi:4

    Hi,
    Attached is the VI I write. But there is a warning: Warning 200015 occurred at DAQmx Write (Digital Wfm 1Chan NSamp).vi:4
    I want to use digital channel to create an output. The duty cycle change from 30% to 50% to 70%. At the same time, measure the input of another 2 channels.
    Do you have any idea about this?
    Thanks.
    Attachments:
    Digital pulse_DO Channel-1_mod2.vi ‏39 KB

    Hello,
    The situation that you are seeing here can be identified as 'glitching'.  Glitching occurs where there is potential for previous samples in a buffer to be mixed in with newer samples written into the buffer, causing a signal output that is a mix between the old and new data you are trying to output.  In the DAQmx Help document, search for 'glitching' and you will be directed to an article which explains glitching, mentions Warning 200015 is thrown where there is a potential for this to happen, and then offers suggestions on how to work around this issue, as well as two pictures that clarifies what could happen with glitching.
    This warning pops up in your application since you are writing one set of data and then writing a second set of data afterwards.  If you do not see glitching on your signal, you can modify your code to ignore this warning.  Read through the help document for suggestions on modifications that will work for your application.
    Kyle A.
    National Instruments
    High Speed Digital I/O Product Support Engineer - R&D

  • Error -200428 Occurred at DAQmx Write (Digital Bool 1Line 1Point).vi

    The working program started giving this program after we have had a hard_disk crash. We are just using the program that was backed up. Will appreciate any suggestions on this one. 
    Naresh

    Have you read the explanation for the error and did you verify the task or virtual channels exist?

  • What is labview digital write-to-line logic high voltage?

    i'm using a pci-6503 daq hardware and cb-50lp.I'm currently doing a project to interface a labview vi to a programmable chip(downloaded with a vhdl program),using the daq hardware.The chip must function according to the labview program.I'm using 2 digital write-to-lines and 6 digital read-from-lines to interface to the chip.
    Problem:
    the 6 digital read-from-lines are able to read from the chip,but the 2 digital write-to-lines are unable to reach a logic high of 5v.This means that the labview vi can only read and unable to write to the chip to function(only one way communication).In the daq wizard,when using the test panel to test the individual lines of port a,b and c,it is able to write a good
    logic low and good logic high(5v),even when all the lines are being used altogther.But when the labview vi is being run, the write-to-line cannot write a good logic high,thus unable to interface completely with the chip.
    Please advise.Urgent!
    grays

    LabVIEW does not do anything different to the PCI-6503. NI-DAQ outputs the same 5V from MAX and LabVIEW. Are you sure the FPGA isn't driving 0V on the same line? You could test this by putting a small resistor between the FPGA and the DAQ card. See what the voltage is across the resistor.
    Even at 2.5mA, the 6503 should output 3.7V.

  • Error-50150 occured at DAQmx Write

    Hello,
        I am experiencing a seemingly random error in a large program. The error occurs in a part of the program that simulates tach signals to a CPLD. I have not been able to find out what conditions cause this error, it seems to be random in nature.
    The full error reads this:
    Error - 50150 occurred at DAQmx Write(Digital 1D U16 1Chan Nsamp).vi
    Possible Reasons:
    The software has entered an unknown state-usually as a result of a cascade failure induced by an unexpected series of state inputs. The operation could not be completed as specified and you should immediately terminate all further transactions if you are able to do so.
    Task Name:TackABC_Write Port0 U16
    The device we are using is a PCI-DIO-32HS, with Labview 7.1, NI-MAX 4.1, and DAQmx drivers 8.3.1. The task writes 3 signals to the CPLD, and it works most of the time, but every so often this error will occur. I was wondering what could be the cause of an error like this?
    Thanks, Steve

    Hello Brian, thanks for the response.
    I made a mistake in my last post, it is actually a DAQmx clear task in place of the stop task vi i mentioned. When we first received this error it had no clear task at the end, but I added one. Even with this the error has still shown up from time to time. Would it help at all to add a reset device vi afte the clear task vi?
    I took some screenshots for you as well. The first shot is of the function in question, the second is the same shot with the case turned to false, and the third is the inside of the main subvi. When the error occurs it focuses on the write vi that is inside the subvi. Let me know if there is more info I could grab that would make things mroe clear.
    Thanks,
    Steve
    Attachments:
    SS3.JPG ‏160 KB
    SS1.JPG ‏189 KB
    SS2.JPG ‏181 KB

  • How to config the digital write-to-line so it would independent when more than one is being used

    when one digital wirte-to-line is used in the labview vi, a good logic high(5v) can be read using a voltmeter,but when two or more digital write-to-lines are being using at the same time,the logic high seemed to have split voltages and thus having a bad logic high.how to make sure that in the labview program,that when many digital write-to-lines are used at the same time,all of them can abtain a good logic high (around 5v).
    I need the solutions urgently.
    grays
    np

    Hello,
    The probable reason you are seeing the behavior you are is due to a reconfiguration of the digital port. The Write to Digital Port VI is setup to configure the entire port, then write to one line (default settings). If you reconfigure the port it will reset all the lines, and then write your new value. You will want to use the iteration input on the Write to Digital Line so you can avoid the reconfiguration issue.
    The first time the Write to Digital Line is executed in your code wire a 0 to the iteration (or leave it unwired). This will configure the port for write and write your first value. The next time you use the write to digital port VI wire an integer greater than 0. This will bypass the configuration step and simply write the new value to the
    line. You can open the Write to Digital Line VI to see how the iteration input effects the execution and configuration of the digital ports.

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

  • Error Message: A crash occured on (date) at (time) while running "Applications": Memorymgr.c, Line:5346, Chunk under-locked

    I keep getting the following warning:
    A crash occured on (date) at (time) while running "Applications": Memorymgr.c, Line:5346, Chunk under-locked
    What is causing this? It usually happens overnight while I'm not using my phone... so the first time I touch it in the morning it shuts off and resets. The problem started occuring after Sprint switched from "On Demand" to "Pocket Express". I had no idea of the switch, so when I clicked on it the phone automatically updated to the new application. Since then, my phone has been a mess. I deleted the application, performed a hard reset and downloaded it on my phone again.. but still there's problems. This morning, I deleted the "Pocket Express" for good. I figured it wasn't worth it if it's causing all these problems.
    Help... please. I'm a novice, so please make sure the solution is something I can understand. Also, do I need to go through my Palm Desktop/Hot Sync program on my computer and delet files too?
    Thank you in advance.
    Phone: Treo 755p
    Carrier: Sprint
    P.S. I also just installed the Sprint Treo software update: Treo755p-1.07-SPNT
    It cleaned things up... but not for long.
    Post relates to: Treo 755p (Sprint)

    After a hard reset and after you delete the program on the device, you will need to rename the backup folder in your username folder on the PC. The backup folder contains all 3rd party programs and settings for your device. When you sync, the backup folder is reloaded onto your device and will bring back the 3rd party programs.
    Follow the instructions below for the procedure I described.
    Looks like you may need to hard reset and rename your backup folder if you go
    to http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=887 and follow the
    directions to do a hard reset. Next before you hotsync your data back over
    you will need to rename your backup folder to do that go here
    XP
    C:\program files\palm or palm one\[hotsync username]\ and rename your backup
    folder to backup.old
    Vista
    Start-->documents\Palm OS Desktop\[hotsync username]\ and rename your backup
    folder to backup.old
    Then hotsync to your current hotsync name and all your contacts, calendar,
    tasks, and memos will come back over.
    Show file extensions for XP or Vista
    XP
    If you can not view file extensions on your PC I would like you to open a
    folder go to Tools-->Folder Options--> View (tab) and under show hidden
    files and folders uncheck hide file extensions for known file types.
    Vista
    Open control Panel go to Folder Options--> View (tab) and under show hidden
    files and folders uncheck hide file extensions for known file types.Find your username folder
    Post relates to: Palm i705

  • 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/writing digital lines without external hardware (besides daq device)

    Hi,
    I have a USB-6259 (mass termination).  I don't have any additional hardware, just the USB device.  I  am trying to use the MAX utility (4.2.1) with NIDAQmx (8.5).  I eventually want to program digital lines (read and write them) using the NIDAQmx API.  I ran some of the VB6 samples.  I thought how it works is that I could run the WriteDigChan VB code to set line(s) on or off, then use the ReadDigChan VB code to read those lines I changed.  However that did not work so I started created some tasks using MAX however that does not work either.  I hope this is not too stupid a question but I am not too familiar with the hardware.  Do I need some additional hardware connected to my 6259 to keep those digital lines in one state or another?
    thanks, David

    Without regard to using it in VB, I am trying to understand the operation in MAX.  I am attaching two screenshots of 2 tasks that I am using.
    thanks for replying, David
    Attachments:
    ScreenHunter_004.jpg ‏180 KB
    ScreenHunter_005.jpg ‏233 KB

  • The background thread running lazy writer encountered an I/O error

    Hi I have a test server which has thrown the following error
    File system error: A system error occurred while attempting to read or write to a file store. The system might be under memory pressure or low on disk space. Physical file: \\?\F:\MSAS11.DEPLOYAS\OLAP\Data\Prod_KCube.0.db\DIM Flags And Types.0.dim\3.Flag
    Types Key.khstore. Logical file: . GetLastError code: 8. File system error: The background thread running lazy writer encountered an I/O error. Physical file: \\?\F:\MSAS11.DEPLOYAS\OLAP\Data\Prod_KCube.0.db\DIM Flags And Types.0.dim\3.Flag Types Key.khstore.
    Logical file: . Errors in the OLAP storage engine: An error occurred while processing the 'Facts' partition of the 'Main Facts' measure group for the 'Prod_Cube' cube from the Prod_KCube database.
    The cube sits on a not very well maintained server which is used by various users (it is a test server) with the following specs
    Intel(R) Xenon(R) CPU x5690 @3.47GHz
    24GB Ram
    64 Bit operating system.
    The Cube data and logs are on separate drives and have plenty data but the C drive (where SQL Server is installed) only has3.5Gb of space left.
    It's a fairly big cube and I've managed to get it running by processing dimensions and facts bit by bit but errors when processed all together.
    What could be causing the errors above?

    Hi aivoryuk,
    According to your description, you get the lazy writing error when processing partitions. Right?
    In this scenario, the issue may cause by low memory for SSAS and lack of disk space. Please consider configure
    Server Properties (Memory Page) and increase
    memory setting for SSAS. If the .cub file is located in C drive, please reserve more disk space.
    Please refer to a similar thread below:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/21bf84c5-f89a-464a-a5f1-2649fae5eb1e/while-processing-large-cubes-various-file-system-errors-the-background-thread-running-lazy-writer?forum=sqlanalysisservices
    Best Regards,
    Simon Hou
    TechNet Community Support

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

  • Illegal Operation when attempting to define a DIM Source/Target for Essbase

    We have installed the Hyperion DIM adapter and got past errors finding HASClient.dll when starting Designer.
    In Workflow we have defined a data source for Essbase. When attempting to define a new source from 'Hyperion Essbase'. The application pops up an error dialogue stating that HASClient.dll has performed an illegal operation.
    Have double checked the environment variables and they look OK. Anyone any idea what might have gone wrong? We already have Hyperion Planning adapters running fine, it's just the Essbase adapters giving problems.

    We solved the problem by reviewing and correcting some environment variables that had been wrongly adjusted on previous product installs.
    We stripped back the environment variables and then built new ones in line with the [DIM 11.1.1.2 Installation Instructions|http://download.oracle.com/docs/cd/E17236_01/epm.1112/dim_11111_install.pdf]

  • I am trying to write multiple lines high

    I have LV 5.0, PCDIO-24 card & WinME
    I am trying to write multiple lines high, but when I write one high
    the others reset. I read about the 8255 chip problem & found an
    example vi on NI's website that maybe a work-around, but it won't run
    with 5.0. I am somewhat new to Labview and request help! How can I
    open "Write to Multiple Digital Lines.vi" with 5.0,
    or does someone have an similar example vi?
    My vi has 3 different delay timers that try to write data high when
    they countdown to zero. They work fine one at a time but not when I
    put them into a single vi and run them all at once.
    Thanks,
    MikeB

    Dennis Knutson wrote in message news:<[email protected]>...
    > I think your problem is that you're using something like Write to
    > Digital Port.vi which writes to all lines. Use the lower level
    > function DIO Port Write.vi and set the line mask. The line mask is
    > used to determine which lines to write to and which lines to leave
    > alone. For example, if at one point you just want to write to bits
    > 5,6,7, set the line mask to 1110000 (assuming 8 bit port). If at
    > another point, you just want to write to bits 0,1,2, you would set the
    > line mask to 00000111.
    When I try to set the line mask of "DIO Port Write.vi", it won't allow
    me to have a 0 as the first digit. If I enter 00001111 for example,
    the zeros dis
    sappear as soon as I click the check-box. (the line mask
    box will reset to 1111). What am I doing wrong?
    Thanks for the help!
    MikeB

  • Error -1073807346 occurred at VISA Write in rsspecan_core_write.vi

    Possible reason(s):
    VISA:  (Hex 0xBFFF000E) The given session or object reference is invalid.
    I'm using a USB to GPIB connection to a Rohde Schwarz FSV30 Spectrum Analizer from Windows 7.
    My program works 100% in LabView but the problem comes in when I've compiled the program into an executable.
    I have already installed the NI VISA Run Time Engine 5.0.1 and it still does not work.
    I've also installed the NI-488.2 2.73 drivers for the GPIB unit.
    Any ideas?
    Solved!
    Go to Solution.
    Attachments:
    Error -1073807346 occurred at VISA Write.png ‏30 KB

    Hey,
    the problem when building executables with LabVIEW is, that the driver core of the attribute based instrument drivers (esp.. the VIs which are creating this error) is linked while runtime dynamically to the VIs. The application builder which follows all dependencies and include them into the package fails in this case.
    To get a running executable please add manually all VIs for the folder <inst lib>\rzspecan\_utility\rsspecan_core\callbacks\ to the LabVIEW project and everything should work fine.
    For more details of this driver refer to http://www.rohde-schwarz.com/appnote/1ma170
    So long, juergen

Maybe you are looking for

  • Why isn't my iPod Touch (4G) showing up in iTunes or in My Computer??

    Well my iPod Touch (4th Generation) was working great until yesterday. I was trying to update the software (iOS 4.3.3) and after 4 HOURS it tells me that it cannot install the update and now my iPod won't show up in iTunes or My Computer and it is sh

  • Kernel IO schedulers: noop works better... why?

    I've noticed that the CFQ scheduler sometimes doesn't seem to work very well, e.g. responsiveness visibly suffers when there's a lot of disk I/O going on. Deadline seems to be a little better under those conditions, but not much. I'd avoided using th

  • Help in Java XML Binding (JAXB)

    Looking for a JAVA written program that will provide interface to complex XML files using JAXB. Requirement : JAVA progam will report on existing XML using a simple GUI that will run on Windows. Program should be able to be emailed and installed with

  • Java 3d rotating text snapshot problem

    Hi guys ! I have searched for a method which captured a 3d rotating text and print it on the screen ,but i didn`t found it. I have to this exercise : Write a Java 3D program showing two panels and a button. The first panel displays a scene of a rotat

  • Hey i could use some help on vidorea

    hey i got the vidorea ipod song converter but i dont have the main part of it cuz i dont want it but with the converter it converts the songs but i still cant put them on my ipod please help!