LoadWFBitStream
Valid for: CANoe DE • CANoe:lite DE Note The method can only be called on system variable namespaces of appropriate channels of VT System modules. The method may not be called in any CAPL handler routines or in ECU nodes. It may only be called in the context of the MainTest method of a test module.Method Syntax
long SysVarNamespace.LoadWFBitStream (char filepath[]);
Description
The function loads a bitstream (a sequence of bit values) for the channel from the specified file. The bitstream is used to stimulate the ECU using a digital signal.Parameters
- filepath: Path of the file containing the bitstream. The path can be given absolute or relative to the CANoe DE Family configuration.
Return Values
- 0: Successful call
- -1: Non-specific error
- -2: The namespace on which the command was called does not exist, is not a valid VT System namespace or does not support this command.
- -3: Error when accessing the file. This can mean, for example, that the file was not found or the file format was different than expected.
- -4: Transfer error – The wave form could not be transferred correctly.
Example
The following example demonstrates how to use the bitstream voltage output of a VT2516 channel for digital stimulation. In this example a bitstream is loaded from the file BitStream.TXT and played back on channel DOut.Example BitStream.TXT
CAPL
.NET (C#)
VT System Control
Select DOut Set Sidebar | Output Settings | Stim Mode to ActiveSet Sidebar | Output Settings | Curve Type to Bitstream
Set Sidebar | Output Settings | Voltage High to 5.0
Set Sidebar | Output Settings | Voltage Low to 0.0
Set Sidebar | Bitstream Output | Bitstream to BitStream.txt
Set Sidebar | Bitstream Output | Parameters | Time Increment to 0.0001
Set Sidebar | Bitstream Output | Parameters | Pause to 0.005
Set Sidebar | Bitstream Output | Parameters | Repeats to 0
Click Sidebar | Output Settings | Start Stimulation
Wait for 10 seconds
Click Sidebar | Output Settings | Stop Stimulation vtsLoadWFBitStream