08-27-2010 02:06 AM
Thanks, O_Proulx, this is working for me so far!
09-02-2010 11:59 AM
It should probably be pointed out that NI VeriStand 2010 has released and is available for download at www.ni.com/veristand
It has native support for NI-XNET and a greater set of features than the NIVS 2009 custom device. I highly recommend upgrading.
09-02-2010 06:27 PM
Hi O_Proulx,
Your 1.5beta custom device has been working well for me so far. I have been able to update to new DBC files by managing/remapping my aliases.
However, when I tried to start a new system definition today and added CAN, I get the following error during deployment:
The target encountered an error and reset. Verify that the system definition file and the target resources are valid. You must deploy a new system definition file or reboot the controller to correct this problem. Error -1074384538 occurred at _RT Engine v6.vi >> HP Loop.lvlib:HP Loop Main.vi >> Custom Devices Storage.lvlib:Get Device Outputs (HW Interface).vi:1 >> Custom Devices Storage.lvlib:Call Device by Reference (HW Interface).vi:4 Possible reason(s): NI-XNET: (Hex 0xBFF63166) You used an empty name for the XNET Session. Empty name is not supported. Solution: Use a valid XNET session name from your LabVIEW project.
To be clear, this also happens with 1.5 (without the software termination control), and this is with the same database that was working before in an existing system definition. I am wondering if I am forgetting something basic in the creation of my new system definition. I am giving a name, database and cluster for my add so I'm not sure why I'm getting this error.
Thanks.
10-14-2010 08:02 PM
Hi, is there a way to indicate in the workspace that there is actually CAN activity on the CAN bus? It seems that all CAN signals default to displaying zero in VeriStand when there is no data received. Thanks.
10-15-2010 05:16 AM
10-15-2010 06:55 AM
Hi Hyog,
I don't think you can detect if there are any CAN frames on the bus. You could open the bus monitor and see if you are receiving frames, but adding an indicator on the workspace to say "activity" is not supported.
Hi Schnoob,
The Custom Device only supports signals IO. The reason for this is that VeriStand is mainly made for channel (double) data, and not array data (array of u8 like CAN). The new VeriStand 2010 implementation has a feature where you can map the raw u8 payload to channels (for example, one channel for each byte). That may help if you are trying to modify the payload directly.
I hope that helps.
10-15-2010 08:01 AM
10-15-2010 08:21 AM
Ah, I guess you can setup a signal for each byte directly in your database. You should not need to set any propery after that. You can just add each signal to the transmitted section and then control that veristand channel from the workspace, or from your model.
10-15-2010 09:02 AM
10-15-2010 09:13 AM
NI VeriStand 2010 has the feature you're requesting and should be provided to you for free with an active service contract. Since you get 1 year of service with the purchase of NI VeriStand 2009, you should have received NI VeriStand 2010.
Also, NIVS 2010 can mutate your code from NIVS 2009 so you can still use all your files.
Is there any reason you do not want to upgrade?