02-06-2015 09:00 AM - edited 02-06-2015 09:04 AM
Hello,
I'm using the .NET api to create a system definition and I'm currently stuck when it comes to adding signals to CAN frames. I have created an example to demonstrate the problem:
DB = Database('nixnet_example') Frame = SignalBasedFrame('CANCyclicFrame1', 64, DB, 'CAN_Cluster', 8, 0, False, ('CANCyclicSignal1', 'CANCyclicSignal2')) signal = clr.Reference[SignalBasedSignal]() print Frame.CreateSignalBasedSignal('CANCyclicSignal1', '', '', 0, signal)
The returnvalue of CreateSignalBasedSignal is false, i.e. the signal was not added to the frame. Could somebody point out why? How can I get additonal information about this error?
Additonally I have a few questions:
These parameters would make sense to me if it was possible to use XNET without a database file (which I would much prefer) but here it looks like duplicating information.
Thanks
Krid
03-24-2015 12:21 PM
Hello Krid,
Did you create a C# .NET wrapper for the NI-XNET driver or did you find a wrapper for the driver elsewhere? I am just curious since the NI-XNET driver comes with a LabVIEW API and a C API, but not with a native C# .NET API.
03-27-2015 08:43 AM
Hello Daniel,
I was thinking of writing a simple wrapper for the XNET C-Api so that I can create a database and add frames to it from .NET. However, I have stopped investigating in that direction after I discovered that the VeriStand .NET Api functions for adding signals to frames is broken (at least that's what it looks like from my perspective).
I would appreciate some feedback from NI about this matter.
Regards
Krid