Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading from HP3562A Dynamic Signal Analyser

Hi all,

How can I read from a HP3562A DSA with Visual Basic?
I have some hp basic code that I have to convert.
Can somebody convert this hp basic code to visual basic code for me?
Here is the hp basic code:
1. ASSIGN @Path TO Dsa
2. OUTPUT @Path; "DDAN"
3. ENTER @Path USING "#, 2A, W"; A$, Length
4. Float = Length DIV 8
5. REDIM Meetwdsa(1:Float), Meetw(1:Float-66)
6. ASSIGN @Path; FORMAT OFF
7. OUTPUT @Path;Meetwdsa(*)
8. ASSIGN @Path; FORMAT ON
9. OUTPUT @Path; "LCL"
10. ...

Most code is allready converted to visual basic, the lines 6, 7 and 8 not.
So if you only know how to do that please tell me.

Here is some more information:
I am using an GPIB card from National Instrument.
I have the driver
s.
I can send DSA commands to the DSA.
I can not read data from the DSA.
When I write the array on the screen (hp basic) then I see numbers like this: -1.003445 and 0.342344 so this I have to do with real (float) numbers.

If there are some other this that you want to know, just ask me.

Thanks,
Stageman
0 Kudos
Message 1 of 2
(3,483 Views)
I don't know HP basic but you would need the VB lang. interface for GPIB comm. Refer, ni.com > NI Developer Zone > Development Library > Instrument Connectivity > GPIB > Programming > Language Interfaces
0 Kudos
Message 2 of 2
(3,483 Views)