UroBoros
Advanced Member level 2
- Joined
- May 5, 2004
- Messages
- 642
- Helped
- 19
- Reputation
- 38
- Reaction score
- 8
- Trophy points
- 1,298
- Location
- Cochin - India
- Activity points
- 6,463
IanP said:What about an application written in LabView?
e_eja said:visual C has several file management fuction (ie: fopen, etc) you might used those funtion and get content file then send it content (hex data) via serial com
regards
CSerialPort comport;
char czBuffer[BLEN];
dw dwNunOfBytes;
comport.Open(1, 9600, CSerialPort::NoParity, 8,
CSerialPort::OneStopBit,
CSerialPort::NoFlowControl);
//Fill the data in czBuffer
comport.Write(czBuffer, dwNunOfBytes);
//dwNunOfBytes = set the number of bytes expected if any
comport.Read(czBuffer, dwNunOfBytes);
idlebrain said:Hello picstudent,
If your problem is only serial port handling,
If you have VC++ running in your machine, you do not need any controls or any other software. Go to codeproject **broken link removed**
and check for the serialport classes. One of good one in list is CSerialport v1.03
https://www.codeproject.com/system/cserialport.asp.
Integrate the CSerialport class to your project, (just add the serialport.cpp file and serialport.h file to your project). you can use as simple as this.
Code:CSerialPort comport; char czBuffer[BLEN]; dw dwNunOfBytes; comport.Open(1, 9600, CSerialPort::NoParity, 8, CSerialPort::OneStopBit, CSerialPort::NoFlowControl); //Fill the data in czBuffer comport.Write(czBuffer, dwNunOfBytes); //dwNunOfBytes = set the number of bytes expected if any comport.Read(czBuffer, dwNunOfBytes);
Cheers
idlebrain
VSMVDD said:nana wont work on XP ....try it...
you must use instead .net to compile it not visual c++
as the mechanism isnt there and blocked even if you use other runtimes
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?