VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

XCP - Cannot disable Custom Device programmatically

Hello,

 

I programmed a monitoring of CAN-Bus.

 

It contains in one hand XCP (reads parameter from *a2l-File) and in the other hand CAN-Data (reads parameter from *dbc-File)

 

I implemented a function, that checks whether false signals are in the can bus, which are not decribed in the *dbc-File.

 

My problem is, that in the Can-Bus there are a2l-Signals, too. So it is not possible for me, to check the validity of signals.

 

What can I do?

 

There is no possibiltiy to disable XCP-Custom device programmatically by a channel. I can just do it mannually on system explorer of Veristand-Projekt.

 

Are there any other ideas, how to solve this problem??

 

Regards,

YesB

 

  

0 Kudos
Message 1 of 8
(8,242 Views)

The XCP/CCP Custom Device in the ECU Measurement and Calibration Toolkit 2.2.1 and later contains a "Disable" channel that lets you enable or disable the entire device at run time. Note this feature only works for NI VeriStand 2011 and newer.

 

Also, the XCP/CCP Custom Device in the ECU Measurement and Calibration Toolkit 2.3 and later contains a "Disable" channel on each measurement section so you can enable or disable indivitual measurement tasks at run time. Note this feature only works on NI VeriStand 2012 and newer.

Stephen B
0 Kudos
Message 2 of 8
(8,234 Views)

Hello Stephen,

 

could you show a picture of the "Disable"-function of entire device at run time?

 

Thank you!

 

Regards,

YesB

0 Kudos
Message 3 of 8
(8,222 Views)

Here are the channels I spoke of. See the description for the connect channel:

 

0: Do nothing.
1: Connect, then switch to 0.
2: Disconnect, then switch to 0.

 

 

Untitled.png

Stephen B
0 Kudos
Message 4 of 8
(8,206 Views)

Disabling XCP on run time was possible 🙂

 

But I have no opportunity to add disable Channels to Measurements.

 

 May I use a very old custom device? I downloaded it on NI Page.

 

Could you send me the CD, you used?

 

Thank you.

 

Regards,

YesB

 

0 Kudos
Message 5 of 8
(8,199 Views)

Great! Hopefully this clears things up,

 

The custom device used to be distributed on this web page http://zone.ni.com/devzone/cda/epd/p/id/6374 

But that has not been updated for several years. The text states:

The XCP and CCP Master Add-On for NI VeriStand has graduated to a shipping feature.  The add-on posted on this page is now a legacy version and the recommended and fully supported version is now shipping in the latest version of the ECU Measurement and Calibration Toolkit.  The version on this page is no longer supported by National Instruments and is not recommended for new applications.


So you should not download the version attached to that web page. Instead, simply install the ECUMC toolkit. If you have NIVS installed it will detect that and install the custom device that comes with the toolkit, which is a later version and has more features and bug fixes. Note that they only add custom device features to the latest version of NI VeriStand. So even if you install ECUMC 2.3, only the custom device for NIVS 2012 will include multiple measruement sections with individual disable/enable on each measurement.

Stephen B
0 Kudos
Message 6 of 8
(8,196 Views)

Hi Stephen,

 

I too have XCP-CCP custom device imported in veristand project.

It runs successfully and we are able to read internal signals from a2l file at run time.

 

But when I try to disable custom device at run time using "Connect" channel (forcing 1 to it) it do not disconnects.

Connection status channel still shows 1 value on it means device is connected and running.

 

Please let me know what could be the reason behind this in our project?

 

Regards,

Nilesh

0 Kudos
Message 7 of 8
(8,039 Views)

Hello Nil,

 

did you try to write "2" in "Connect" Control?

 

After that the connection should shut down.

 

Regards,

YesB

0 Kudos
Message 8 of 8
(8,035 Views)