I am trying to trigger a sweep protocol through SCPI commands. I want to be able to set the trigger on "auto" and do the equivalent of pressing the trigger button on the machine. I scoured programmers guides and command expert and only found commands to use the manual trigger. Is there a way to set the trigger to auto and then use the TRIG:ALL:IMM command to trigger the power supply?
My current code is below. Right now it loads everything and brings up the graph like it is supposed to, but it doesn't seem to trigger.
First, a state file with all of the sweep parameters is loaded, then:
At this point the image shows and it should be a newly triggered data set, but it just shows the last data collected.
I am also trying to get a screen dump from the power supply. I used the HCOP:SDUM:FORM JPG and HCOP:SDUM:DATA? commands and it returns something, but I'm not really sure how to deal with the data and get it into a viewable format.
I have heard back from the support group. Here is what they say:
Although the button is labeled “Trigger”, its function is the equivalent to the SCPI command “:INIT”.
You need to send “:INIT” instead of “:TRIG”.
Besides, you need to set TRIGGER count the same number as the sweep step.
Both ARM source and TRIGGER source should be “AUTO”.
Thank you for passing it along. Let me know if anyone has insights. I figured out the triggering issue, but how to format the screen dump data to get a picture is still an issue.
For anyone who might benefit, I used the following code to trigger and call data from the power supply.
READ TEST X STR
READ TEST Y STR
I took a look at the example and I actually have seen it before. thats were I got the SCPI commands for the HCOP:SDUM function. However, because I am using vee and not Visual Basic, I am having a hard time finding an analog for the "FileStream" command in visual basic. Do you know of anything? I am at the point were I can get the binary block output and I just need to know how to format or save it to get the picture.
My vee code is attached.