'_CF' is not a valid named constant - HUH?

6 years 5 days ago #29529633 by LROBBINS
I am trying to integrate a Roboteq HDC2450 into an existing nulti-node raw CAN network and have a script that includes the line:

IF (GetValue (_CF) > 0) THEN

An attempt to "Build" gives the message " '_CF' is not a valid named constant". Is this GetValue enumeration somehow missing in Constants.h? The files in the downloadable API don't yet include any CAN enumerations, but this one seems to not be implemented at all. GetValue (_CAN) does not throw a compile error, nor does SetCommand (_CANSEND ... ), but without _CF how can one implement RawCan? (Before the FIFO buffer was implemented, _CAN sufficed, but the user manual now says that messages will not be moved from FIFO to read buffer until ?CF is invoked.)

Can you help me get "unstuck".

Ciao,
Lenny

Please Log in or Create an account to join the conversation.

6 years 5 days ago #29529634 by roboteq
Replied by roboteq on topic '_CF' is not a valid named constant - HUH?
When you click on the scripting tab, the utility makes the controller list the supported commands. Sometimes, some commands in the list fail to transfer.

Click on the console tab and then back to the script. If the _CF turns purple, it was listed and captured correctly and the script will build.

Please Log in or Create an account to join the conversation.

6 years 5 days ago #29529635 by LROBBINS
Thanks for the quick reply. Your trick works - sort of. That is, it does not work if "OffLine" (with HDC2450 selected from the dropdown), but does work if the HDC2450 is physically connected, though it took a couple times back and forth between the console and scripting tabs.
Ciao,
Lenny

Please Log in or Create an account to join the conversation.

6 years 5 days ago #29529636 by roboteq
Replied by roboteq on topic '_CF' is not a valid named constant - HUH?
we will soon release a new version of the pc utiilty with the updated list of commands. It will work offline.

Please Log in or Create an account to join the conversation.

6 years 5 days ago #29529637 by LROBBINS
Good. Will you be updating the API at the same time?

Please Log in or Create an account to join the conversation.

Time to create page: 0.138 seconds