Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

developing serial driver for hp54615B

Hellow LabVIEW User's,

I am dveloping a serial driver for hp54615B scope. i went through the GPIB driver for the hp54615B which NI has developed. In this driver hp546xx Read Delay.vi which commands of hp54615B you are setting to the following inputs.

1) what does the following parameters corresponds to

a) Channel1 edge count
b) Channel2 edge count

2 ) Similarly in hp546xx Read Min Max Waveform.vi

what is the min waveform array and max waveform array consists of when i acquire some 5000 points.

3) Similarly in hp546xx Configure Record length.vi
what are these parameters corresponds to
a) time per record .
b) minimum record length (is this input same as no of points to acquire ).

c) acquisition start time
inputs corresponds to and which command should i pass to achieve this.

waiting for reply

Thanks & Regards
anil
0 Kudos
Message 1 of 2
(3,204 Views)
I'm thinking that you are using IVI driver. IVI driver from NI site is distributed with source code. This driver does not support serial interface, but you can change source code and recompile DLL. LabVIEW IVI driver is calling DLL.

Driver will require following changes:
1) in IviInit function you must set for serial interface some attributes. (VI_ATTR_TERMCHAR, etc.)
2) for serial interface you cannot use events. WaitForOPCCallback must be changed.
3) All functions which read binary data must be changed. You must disable term. character during binary transfer.

For more details download tktds3x0 driver. This driver supports serial interface.

>-----------------------------------------------------
* hp546xx Read Delay.vi call for edge count param
etrers following command:
MEAS:DEF DEL,,
If slope is set to falling, value is inverted.
For example:
Channel1 Slope: Rising
Channel1 Edge Count: 2
Channel2 slope: Falling
Channel1 Edge Count: 5
Command: MEAS:DEF DEL,2,-5

* Read Min Max Waveform you can call only if the acquisition type is peak detect. In this case scope returns two waveforms. Odd elements in buffer(WAV:DATA?) are elements of min waveform and even elements are elements of max waveform.

* hp546xx Configure Record Length.vi
* minimum record length - is the minimum number of points which you require. If you set this value to value which is not supported but is less as maximum for example 4901, driver sets to instrument number of points WAV:POIN 5000. Driver will guarantee that read function returns wavefrom with this size.
* time per record is time for aquire all points. (TIM:RANG)
* This time represents the time of first element in waveform. if you set 0.0 -> first el
ement of waveform is trigger. (TIM:DEL) the range depends on the time per record.

Regards,
Zdenek
0 Kudos
Message 2 of 2
(3,204 Views)