11-18-2024 11:02 AM
I am working with a DELTA Elektronika hardware. I couldnt able to connect with the hardware shows error while reading.
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
How could I properly initialize the hardware?
Thank you in advance.
11-19-2024 01:54 AM - edited 11-19-2024 01:55 AM
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?
11-19-2024 01:59 AM
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.
11-19-2024 04:06 AM
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
JB
What would be the possible solutions in this case?
11-19-2024 04:39 AM - edited 11-19-2024 04:41 AM
@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.
11-19-2024 04:40 AM
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…)
11-19-2024 07:24 AM
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.
11-19-2024 08:05 AM - edited 11-19-2024 08:06 AM
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!