VXI Technology, Inc.
40
VM1548C Programming
Valid
Values:
Interpretation:
------------ --------------
vtvm1548_POL_NORM
Normal
Polarity
(0)
vtvm1548_POL_INVERT
Inverted
Polarity
(1)
ViInt16
data
- This parameter is used to specify the 8 bit data value
that is to be written to the output port.
Valid
Range:
-----------
vtvm1548_DATA_MIN
(0)
to
vtvm1548_DATA_MAX
(255).
Return Values:
Returns VI_SUCCESS if successful.
Else
returns
error
value.
Description
This function is an application function that shows
how the user can use core functions to set up the
specified port as output and write the specified data
value to it. It then triggers the port to output its
data.
/********************************************************************/
ViStatus _VI_FUNC vtvm1548_setupAndWriteData (ViSession instrHndl,
ViInt16
portNumber,
ViInt16
clkSource,
ViBoolean
polarity,
ViInt16
data)
{
/*
* Variable used to store return status of the function.
*/
ViStatus status = VI_NULL;
/*
* Setup the specified port as output and configure the clock
* associated with it.
*/
status = vtvm1548_configPort (instrHndl,portNumber,vtvm1548_MODE_OUTPUT,
vtvm1548_CLK_MODE_OUT,clkSource,polarity);
if (status < VI_SUCCESS)
return
vtvm1548_ERROR_SETTING_PORT;
/*
* Set up the specified port's register source.
*/
status = vtvm1548_configRegister(instrHndl,portNumber,
vtvm1548_CLK_SOURCE_IMM,VI_NULL);
Содержание VM1548C
Страница 2: ...2...
Страница 5: ...www vxitech com VM1548C Preface 5 Clock Enable 102 Latch Data 103 Read Data 104 INDEX 105...
Страница 16: ...VXI Technology Inc 16 VM1548C Introduction...
Страница 44: ...VXI Technology Inc 44 VM1548C Programming...
Страница 96: ...VXI Technology Inc 96 VM1548C Command Dictionary...