vector.com|Contact
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

Accessing the DAIO pins of VN5610A, VN5640, VN7640 using the XL Driver Library (Activation Line)

Last updated: 2019-05-16
Question:

(How) can I access the DAIO pins of VN5610A, VN5640 and VN7640 hardware interfaces using the XL Driver Library?

Answer:

Using the XL Driver Library, it is possible to access the DAIO connectors of Vector Hardware Interfaces.

Creating an XL Driver Library application for the VN5610A, VN5640 and VN7640 in particular, it is possible to use the digital I/O masks for e.g. accessing their Activation Lines (DoIP).

The required pins for each interface are described in their dedicated user manual.

However please note the following rules for accessing the pins of the above mentioned interfaces when using the XL Driver Library:

For VN5640 and VN7640:

  • Pin 2 uses the port mask XL_DAIO_PORT_MASK_DIGITAL_D3 (Activation Line)
  • Pin 3 uses the port mask XL_DAIO_PORT_MASK_DIGITAL_D4 (Activation Line)
  • Pin 8 uses the port mask XL_DAIO_PORT_MASK_DIGITAL_D0 (not related to the Activation Line)


Figure 1: DSUB9(CH5) from VN7640 / VN5640 User Manual

For VN5610A:

Pin 1 (Lemo Connector) uses the port mask XL_DAIO_PORT_MASK_DIGITAL_D3 (Activation Line)


Figure 2: IO CH5 (Lemo Connector) from VN5610A User Manual

Sample usage:

You can use one of the DAIO demo samples that are installed with the XL Driver Library and use the xlIoSetDigitalOutput function in order to set e.g. the pins for the Activation Line.

Please note that in all three cases, the Activation Line pins are Digital Input/Output ports and will therefore receive events.

Example:

Code snippet for a VN5640:

//…
XLdaioDigitalParams daio;

// Set the activation line
daio.portMask = XL_DAIO_PORT_MASK_DIGITAL_D3 | XL_DAIO_PORT_MASK_DIGITAL_D4; 
daio.valueMask = XL_DAIO_PORT_MASK_DIGITAL_D3 | XL_DAIO_PORT_MASK_DIGITAL_D4; // depending on which port you want to toggle…

xlStatus = xlIoSetDigitalOutput(g_xlPortHandle, g_xlChannelMask, &daio);

Sleep(1000); // or another timeout

// reset the activation line
daio.valueMask = 0;

xlStatus = xlIoSetDigitalOutput(g_xlPortHandle, g_xlChannelMask, &daio);
//…

 
Article Options
2019-05-16
Views: 284
 
Vector Technology Days 2019 The complete Vector portfolio in a unique event: October 23-24, 2019 in Böblingen, Germany. Register now!