Click here to Skip to main content
14,637,258 members
Rate this:
Please Sign up or sign in to vote.
See more:
In my project i am using MIL1553B card , where i want access the card, if card is there its "PASS" or "FAIL" which need to append in static text in MFC.

What I have tried:

Just need get code and idea, I gone through the sample program i didnt get any idea, even no one there with me Guide , just help out for this

TY_API_OPEN xApiOpen;
wBoardCountLocal = ApiInit (); /* Local board access */
if ( useServer ) 
{ 
  /* Remote board access */ 
  retVal = ApiConnectToServer(strServerName , &wBoardCountRemote); 
}
xApiOpen.ul_Module = 0; 
xApiOpen.ul_Stream = API_STREAM_1; 
sprintf ( xApiOpen.ac_SrvName, xConfig . acServer );
retVal = ApiOpenEx(&xApiOpen, &ulModHandle );

retVal = ApiClose(boardHandle );
if ( useServer ) ApiDisconnectFromServer(strServerName );
ApiExit ();
Posted
Updated 2-Jul-20 21:00pm
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

1) WTF is a
Quote:
MIL1553B card
- if it's something you purchased you should go the manufacturer - its sounds specialised so finding someone here who knows it on what little detail you have provided is expecting nothing short of a miracle - is it USB, PCIE, Serial, Parallel, Ethernet, Modbus ....

2) you have a sample program/code ? why not update the question with it (use 'Improve question') so we might be able to figure out what issues there may be

3) if the device installs/has a driver can you not check windows 'Device Manager' -> 'Hardware' -> (card) -> Properties etc to see if the driver is responding/installed correctly ?
   
v2
Comments
Member 14837073 3-Jul-20 2:31am
   
i will come back all the details ,
sample program which i told about below ,,

TY_API_OPEN xApiOpen;
wBoardCountLocal = ApiInit (); /* Local board access */
if ( useServer ) { /* Remote board access */ retVal = ApiConnectToServer(strServerName , &wBoardCountRemote); }
xApiOpen.ul_Module = 0; xApiOpen.ul_Stream = API_STREAM_1; sprintf ( xApiOpen.ac_SrvName, xConfig . acServer );
retVal = ApiOpenEx(&xApiOpen, &ulModHandle );

retVal = ApiClose(boardHandle );
if ( useServer ) ApiDisconnectFromServer(strServerName );
ApiExit ();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100