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

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++

Postby Kjell Holen » Thu Jan 05, 2017 9:03 pm

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: 14587
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4608 times
Been thanked: 4242 times
Contact:

Re: Allcode command to open FA_CardOpen in c++

Postby Benj » Thu Jan 05, 2017 9:38 pm

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++

Postby Kjell Holen » Fri Jan 06, 2017 11:14 am

Thanks