Discussion:
CAN Transmit Periodic on RTSI - HV SW
(too old to reply)
Gleichman
2008-06-16 21:40:05 UTC
Permalink
I am trying to adapt the example "CAN Object Transmits Periodic on RTSI.vi" to transmit a High Voltage Wakeup message.  When I insert a "NI-CAN Set Attribute.vi" after the Open with Transceiver Mode = 2 (Single-Wire Wakeup), I receive the error -1074388732 (invalid property ID, attribute ID, or operation code).   Setting the Transceiver Mode works fine if I remove the ncConfigCANObjRTSI.vi.  
 
LabVIEW 8.2.1
PCI-CAN/XS2 - Set to Single Wire
NI-CAN 2.5.0f0
WinXP SP2
 
Any help is appreciated.
biker2000
2008-06-17 02:10:08 UTC
Permalink
Hi GleichmanI think, I know what the problem is. The <a href="http://digital.ni.com/manuals.nsf/websearch/6C57190E7F6553A986257205006D273A" target="_blank">NI-CAN Hardware and Software Manual</a> (p. 10-117) states: " Transceiver Mode...This attribute is available only for the Network Interface, not CAN Objects. Nevertheless, the attribute applies to communication by CAN Objects as well as the associated Network Interface."You probably wired the handle from the ncConfigCANObjRTSI.vi into the ncSetAttr.vi, which is not allowed. Instead you need to open the CAN Network Interface first, then the CAN Object and then you would wire the ncSetAttr.vi (Transceiver Mode = Single-Wire Wakeup) in.You may want to try this out with the "CAN Transmit.vi" example first, to see whether you are getting the desired results. Once that works, try modifying the "CAN Object Transmits Periodic on RTSI.vi" example as mentioned above.Good luck!-B2k
Loading...