Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

HP Basic commands in Labview

I am trying to create my own driver for the HP 80000 datagenerator as there is no driver supplied by Agilent or NI. There is a problem when I want to transmit a data file from the computer to the HP80000
,therefore you have to use the BASIC command TRANSFER
in order to transmit a large block of data from a buffer in the controller (the PC) to the datagenerator.
Herefore you have to set up an integer buffer on the PC and so on..

So Is there a (easy) way to implement HP-BASIC commands in Labview?
0 Kudos
Message 1 of 13
(7,679 Views)
Hi,
We do have language interfaces for different languages. But I'm not really sure what sort of implementation your are seeking. Do you want to use a GPIB board to communicate to the instrument? If so, you have to make sure that the instrument it IEEE 488.1 or 488.2 compatible. As far as having a BASIC interface in LabVIEW, there isn't one at this moment. If you could give me more details on how exactly you want to implement this, that would be much more helpful.
Thanks for contacting National Instruments.

A Saha
Applications Engineering
National Instruments
Anu Saha
Academic Product Marketing Engineer
National Instruments
0 Kudos
Message 2 of 13
(7,679 Views)
Hi there,
yes indeed I want to control the instrument using G(H)PIB commands. There is no problem using these commands in Labview but as the machine comes from the time where they used HP-Basic, the routine to send data to it includes besides GPIB commands a few necessary HP-Basic commands like TRANSFER e.a
So my question is can this be done in LV ?
Maybe if I knew what the HP-Basic commands do at low level point of view I could implement it some way or another ... Please check file attachment for the actual code I want to implement than I think you will understand. Take a look at line 16 cause this is the line of witch I have NO IDEA how to do it in LV
0 Kudos
Message 3 of 13
(7,679 Views)
Hi,
Thanks for the clarification. I believe what you need is a HP-Basic command interpreter. Besides just sending command strings using LabVIEW, you can't do much else using GPIB. There isn't a HP-Basic interpreter in LabVIEW. So what you would essentially have to do is, find out what the TRANSFERT command does at the low level. Then try to implement that manually. In either case, there isn't anything built in to LabVIEW that will do this yet.

Hope I answered your question. Please let us know if you have any further questions.

A Saha
Applications Engineering
National Instruments
Anu Saha
Academic Product Marketing Engineer
National Instruments
Message 4 of 13
(7,679 Views)
hi,
I have the same problem i was wondering if you have solved it , and how?

thank you,
0 Kudos
Message 5 of 13
(7,679 Views)

I have the same problem what did anyone ever do about this.

 

Jason

0 Kudos
Message 6 of 13
(7,247 Views)
You've posted to a very old thread. Are you having the same issue with the TRANSFER command? If so, the same advice applies. You need to determine exactly what the command does in HP-Basic. If you can provide that information, someone can probably help you translate that into a LabVIEW function.
0 Kudos
Message 7 of 13
(7,237 Views)

This is an old thread.  This command is what I was trying to use though.  My understanding of the TRANSFER command is that it transfers all the data that is in the memery of the instrument you are connected to.  Like a data dump.  What I am trying to do is save readings in the instrument (a meter) then transfer the readings controller (a computer) after I have obtained all the readings.   

0 Kudos
Message 8 of 13
(7,234 Views)

That does not sound any different than a GPIB/VISA Read. This may be some short of shortcut to an actual GPIB functon or it might do a read with some additional formatting. There was nothing about HP-Basic that could not be acoomplished with any other programming language. Instruments were (and are not now) designed to only work with one language. Every instrument command should be documented in the manual and every command is available in any programming language that you might want to use. If there is an instrument command to take multiple readings, then there is a GPIB command to retrieve them. As I said, it really does not sound like you need to do anything other tha a GPIB/VISA Read when the readings are complete.

 

You might also want to check the Instrument Driver Network for a driver for your DMM. If there is a driver, I'm pretty sure that would be easier to use than trying to translate some old HP-Basic code line-bylin.

0 Kudos
Message 9 of 13
(7,217 Views)

Hi everybody,

 

I am starter to Labview and I am currently assigned to control OSA (HP 70952B): input starting, stopping wavelength, and number of sampling points. I've read the programming manual and I've tried to send some commands (string commands in manual) to OSA using MAX but it seems that it doesn not work correctly.

 

Could you let me know how to implement send, query, read command in addition to device's string command?

 

Thank you very much

0 Kudos
Message 10 of 13
(6,144 Views)