LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Baud Rate" AttrId not found for CAN frame API's ncGetAttr and ncSetAttr

Hi,

Well, everything is in the Subject : "Baud Rate" AttrId not found for CAN frame API's ncGetAttr and ncSetAttr
Although it is listed in the LabVIEW Documentation,  it is not in the enum's items gotten from `right click` -> `create` -> `contsant` on their `AttrId` connector.

My actuall need would be for checking a formerly opened CANNet handle compatibility against hardware  requirement, so ... ncGetAttr.vi

Anyway, if somebody knows the actual u32 to hardwire instead of the enum constant, or did I get something wrong ?
Thanks
0 Kudos
Message 1 of 3
(2,873 Views)
Hello,
You are quite right about the ncGetAttr.vi however the ncSetAttr does have a Baud Rate item if you scroll further down.

To get the Baud Rate wire a x80000007 to the AttrId pin. Or you can double click on the the ncSetAttr and then go into its block diagram, now
in the case structure select case 27 copy the numeric constant (which should be x80000007) and use it as the input to the ncGetAttr

Let us know if this helps.


Christian A
National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(2,855 Views)
Thank you Christian,

It did work as you expected, you will find a VI demonstrating this feature here.

I'm actually glad because, as a newbie,  I thought that the "Quick and Dirty" (tm) programing was no longer an option when it comes to LabVIEW, well yes it is still 🙂




Message Edited by Barbu on 03-27-2008 12:08 PM
0 Kudos
Message 3 of 3
(2,847 Views)