Products > Test Equipment
UNI-T UTG932/UTG962 200MSa/s Function Arbitrary Waveform Generator
aix:
OK, I got the control panel working. It turned out that SCPI Control and Control Panel expect differently-formatted responses from the device, and so it's impossible to make both work at the same time. Here is what Control Panel expects, i.e. just the raw data exactly as the device returns it (SCPI Control wants an IEEE 488.2 Definite Length Arbitrary Block):
this.dev.COMInterface.Query("Display:Data?", 512000, out array);
int num = (int)array[0];
this.vm.IsOpen_Mode = (num & 1) == 1;
this.vm.IsOpen_CH2 = ((num >> 1) & 1) == 1;
this.vm.IsOpen_CH1 = ((num >> 2) & 1) == 1;
this.imageBuffer = new byte[array.Length - 1];
Buffer.BlockCopy(array, 1, this.imageBuffer, 0, this.imageBuffer.Length);
int tickCount = Environment.TickCount;
for (int i = 54; i < this.imageBuffer.Length; i += 3)
{
byte b = (byte)((int)(this.imageBuffer[i + 2] & 192) | ((int)(this.imageBuffer[i + 2] & 12) << 2) | ((int)(this.imageBuffer & 1) << 2) | ((int)(this.imageBuffer[i + 1] & 1) << 3));
this.imageBuffer = this.imageBuffer & 254;
this.imageBuffer[i + 2] = this.imageBuffer[i + 1] & 254;
this.imageBuffer[i + 1] = b;
}
Bitmap bitmap = new Bitmap(new MemoryStream(this.imageBuffer));
bitmap.RotateFlip(RotateFlipType.RotateNoneFlipX);
It also explains the semantics of the mystery first byte.
Thought I'd document this here in case someone else falls down the same rabbit hole in the future.
Here is the device being controlled over LAN (with a few dozen lines of Python bridging VXI-11 to USBTMC on a Raspberry Pi):
xKertx:
I bought the UTG932E few days ago and while i was testing it out i noticed that when i turn on the output, first for about 200µs waveform looks like a mess and after that it settles and looks okay.
Did i get a bad unit, or is this normal behavior for these cheap units?
I didn't see it happening in reviews.
eTobey:
That looks indeed messy. I havent seen this with the few device i tested (270-350€). But they also had many issues. They went negative, when the limit was set for 0V! You have to live with those issues. But it might as well be a defect.
csuhi17:
--- Quote from: eTobey on October 10, 2024, 01:17:27 pm ---That looks indeed messy. I havent seen this with the few device i tested (270-350€). But they also had many issues. They went negative, when the limit was set for 0V! You have to live with those issues. But it might as well be a defect.
--- End quote ---
He asked because he cannot decide whether the problem is with the zoyi-zt703 or the Uni-t signal generator.
The latest ZT-703 firmware contains a small bug in setting 250ns and below, the trigger is unstable.
+ there are also cases where the wave before the trigger is garbage in the memory.
I tested the zt703 I have with the example of xKertx, and the signal looks good to me, that wasn't there before the trigger.
If someone could check with a normal scope the case when the channel is activated, is it visible in the wave or is it just a bug in the scope.
single trigger, with the above settings, when the channel is activated.
Aldo22:
--- Quote from: xKertx on October 10, 2024, 03:41:17 am ---Did i get a bad unit, or is this normal behavior for these cheap units?
--- End quote ---
I don't think it has anything to do with cheap signal generators in general.
My $50 FY3224s has no problem with that (Attached image).
I think it's more likely that the scope is responsible.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version