LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error while using CAN api's. Says channel not found in MAX.

Hi,

I am using NI-CAN series2, can card. The same is not connected to my system. Hence i have used the virtual channel 256. Here i am reading the DBC file and providing an option to the user to select a set of messages to transmitt\receive. But i am getting an error saying
"Error -1074388479 occurred at CAN Get Channel Data Type.vi

Possible reason(s):
NI-CAN:  (Hex 0xBFF62201) Channel not found in MAX or the CAN database file.  Solutions: Check for proper spelling using MAX; For Get/Set Property, ensure that the channel name exists in the task."

Please help.

Regards,
Yogesh
0 Kudos
Message 1 of 7
(4,571 Views)

Yogesh,

It sounds like the channel the user is selecting is not in you DBC file. Can you verify if that is the case? If the Channel being requested at the CAN Get Channel Data Type.vi does not exist in your DBC. 

I look forward to your reply.

-Marshall R
0 Kudos
Message 2 of 7
(4,550 Views)
Hi Marshall,

Thanx for the reply. Teh channels i am refering to, is in the DBC file. So please suggest me an sollution for this. I am stuck up here. Please do reply.

Regards,
Yogesh
GET
Larsen & Toubro Ltd
0 Kudos
Message 3 of 7
(4,541 Views)

Have you tried using one of the example programs such as "Single Sample Input.vi" with your channel information? If you choose one of the simulated interfaces(CAN 256/257), you should be able to put your channel names in the list and run your code. Also, please double check to make sure your messages are properly loaded in MAX.

 

-Marshall R
0 Kudos
Message 4 of 7
(4,525 Views)
Hi Marshall,

Thanx for the reply and spending time for the same. I tried the example which u had mentioned. This example is working with 256 virtual channel. But my code is no executing and giving he same problem even after loading the DBC file into max(Same loaded im my code). Always load the dbc file in max and then only i should run the code, is it so? But this can not happen, since the user may not hav max. I hav attached the code. Pls verify it, and give me the feedback.

Waiting for the reply,

Yogesh
GET
Larsen & Toubro
India
0 Kudos
Message 5 of 7
(4,513 Views)
Yogesha,

There are a couple missing wires from your VI that I believe are causing the problem. The Get Property.VI with the poly setting of "Channel Data Type" and Channel Unit String" both do not have a channel name wired to it. Also there is an error wire missing between the above mentioned VIs.   With those modifications, I had no problems running your code.
-Marshall R
0 Kudos
Message 6 of 7
(4,502 Views)
Hi Marshall,

Thanx for correcting my mistakes. I am really very sorry, i wasted your valuable time because of my silly mistake.
Now the VI is executing. Once again thanx for the reply. Will get back to you with some more questions.


Regards,
Yogesh YS
GET
Larsen & Toubro
0 Kudos
Message 7 of 7
(4,493 Views)