Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
15 ratings:
 4.13 out of 5     Rate this Document

LabVIEW Generates Error -10440 when Using the Easy DIO VIs

Hardware: SCC>>Carriers>>SC-2345

Problem: I have an SC-2345 carrier with eight digital I/O (DIO) modules; in this case, four SCC-DI01 modules and four SCC-DO01 modules. Each SCC module represents a single line of digital input (SCC-DI01) or digital output (SCC-DO01), so my eight modules represent the 8 lines of a single digital port. I tried to use the Read from Digital Line.vi and the Write to Digital Line.vi, which read from or write to (respectively) an 8-line digital port by default; however, these VIs always result in NI-DAQ error -10440. What am I doing wrong?

Solution: The Read from Digital Line.vi and the Write to Digital Line.vi are two of the Easy DIO VIs in LabVIEW. They configure the direction of each line on your digital port (in this case the eight modules in your SC-2345) for you. For example, the Read from Digital Line.vi configrues every line in the digital port for digital input. Similarly, the Write to Digital Line.vi configures every line in the digital port for digital output. That's fine, if you have a typical data acquisition board with DIO lines, where each line can do either digital input or digital output, but it's a problem in this case, because you have modules that can only do digital input or digital output, but not both.

In other words, when you use the Read from Digital Line.vi, the SCC-DI01 modules configure for digital input correctly, but the SCC-DO01 modules aren't capable of digital input, so they generate the -10440 error. Similarly, the Write to Digital Line.vi configures the SCC-DO01 modules for digital output, but the SCC-DI01 modules can't be configured for digital output, so they generate the -10440 error.

The solution is to use the Advanced DIO VIs, instead of the Easy DIO VIs, because they will give you line-by-line control over the configuration of your SCC modules. Use the line direction map input of the DIO Port Config.vi to specify the order of the SCC-DI01 and SCC-DO01 modules in your SC-2345. Use the optional line mask input of the DIO Port Read.vi or DIO Port Write.vi, to read from or write to (respectively) the individual lines of your digital port.

Related Links: Product Manuals: SC-2345 User Manual

Attachments:





Report Date: 05/03/2001
Last Updated: 11/14/2003
Document ID: 292C3LJ3

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit