EasyManua.ls Logo

LabJack U12 - 4.25 - PulseOut

LabJack U12
61 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
If the read thread is disabled, the “timeout” specified in AIBurst and AIStreamRead is also disabled.
Declaration:
long NoThread ( long *idnum,
long noThread )
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*idnum – Local ID, serial number, or -1 for first found.
noThread – If >0, the thread will not be used.
Outputs:
*idnum – Returns the local ID or 1 if no LabJack is found.
4.25 - PulseOut
Requires firmware V1.1 or higher. This command creates pulses on any/all of D0-D7. The desired D lines must be set to output
using another function (DigitalIO or AOUpdate). All selected lines are pulsed at the same time, at the same rate, for the same
number of pulses.
Execution time for this function is about 20 milliseconds plus pulse output time.
This function commands the time for the first half cycle of each pulse, and the second half cycle of each pulse. Each time is
commanded by sending a value B & C, where the time is,
1st half-cycle microseconds = ~17 + 0.83*C + 20.17*B*C,
2nd half-cycle microseconds = ~12 + 0.83*C + 20.17*B*C,
which can be approximated as,
microseconds = 20*B*C.
For best accuracy when using the approximation, minimize C. B and C must be between 1 and 255, so each half cycle can vary
from about 38/33 microseconds to just over 1.3 seconds.
If you have enabled the LabJack Watchdog function, make sure it’s timeout is longer than the time it takes to output all pulses.
The timeout of this function, in milliseconds, is set to: 5000+numPulses*((B1*C1*0.02)+(B2*C2*0.02))
Declaration:
long PulseOut ( long *idnum,
long demo,
long lowFirst,
long bitSelect,
long numPulses,
long timeB1,
long timeC1,
long timeB2,
long timeC2)
Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:
*idnum – Local ID, serial number, or -1 for first found.
demoSend 0 for normal operation, >0 for demo mode. Demo mode allows this function to be called without a LabJack.
lowFirst – If >0, each line is set low then high, otherwise the lines are set high then low.
bitSelect Set bits 0 to 7 to enable pulsing on each of D0-D7 (0-255).
numPulses – Number of pulses for all lines (1-32767).
timeB1B value for first half cycle (1-255).
timeC1C value for first half cycle (1-255).
timeB2B value for second half cycle (1-255).
timeC2C value for second half cycle (1-255).
34

Other manuals for LabJack U12