DLL から関数をエクスポートしますが、すべて同じパラメーター (数値N
(整数)) が必要です。DLL 関数は常に同じ順序で LabVIEW から呼び出されます ( initialization
、calculation
clean up
)
パラメータN
を一度だけ設定することはできますか? 私はそれを送信してinitialization
、何らかの形で残りの機能にエクスポートすることを意味しますか? N
そのため、すべての機能に手動で送信する必要はありません。
extern "C" __declspec(export) void initialization( int N ){
do initialization with N
}
extern "C" __declspec(export) void calculation(){
I would like to use N here but keep calculation()
}
extern "C" __declspec(export) void clean_up(){
I would like to use N here but keep clean_up()
}