Changes between Initial Version and Version 1 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/StartDIOPulse


Ignore:
Timestamp:
12/27/11 09:44:37 (13 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/StartDIOPulse

    v1 v1  
     1= StartDIOPulse =
     2Start a digital output pulse for the main board or a DIO option card.
     3
     4{{{
     5int StartDIOPulse(int bd, int out, uint8 cond, int count, float pulseWidth, float dutyCycle);
     6}}}
     7
     8{{{
     9int StartDIOPulse(int bd, int out, float dutyCycle);
     10}}}
     11
     12== Parameters ==
     13
     14 * bd - number of digital output card (main board output is not supported for pulse)
     15 * output - output number (outputs 1 - 4) only are supported
     16 * cond - true = start with output on, false = start with output off
     17 * count - count of pulses to output, 0 = continuous until StopDIOPulse
     18 * pulseWidth = size of the cycle in seconds
     19 * dutyCycle = duty cycle .5 = 50 percent duty cycle
     20
     21== Return Value ==
     22
     23 * Returns the result - OK success
     24
     25== Remarks ==
     26
     27The main board or option card must already be opened by calling OpenMnBd first. The call does a wait for acknowledgement. If the application is using main board communication events these events may be called during the wait for acknowledgement.
     28
     29== Examples ==
     30
     31{{{
     32if(StartDIOPulse(1, 1, true, 10, 2.0, 0.5) == OK)
     33    DisplayText(0, 0, "10 pulses 1 sec on 1 sec off");
     34}}}
     35
     36{{{
     37if(StartDIOPulse(1, 4, 0.7) == OK)
     38    DisplayText(0, 0, "Card 1 Output 4 70 pct");
     39}}}
     40
     41== See Also ==
     42
     43 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/StopDIOPulse StopDIOPulse]
     44 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/SetOutputMask SetOutputMask]