Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa error (hex 0xBFFF001D) and error (hex 0xBFFF0015)

Hello all,

 

Basically I have a problem to connect my old digital scale to the computer. This scale have a RS232C serial port that only have a transmission pin and a ground pin (the specification of the pore is attached), so it should transmit data continuously (according to the vendor) without any commanded. I tried to connect the scale and the NI MAX is recognized the scale but when I go to the VISA test panel I have a error message in the view attributes page, and when I push the read bottom in the input\output I have another error that you can see in the attached pictures. I will be grateful if someone could help me to fix this problem, and if it is even posable to connect the instrument that only transmits data with VISA or LabVIEW?

 

thank you 

 

ilyas_0-1624949425887.png

ilyas_1-1624949540914.png

 

ilyas_2-1624949565065.png

 

0 Kudos
Message 1 of 7
(3,547 Views)

It is possible. Do not write any command, just read all data from the port.

So, only open the port and start reading.

greetings from the Netherlands
0 Kudos
Message 2 of 7
(3,514 Views)

I tried just to push the read button but as I showed above it showed me an error. any way to fix it?

0 Kudos
Message 3 of 7
(3,509 Views)

did you have the correct port settings. This depends on the port settings of your scale.

I would try the slowest setting first.

And if you have LabVIEW installed look at the basic serial examples

greetings from the Netherlands
0 Kudos
Message 4 of 7
(3,500 Views)

Hey,

 

I think my problem could be due to the termination characters. In the manual it is written that two terminal characters CR and LF is needed:

ilyas_0-1625043465500.png

 

But in the VISA program you can chose only one of them, or custom.

Do you know how I can specify these two terminal characters in custom mode?

thank you very much for your help

0 Kudos
Message 5 of 7
(3,461 Views)

@ilya.s wrote:

But in the VISA program you can chose only one of them, or custom.

Do you know how I can specify these two terminal characters in custom mode?

thank you very much for your help


You just need to manually make sure both termination characters are sent when you write.  I actually use a subVI for writing commands that appends the characters to the command before writing.

 

For reading, just make sure the Line Feed is the termination character.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 7
(3,447 Views)

你好,我想问一下你的读写超时问题解决了吗,我最近也遇到了同样的问题,想听听你的意见,谢谢

0 Kudos
Message 7 of 7
(3,145 Views)