| T O P I C R E V I E W |
| rnnelson |
Posted - 04/05/2002 : 09:28:09 AM Is there any way one can use Visual C or similar DLL's such as which come with National Instruments data acqusition boards to make Origin my data acquisition program? I know that in the past (long ago) there was LabGPIB for a similar concept.
|
| 5 L A T E S T R E P L I E S (Newest First) |
| Jason@ |
Posted - 04/30/2002 : 1:23:37 PM Instead of hardcoded system path, you can code it as #pragma dll(msvcrt, system). Jason
|
| gilles wat |
Posted - 04/30/2002 : 05:58:33 AM In order to read or write on a port, include the header file: #pragma dll(c:\WINDOWS\SYSTEM\Msvcrt) int __cdecl _inp(unsigned short port); int __cdecl _outp(unsigned short port, int value);
and if short port is the port number the function: int a= _inp(port) read the byte on the port int b= _outp(port,databyte) write |
| Barb Tobias |
Posted - 04/29/2002 : 10:27:12 AM Here is a link to the PDF: http://www.originlab.com/PDFs/originc.pdf
This code example will also be included in the Programming Guide Help file in the first Origin 7 patch, due out soon.
|
| gilles wat |
Posted - 04/29/2002 : 09:58:24 AM Where is the Origin C PDF file? |
| cpyang |
Posted - 04/05/2002 : 7:50:34 PM Examples for NI-488 GPIB support as well as RS232 support using Origin C are available in the Orgin C PDF.
Origin C can call any DLLs written using Microsoft compilers, so in principle there should be no problem.
CP
|