04-11-2016 09:02 AM
Hi,
I am trying to make a connexion between a Torque sensor and LabView program but I am getting an error at visa read
I read already about the causes of this error, which are; Timeout error or uncorrect byte number to read...
I tried everything but I am still getting this error. Could you please help me?
you will find attached the program and the manual of the Kristler como torque
Solved! Go to Solution.
04-11-2016 09:07 AM - edited 04-11-2016 09:08 AM
As you see, this is a timeout error or you're trying to read more bytes than are actually coming in. Your VI is sitting and waiting for data to come in through the COM port, but it doesn't receive the 20 bytes it is waiting for in time.
Do you see anything output in the "read buffer" after the timeout or is that blank?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
04-11-2016 09:08 AM
"I've tried everything". Can you be more specific? What have you tried? What command have you sent?
According to page 70, the command *IDN? is valid. Have you tried that?
Are you sure you have the right kind of cable? (straight through vs. null modem)
Have you established communication in any other way such as Hyperterminal (which has become obsolete, you might have to find an alternative terminal program) or any software the equipment manufacturer might provide?
04-11-2016 09:20 AM - edited 04-11-2016 09:30 AM
@JAMES; no I don't see anything in the read buffer.
@Ravens: yes I tried the command but it's the samething. I am getting the same error
I tried to change the timeout and the number of byte to read a lot of times.. in vain
My communication is also working because I can command the instrument with his own program via com6
04-11-2016 09:23 AM
@lucie2 wrote:My communication is also working because I can command the instrument with his own program via com6
I'm assuming you've gone through and made sure all of your comm settings match exactly, right? Same baud rate, parity, etc? Make sure you don't have the other program running at the same time as that will cause issues.
I would suggest attempting to communicate using MAX. That's the easiest interface to try things out and if that works, then you will be able to get LabVIEW to work.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
04-11-2016 09:29 AM
yes don't worry I am not because if I was running the other program in the same time, I will get another type of error not this one.
with NI MAX also it's the same.
04-11-2016 09:37 AM
Have you tried communicating using the VISA Test Panel in MAX?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
04-11-2016 09:44 AM
How should I do?? it doesn't accept any alphabetic code. What should I send?
04-11-2016 09:47 AM - edited 04-11-2016 09:49 AM
You need to go to the Input/Output tab once you've configured it the way you want. The configuration settings should match everything that your working application uses. What is this other program that works?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
04-12-2016 01:16 AM
Hi,
yes I configurated it but I am also getting the same error
VISA : ( Hex 0xBFFF0015 ) time out before the process was completed .