Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Read and Write Warning

Hello,

 

I am a EE student working a project.  This portion requires a TEDS transducer and a DPM-3 from Transducer Techniques to my PC via RS232/USB.  I am using the Basic Serial Read and Write. vi.  The device is set to output continuous readings.  As the via is running, I am getting very weird ASCII characters such as symbols, letters, punctuation... etc.  Along with this I am getting OK(1073676294) from the error out.  I am not sure what is occuring, any guidance would be lovely.

 

Thanks,

 

0 Kudos
Message 1 of 5
(3,495 Views)

I feel this has something to do with baud rates.. The COM port is at 9600, the device is at 9600 and the vi is 9600, I also tried 19200.

 

Danny

 

 

0 Kudos
Message 2 of 5
(3,492 Views)

Correction: 

 

Using 19200 gives: Error -1073807339 occuring at VISA Read

 

Timeout expired before operation completed.

 

Thanks,

0 Kudos
Message 3 of 5
(3,490 Views)

Not only baud rate, you should also check Databits (7 or 8), Stopbits (1, 1.5, or 2), Parity (none, odd, even), and Flow Control. If one of them mismatches, communications may corrupt.

Message 4 of 5
(3,476 Views)

Yes thank you, I had a problem with the stopbit yesterday, and its working fine now.

Danny

 

0 Kudos
Message 5 of 5
(3,466 Views)