From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the CallInstrument function?

Hello!,
Related to the message "How To Use Exported Function CallInstrument of LabView.exe? <http://forums.ni.com/ni/board/message?board.id=170&message.id=118159>", can anybody show me a minimal C source example of how to generate the correct definition of the control/indicators parameters?. In other words, I need the definition of the typedef array for the datatype and the pointer to the unflat data of the controls/indicators to be passed to the CallInstrument function.
 
At the moment, I have just only used this función without any controls/indicadors parameters.
 
MgErr __cdecl CallInstrument( Path path, Bool32 modal, int32 nInputs, int32 nOutputs, ... );
...
MgErr MyCallInstrument( char szPath[] ) {
 Path path = NULL;
 MgErr err;
 //
 FTextToPath( szPath, strlen(szPath), &path );
 return CallInstrument( path, TRUE, 0, 0 );
}

System: WinXP, LV7.1.1
 
Thanks !!!
 
Jesus Valero
Plataforma Solar de Almeria <http://www.psa.es>.
 
0 Kudos
Message 1 of 2
(2,112 Views)
Sorry for the spam, it has been an mistake.
0 Kudos
Message 2 of 2
(2,102 Views)