The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Can we use Origin-C for data acquisition

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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



The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000