09-17-2008 01:23 AM
hallo,
I have a voltage source which ist connected to my com port 1. Normally I have to connect it to pin 2 and 5 (read and ground). I am using the "basic serial write and read.vi" which is given by NI. When I connect my source to pin 2 there are no bytes at the port (in highlight function property node delivers "0" to read visa), at pin 3 there are. But then I get the error -1073807298 with the text: VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error.
I only know some basics in LabVIEW so I would be very thankful when somabody could help me. I already did the Loopback test, it is working.
heyhey
P.S.: Don't ask me why I have to connect a voltage source to my com port, this is my task.... I have to solve this problem. The voltage range was between 0 and 5.
09-17-2008 01:32 AM
Hoi,
I don't why you expect bytes at the serial port when you connect a voltage source to it. Just read the RS-232 basics and you will understand that with this setup you only produce a 'break' at the serial port if you switch it correctly.
If the loopback test works your port is OK
09-17-2008 05:23 AM
Thanks for your fast answer.
I do not really understand why this causes a break because I thought at a voltage higher as 3 it will be detected as a '0'. Is it possible to meassure the voltage at the com port? I think I looked through all LabVIEW functions three times and I can not find any VI which is not expecting input bytes.
09-17-2008 06:13 AM
OK, back to the start.
What you want to do is detect if a voltage (0->3V) is present or not at the com port.
You can ue one of the handshake input lines for this (not the data) and check this line in LV.
Before I go any further; is this what you want to do ?
09-17-2008 06:18 AM
Hey,
thanks again. I just want to measure the voltage I put in the com port. At present it is DC. I think it will be not more then 5V.
heyhey
09-17-2008 06:40 AM
Do you really want to measure the voltage at a COM port or do you want to detect if a level (5V) is present or not ?
09-17-2008 10:46 AM
09-17-2008 11:30 PM
09-18-2008 01:21 AM - edited 09-18-2008 01:22 AM
Hi,
Because it is not possible to measure a voltage with the COM port I thought you might want to do something else, but yes you are trying to do something that is impossible ![]()
You can detect a level like we said but not a value. Give the task back or buy a device which you can use to measure and has a serial interface to connect to the COM port. This way you can measure at the COM port
09-18-2008 01:44 AM
Ok, thank you very much for your help. That's why I could't solve the problem...
heyhey