Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I receive Error -1073807253 when using the serial port with ?

Hi,
I just would like to read the value read by a Dial Gage (Sylvac S 229, communication with OPTO-RS232) with the attached soft, but it gives me a framing error -1073807253. I don't know from where it comes.
Does someone know a solution ? Please tell me if you need more information.
Thx
0 Kudos
Message 1 of 8
(5,264 Views)
Hi,

I've several questions.

1.) Which NI-VISA version are you using?
2.) Which of this three VI's you're using is generating the error? Please connect the error cluster from one VI to the other and an error out indicaotr at the end.
3.) Recheck if the port settings are really correct. This is often the only problem.
4.) Check if the cable is correct. Nullmodem or not.
5.) What kind of termination character is needed for your instrument? The default setting in the SERIAL INIT VI is a LINE FEED.
6.) Have you tried to communicate with your instrument with another tool. For example Hyperterminal.

Check this tutorial: Serial Communication Starting Poin
t


Let me know what happens.

Regards,
Luca
Regards,
Luca
0 Kudos
Message 2 of 8
(5,264 Views)
Hi Luca,

Many thanks for your answer.

1) My VISA version is 3.1.
2) VISA read.
3) I have already checked this many times.
4) See 6)
5) Any character can be put to question this instrument, normally w/o termination character. But I have tried an interrogation mark and others characters, with or without termination character (line return - retour à la ligne en francais, carriage return, and both).
6) Yes, I have tried with some communication softs and I have succeeded in reading the value.

-> ???

Regards,

Sylvian
0 Kudos
Message 3 of 8
(5,264 Views)
Hi Sylvian,

If other communication tools are working, then it must work with LV too. The VISA Read VI is giving you an error. The VISA Read VI returns a string under two conditions: The VISA Read detects the termination character (Line Feed by default) or he reads the bytes specified in the "byte count" input. Whatever comes first.
It's a little bit difficult to help without having the HW. Have you tried to use the "Instrument I/O Assistant" (Express VI) to communicate with your instrument? Another option could be to use the "number of bytes at serial port" property node after the VISA write VI. This shows you how many bytes are in the serial buffer.If this value doesn't change after a write, then nothing is send back.
I've seen that the HW
manufacturer is providing a SW to communicate with their instrument. You've probably used that. What would be interesting is, if another tool, for example hyper terminal is working too!

That's all I can say. Main problem with serial communication are wrong port settings and wrong termination characters.

I'll be away the next two weeks, so I hope that somebody else can help you with this issue.

Good luck.

Regards,
Luca
Regards,
Luca
0 Kudos
Message 4 of 8
(5,264 Views)
Luca,

Thank you for your reply,

Yes, I have tried with "Instrument I/O Assistant", it gives me the same framing error.
The number given by "number of bytes at serial port" changes, no problem with the writing.
In a hyperterminal connexion, after configuring all the parameters, I try to question my instrument with an interrogation mark (and other characters, too), but nothing is returned�

If someone has another idea, please help me !

Thx,

Sylvian
0 Kudos
Message 5 of 8
(5,264 Views)
You say it doesn't work with Hyperterminal byt earlier you said it did work with other communication software. Which software did it work with? Framing errors are almost always caused by a mismatch in communication parameters (baud rate, parity, stop bits, handshaking, etc.). Just because you don't get an error with a write doesn't mean that the write was successful. If the only successful communication is with the vendor's software, it could be possible that their software is setting different comm parameters than what you see in Window's Device Manager. Your best bet may be to contact the vendor and explain that you can't communicate with Hyperterminal. They should be able to understand that where as trying to explain
LabVIEW to some vendors is a waste of effort.
0 Kudos
Message 6 of 8
(5,264 Views)

I meet this Error- 1073807253 , while I run application vi that includes Basic Serial Write & Read.vi as subvi

The following are the details :

1.] When it's happening: only at running multiple COM ports that include:" Basic Serial Write & Read.vi"

2.]Is there any setting mismatch? No, both VISA Configure Serial Port.vi and my device set as same default value.

3.]What have been tried:

            1.)add VISA Flush I/O Buffer.vi before VISA Read.vi

           2.)add VISA Clear.vi after Configure Serial Port.vi

           3.)add General Error Handller.vi after VISA Read.vi set as

          4.)Set the Property Node.vi as "Ignore Errors inside Node"

          5.) Extended delay before read (ms) time before VISA Read.vi from 500ms to 750 ms

4.]What was happed? Not only didn't remove this error, but also this error message pop-up more frequently!

I read a note on NI website

that mentioned about:  "termination character in the SERIAL INIT VI is a LINE FEED" I couldn't find this vi by Function search. There is only

"Enable Termination Char (T)" terminal with option:"T/F" in

VISA Configure Serial Port.vi. Where can I find Serial init.vi?

5.] How does it show up? usually after run multiple COM Port W/R vi several hours it pop-up, occasionally, it appears within an hour. But when run on single COM Port only, there is no problem at all.

0 Kudos
Message 7 of 8
(4,237 Views)