Click here to Skip to main content
15,885,953 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
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

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 ?
 
Share this answer
 
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900