Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve Error Code -1073807298?

I used VISA configure serial port.vi , VISA write.vi , VISA read.vi
But the "Error out" of VISA write.vi output the following information:
 
Error -1073807298 occurred at VISA Write in test-send commamd to cluster.vi
Possible reason(s):
VISA:  (Hex 0xBFFF003E) Could not perform operation because of I/O error.
 
How to solve the problem?  Much thanks!
 
Best Regards! 
ERIC
0 Kudos
Message 1 of 7
(4,822 Views)

Hi Eric,

This error code has a generic description because there are multiple causes for this error. One cause in particular may be that you are not using a proper resource name for your instrument. For instance GPIB0::5::INSTR would be a proper resource name for an instrument with primary address 5 connected to GPIB0. One thing to keep in mind is that your instrument may also have a secondary address. The proper resource name for an instrument with primary address 5 and secondary address 96 would be GPIB0::5::96::INSTR.

Good luck and best regards,

Tom


0 Kudos
Message 2 of 7
(4,813 Views)

Hi,Tom

Thanks for your reply! The last 2 days I modified my program, and set a While Loop on the VISA write.vi and VISA read.vi. My VISA resource name is ASRL2::INSTR, and the device has received my instruction, and reacted properly. But new problems come out: VISA read.vi tells errors: firstly, error -1073807298; but from the second circulation of While Loop, error code -1073807339 come out!

And before the VISA write.vi (also before the While Loop), I set a VISA Set I/O Buffer Size.vi, and set the mask to 48, the size to 4096.

I think, I can describe the problem that VISA read.vi is not able to receive data sending from the device (or in the buffer ) all the time.

PS: I used a Serial Port Test Tool programmed by VC to test the device through COM2, all things were OK!

So, What should I do next?

 

Eric
ERIC
0 Kudos
Message 3 of 7
(4,789 Views)

Tom,

What's more, I think I shoud supply,

I also used the MAX, and in the Devices and Interfaces ->Serial & Parallel -> COM2, right click , and used VISA Test Panel to test the serial port. And I send “*IDN?\n” in the Write Buffer, Executed, then switched to the Read, and clicked the execute button. But the Return Status indicated “-1073807339” .

And Thanks again!

ERIC
0 Kudos
Message 4 of 7
(4,786 Views)

Hi eric

Can you post your program?

maybe I can see what is wrong, the error is that you ask for more dat than is available or that the endconditions don't match.

What instrument reaction do you expect?

 

greetings from the Netherlands
0 Kudos
Message 5 of 7
(4,783 Views)

Hi Albert,

   I want to record the data indicated on the screen of Digital Multimeter. In the “SciBoss RS232 Transmit Agreement” of the Digital Multimeter, if send “&H89”, the device will feed back the data of 12 bytes.

   I’m please to post my program here, and thanks for your kindness!

 

Eric

ERIC
0 Kudos
Message 6 of 7
(4,781 Views)

Hi Eric

One thing I noticed was that the first command was not ending with CR while the second cmd was followed by a CR.

Often a CR is used in MACs  and a LF or even CRLF from unix and windows.

The position for the while is ok but all the delays should not be necessary. The VISA timeout should take care of that.

please try again, I cannot find data about SciBoss multimeters

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