Jump to content

Error -1073807298 occurred at VISA Write


pockey

Recommended Posts

I'm developing a serial communication program with LabVIEW 8.20. There is a USB to RS232 cable connected to a testing board.

As topic shows, when I write commands to the board, there will be error shown:

Error -1073807298 occurred at VISA Write in ML2427Tester.vi

Possible reason(s):

VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error.

The program could run OK after I click the "Continue" button. Anyone is aware of such error??

If the error is not so important, how could I ignore it for proper operation of my program?

A picture of the block diagram could be seen here:

ML2724Tester -- Error at VISA Write

Thanks!

Download File:post-6631-1168917470.vi

Link to comment

Hi Pockey,

thanks, (maybe it's just me)

You should have a look at the error cluster, pass it on between several parts of your code:

post-2399-1168925063.png?width=400

The wait with error is an OpenG VI downloadable with VIPM

other q's:

are the default serial settings OK for your device? (look at that error out as well)

Have you tried communicating with the devicde from MAX?

EDIT:

Having looked at your code I advice some redesign.

Use less states the (Reset/Begin/Status/Help) states are almost the same. Use a seperate Read and Write state. In your read state you need some timeout (10-50 ms) or so.

Ton

Link to comment
Well, it seems the problem is with the USB to RS232 cable.

I tried another connector and there's no error now.

Well, how to get rid of the error if I use that USB to RS232 cable since I know the error is with the cable not the program?

Have you fully installed the usb-rs232 device?

We saw that we could write, but not read with a default usb-rs232 device.

Ton

Link to comment
Strange!

I could read but not write with the cable...

The driver of the cable is not recognised by Windows, and it causes blue screen sometimes.

There are many I2C to serial converters (especially multiple port devices) that have similar problems with VISA. Some or all functions then don't work (properly).

I have very good experience with Prolific drivers, all devices with Prolific drivers always work.

Joris

Link to comment
  • 9 years later...

I'm developing one TMC instrument and I get this error when -

my TMC instrument is connected to Hub and Hub to pc. If I unplug and replug the USB connection for hub, I get this error. Hub is getting power from USB as well as AC-DC power adapter. If I reset the hub completely, i.e if I'm unplugging the power cord and unplugging usb connection to hub both, then plug back both, everything works fine. What could be issue in this case? I'm using Keysight IO Libraries for my development.

 

Thanks.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.