Wenn dein Problem oder deine Frage geklärt worden ist, markiere den Beitrag als "Lösung",
indem du auf den "Lösung" Button rechts unter dem entsprechenden Beitrag klickst. Vielen Dank!
Ich habe hier ein kleines Problem mit der Ansteuerung eines Oszilloskopes. Ich habe mir die Treiber Software auf der NI Homepage runtergeladen und bereits installiert.
Problem: Ich habe aber keine GBIP Schnittstelle am Gerät sondern nur LAN Anschluss.
Ansatz: Daher habe ich mein Lecroy im MAX mit einem Netzwerk bereits hinzugefügt und Labview erkennt es auch als solches an.
Möchte jetzt nichts besonderes machen als diesen anzusteuern.
Im Visa Testpanel habe ich bereits mal was ausprobiert und er liest den Befehl der Identifikation aus. Jedoch habe ich bemerkt, das der Befehl *IDN?n mit einem zusatz versehen sein muss sonst gibt er einen FEhler heraus.
Nun habe ich mein kleines Programm gestartet und bekomme folgende Fehlermeldung:
Possible reason(s):
Error 85 occurred at lcwave Read Command Error.vi
Scan From String (arg 1) in lcwave Read Command Error.vi->lcwave Error Query.vi->lcwave Reset.vi->lcwave Initialize.vi->Untitled 1
The format of the CMR? response is not as expected. Make sure that the Command Header is not being reprogrammed from the value configured in the Default Instrument Setup VI, where it is configured to OFF with the command CHDR OFF. (Default Instrument Setup.VI is called from Initialize.vi.)
Developer Suite Core -> LabVIEW 2015 Prof.
2006
EN
71083
Deutschland
Ansteuerung eines LeCroy Oszilloskop
Du solltest mal die betroffenen VIs hochladen.
Laut Fehlermeldung erwartet Deine Software auf den Befehl "CMR?" eine andere Antwort. Du solltest mal schauen, was da zurückkommt und wenn das richtig ist, wieso da ein Fehler generiert wird. Ohne VIs kann ich Dir leider nicht mehr sagen.
Gruß Markus
-------------------------------------------------------------------------- Bitte stellt mir keine Fragen über PM, dafür ist das Forum da - andere haben vielleicht auch Interesse an der Antwort !!
--------------------------------------------------------------------------
Developer Suite Core -> LabVIEW 2015 Prof.
2006
EN
71083
Deutschland
Ansteuerung eines LeCroy Oszilloskop
Was "CMR?" bedeutet solltest Du doch wissen....
Das ist der Grund, wieso ich nie fertige Treiber verwende, sondern mir mit SCPI-Befehlen und VISA-Funktionen einen eigenen Treiber bastle. Dann weiß ich wenigstens, was wann an das Gerät geschickt wird und kann die Fehlerauswertung selbst in die Hand nehmen.
Beispiele dazu gibt es hier ein paar im Forum.
Gruß Markus
-------------------------------------------------------------------------- Bitte stellt mir keine Fragen über PM, dafür ist das Forum da - andere haben vielleicht auch Interesse an der Antwort !!
--------------------------------------------------------------------------
Danke für die Hilfe. Ich habe das Problem gelöst. Das Problem scheint kein neues zu sein, ich habe es im NI Forum gefunden, wo es bereits ausführlich diskutiert wurde.
Jedoch war ich auch mit Herrn Blankman und Herrn Brown von Lecroy an der Sache dran. Hier der Schriftverkehr dazu:
Hello Saqib,
The error you are getting is coming from this:
(Embedded image moved to file: pic02582.gif) in the Read Command Error.vi
The "Scan from String" is looking for a decimal value and has some character (could be some text or non-printabel character etc.).
(Embedded image moved to file: pic20809.gif)
Here, I have setup my input string control to '' Codes Display so I could see spaces and carriage returns.
I get an error because I also have the words "Hello", "Find", "the", and "number" in my input string.
If I remove the printable text and leave the spaces, then I get:
(Embedded image moved to file: pic21148.gif)
Now, I see that the spaces are still there, but the letters are not. I can get my number from the input string with no errors.
There are a couple of ways to fix this.
If you already know what is causing the error in the input string, you can simply delete it from the string before the Scan.
You can use Scan from String in a loop to go through the string and filter out the number.
To setup the scope for LXI:
On the scope, go to UtilitiesUtilities Setup... from the pulldown menus.
Select the "Remote" tab and in the "Control from" area, select the "LXI (VXI11)" button.
(Embedded image moved to file: pic07120.gif)
Based on the error you are getting, it looks like you are connecting to the scope.
If you were unable to open the VISA session to the scope, you would see an error like this:
(Embedded image moved to file: pic08925.gif)
Regards,
Leonard Brown
Applications Engineer
1-800-553-2769
first of all I would like to thank you for your help, I really appreciate that.
I always get the error message:
Error 85 occurred at lcwave Read Command Error.vi
Possible reason(s):
Scan From String (arg 1) in lcwave Read Command Error.vi->lcwave Error Query.vi->lcwave Reset.vi->lcwave Initialize.vi->Untitled 1
The format of the CMR? response is not as expected. Make sure that the Command Header is not being reprogrammed from the value configured in the Default Instrument Setup VI, where it is configured to OFF with the command CHDR OFF. (Default Instrument Setup.VI is called from Initialize.vi.)
esz AG calibration & metrology - Max-Planck-Strasse 16 - D-82223 Eichenau Aufsichtsratsvorsitzender / Chairman Supervisory Board of Directors:
Dipl.-Ing. Siegfried Fleischmann
Vorstand / Managing Board of Directors: Dipl.-Kfm. Oliver T. Fleischmann, Dipl.-Ing. Philip M. Fleischmann, Bodo Seewald Registergericht München / Registration Court Munich: HRB 179122 Sitz der Gesellschaft / Registered Office: Eichenau
CONFIDENTIALITY NOTICE
It is confidential and may be legally privileged and protected by law. The unauthorized use, copying or disclosure of this communication or any part of it is prohibited and may be unlawful. If you have received this communication in error, please notify us and discard and/or delete the communication. Thank you. It is possible for emails to be intercepted or affected by viruses. Whilst we maintain virus checks on our emails, we accept no liability for viruses or other material which might introduced with this message.
Can you send us a screenshot of the error that you are seeing? This doesn't get saved in the attachments you sent me. Also, please confirm that you have the scope set for the LXI connection type since it looks like you are using an LXI connection string. If the scope is set to VICP instead, then you can have problems.
I've CC'd Leonard and Ho on this email... I'll also forward them your attachments.
Best Regards,
Alan
----------
Alan Blankman, Ph.D.
Technical Product Marketing Manager, Signal Integrity LeCroy Corporation 700 Chestnut Ridge Rd Chestnut Ridge, NY 10977
845-578-4412
alan.blankman@lecroy.com
I have the same problem that is described in the forum. I would like to create a VI to control my device via TCP / IP. I have programmed a short Vi, however each time the same error and this results in the following file lcwave Read Command Error.vi occurs. How can I solve this problem. I have in attached my VI, the driver files and the settings in the Automation & Measurement.
I have also installed the Scope Expolrer but without any help.
esz AG calibration & metrology - Max-Planck-Strasse 16 - D-82223 Eichenau Aufsichtsratsvorsitzender / Chairman Supervisory Board of Directors:
Dipl.-Ing. Siegfried Fleischmann
Vorstand / Managing Board of Directors: Dipl.-Kfm. Oliver T. Fleischmann, Dipl.-Ing. Philip M. Fleischmann, Bodo Seewald Registergericht München / Registration Court Munich: HRB 179122 Sitz der Gesellschaft / Registered Office: Eichenau
CONFIDENTIALITY NOTICE
It is confidential and may be legally privileged and protected by law. The unauthorized use, copying or disclosure of this communication or any part of it is prohibited and may be unlawful. If you have received this communication in error, please notify us and discard and/or delete the communication. Thank you. It is possible for emails to be intercepted or affected by viruses. Whilst we maintain virus checks on our emails, we accept no liability for viruses or other material which might introduced with this message.
[attachment "Test.vi" deleted by Alan Blankman/NEWYORK/LECROY] [attachment "Visa Testpanel.jpg" deleted by Alan Blankman/NEWYORK/LECROY] [attachment "lcwave.zip" deleted by Alan Blankman/NEWYORK/LECROY]
[attachment "Error Message.jpg" deleted by Leonard Brown/NEWYORK/LECROY]
1. Scope Explorer Installieren (LeCroy Homepage)
2. Unter Utilities->Utilities Einstellung-> Remote (Fernsteuerung) auf LXI umstellen.
3. Unter Measurement & Automation den Scope unter Netzwerkgeräte hinzufügen.
Dann funktioniert das ganze auch. Die Prozedur braucht nicht geändert werden, so wie es im ni forum beschrieben ist.