LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delta elektronika VISA read in error

I am working with a DELTA Elektronika hardware. I couldnt able to connect with the hardware shows error while reading.

 

NationBRus_0-1731948869159.png

 

ERROR: 

Error -1073807339 occurred at VISA Read in DELTA ELEKTRONIKA.lvlib:Initialize.vi

Possible reason(s):

VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.

 

 

I write the query from visa test panel and there was no error

NationBRus_1-1731948907421.png

 

How could I properly initialize the hardware?

 

Thank you in advance.

 

 

0 Kudos
Message 1 of 8
(149 Views)

Hi RBus,

 


@NationBRus wrote:

I write the query from visa test panel and there was no error


But you failed in sending the EXACTLY SAME command in your LabVIEW code!

What happens when you append a LINEFEED char (aka LF aka 0x0A aka \n) at the end of the "IDN?" command?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(133 Views)

1) Add a line feed character (\n) to the string. See the VISA Test Panel.

2) For a first trial, reduce the VISA Read byte count entry from 256 to the expected number of bytes of the answer.

 


3) To simplify communication, and given that the power supply terminates its responses with a line feed, you should use VISA's “Termination Character” feature. Let's us know if you need further help.

0 Kudos
Message 3 of 8
(128 Views)

I am experiencing the same issue.i did the following 

 

The ID query:*IDN?\n and *IDN?

 

For both query, NI max works without any error. 

 

The labview still give the error: Error :1073807339 occured at VISA read in DELTA ELEKTRONIKA

 

the bytes was changed from 256 to 5

 



What would be the possible solutions in this case?

0 Kudos
Message 4 of 8
(104 Views)

@NationBRus wrote:


What would be the possible solutions in this case?


1) Right click on your string constant and select "'\'Codes Display"

2) Make sure the \\n that you most likely see now is changed to \n

 

 

3) For extra bonus points, right click the string constant again and select "Visible Items->Display Style"

 

Now you can post a pic of your diagram and everybody sees that the display style is set correctly. Otherwise that's only possible to check if you post the actual VI and the reviewer has your version of LabVIEW or newer (if you don't do a Save for Previous).

 

Generally it can't be stressed enough. If you do instrument control and especially serial communication, there is no better way to spend an hour of your time but to watch this presentation from crossrulz aka Tim Robinson: Proper way to communicate over serial

 

This forum is literally littered with this same problem over and over again and most could have saved themselves hours and hours of time of struggle and other users here at least the same amount trying to explain this again and again, if they had watched this presentation.

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 8
(98 Views)

Hi BRus,

 


@NationBRus wrote:

I am experiencing the same issue.i did the following 

 

The ID query:*IDN?\n and *IDN?

 

For both query, NI max works without any error. 

 

The labview still give the error: Error :1073807339 occured at VISA read in DELTA ELEKTRONIKA


What would be the possible solutions in this case?


Please attach a real LINEFEED char instead of two chars "\" and "n"!

This has been discussed so often in this forum: switch the displaymode of the string constant to "\-code display", then type "\n" into the constant. (Or use an AppendString function with a LineFeed string constant…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(95 Views)
  • the line feed constant was added and i can read data with a warningNationBRus_0-1732022160113.png

     

still at the end of the VI,  closes with an error 

Error -1074003951 occurred at DELTA ELEKTRONIKA.lvlib:Initialize.vi

 

Possible reason(s):

 

The ID Query failed.  This may mean that you selected the wrong instrument or your instrument did not respond.  You may also be using a model that is not officially supported by this driver.  If you are sure that you have selected the correct instrument and it is responding, try disabling the ID Query.

 

Complete call chain:
     DELTA ELEKTRONIKA.lvlib:Initialize.vi

 

even without ID query with a different VI of the instrument throws the same error with VISA read (error code:Error -1073807339)

 

the VIs are attached for your reference.

Download All
0 Kudos
Message 7 of 8
(64 Views)

Of course it fails. You wire the bytes written output from the VISA Write to the bytes to read of the VISA Read. Now lets consider what you send "*IDN?\n", that's a whooping 5 characters, so the VISA Write returns that it wrote 5 bytes to the port, and you go and tell the VISA Read to read 5 bytes to, but expect to receive at least about 20 or so (your DELTA ELEKTRONICA + something string). You definitely should look at the original VI you attached and try to do it in a similar way rather than create an improved-destroyed version of it.

 

And you still obviously haven't looked at the linked movie I pointed you out earlier!

Rolf Kalbermatter
My Blog
0 Kudos
Message 8 of 8
(56 Views)