<DIV>I have an input signal that goes from value 0.1 to 3 then back to 0.1. There is a situation where the signal can come in starting inverted at 3 going to .1 then back to 3. Is there a math function or anything similar I can do to check which signal I am getting. My thoughts were to calculate the slope of the initial and end portions of the data and check if the numbers are positive or negative respectively.</DIV><p>__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com ---You are currently subscribed to vrf as: rsb@soco.agilent.comTo subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com ---You are currently subscribed to vrf as: rsb@soco.agilent.comTo subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".To send messages to this mailing list, email "vrf@agilent.com". If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".
That one's pretty easy: hSerRef is int, don't worry about INT32/UINT32
(they're both int) and INT8* is char*.
int __stdcall clFlushPort(int serialRef);
int __stdcall clGetErrorText(char* manuName, int errorCode, char* errorText,
int* errorTextSize);
int __stdcall clGetNumPorts(int* numPorts);
int __stdcall clGetNumBytesAvail(int serialRef, int* numBytes);
int __stdcall clGetPortInfo(int serialIndex, char* manufacturerName, int*
nameBytes, char* portID, int* IDBytes, int* version);
int __stdcall clGetSupportedBaudRates(int serialRef, int* baudRates);
void __stdcall clSerialClose(int serialRef);
int __stdcall clSerialInit(int serialIndex, int* serialRef);
int __stdcall clSerialRead(int serialRef, char* buffer, int* bufferSize, int
serialTimeout);
int __stdcall clSerialWrite(int serialRef, char* buffer, int* bufferSize, int
serialTimeout);
int __stdcall clSetBaudRate(int serialRef, int baudRate);
Note that 0 is not a valid character in text so you won't be able to transmit
or receive a 0 (using this scheme anyway).
-SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "www.oswegosw.com/vrf_archive/".