Allcode command to open FA_CardOpen in c++

For Formula AllCode users to discuss projects, programs, and any other issues related to the Formula AllCode robotics platform.

Moderators: Benj, Mods

Post Reply
Kjell Holen
Posts: 7
Joined: Sun Apr 24, 2016 2:32 am
Been thanked: 2 times
Contact:

Allcode command to open FA_CardOpen in c++

Post by Kjell Holen »

What is the correct comand to open card?
I have treid:
status = 0;
status = FA_CardOpen(PortNumber, (unsigned char *) "fila");
FA_LEDWrite(PortNumber, status);
I appresiate if someone could help, used PC to create a file named fila.
Used LEDWrite to show status.
rgds Kjell

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Allcode command to open FA_CardOpen in c++

Post by Benj »

Hello Kjell,

I'm assuming the file has a type e.g. fila.txt.

In this case you would use the command as follows.

status = FA_CardOpen(PortNumber, (unsigned char *) "fila.txt");

Kjell Holen
Posts: 7
Joined: Sun Apr 24, 2016 2:32 am
Been thanked: 2 times
Contact:

Re: Allcode command to open FA_CardOpen in c++

Post by Kjell Holen »

Thanks

Post Reply