From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-19-2010 05:10 AM
Solved! Go to Solution.
07-19-2010 06:55 AM
Provide the make and model of the instrument as well as the actual error codes you are getting.
07-20-2010 07:11 AM
The OSA is 79052B. In the programming manual, the HP-BASIC language is used. I dont know how to implement such commands in Labview ( send, query, read).
I guess that we need to append some strings before and after original commands of instruments. Is it correct?
Is there anyone encourtered this problem for implementing HP-BASIC in labview?
Thank you
07-20-2010 07:21 AM
In LabVIEW, you will be using GPIB Write/Read or VISA Write/Read. You can do the same in MAX. This is such an old instrument that you may have to append termination characters such as CR or LF. This is the purpose of the mode input of the GPIB functions, With VISA, you can concantanate the constants.
If you are getting errors, please provide the error codes like I asked.
07-20-2010 09:09 AM
It seems that I cannot implement commands.
Everytime I wrote the commands, the screen of OSA display alphanumeric characters and then nothing changes. Even the light indicator does not change to remote control.
How can I deal with problems?
07-20-2010 09:25 AM
What are you using to write the commands and are you appending any termination character? What does the manual say about ternination characters. Can you attach the manual?
07-20-2010 10:07 AM
Yes, I tried to appen both termination characters: carriage return and linefeed.
For example:
This is the original command for instruments: " CENTERWL 950NM; SP 20NM;" and when I wrote it to VISA write, it does not work.
When I append \n, or \r at the end of each command above, it still does not work
I enclosed the manual for your consideration.
07-20-2010 02:32 PM
07-20-2010 03:11 PM - edited 07-20-2010 03:13 PM
You can also configure GPIB in MAX to automatically send LF with EOI. Or use the GPIB functions with mode 2. Or, as I originally said, concantanate the string with the constant. By constant, I mean the constant on the string palette.
Start with something more basic. Send ID? and then do a read.
Personally, I do all of this initial debug of the commands in MAX.
07-21-2010 03:39 AM
For ID? and *IDN command, it returns the name of display. Other commands does not work
But it is strange that when I connect GPIB to instruments (OSA), two devices are scanned ( display HP7004A, other(HP 70952B) is not recognized/responsed). It may be the source of mistake when writing commands to instruments.
Actually, when using MAX, I chose HP70004A to communicate. I dont know how to make other active.