05-25-2022 10:45 AM - edited 05-25-2022 10:46 AM
That's not gonna work. How should your device know what to do with the "C:\Users\Desktop\BOB.STA" file path, it can't look at your harddisk and if it could it would be a miracle and a security hazard.
This device is a different computer system with no understanding of anything outside its own interna and the GPIB link that connects it to your computer.
05-25-2022 10:54 AM
I know this program works well to store an image onto the 4407 drive and covert it, then transfer it to my PC. It has something to do with the BINBLK 2 vi but I don't know what its doing or how to edit it to transfer a regular text file.
05-25-2022 11:25 AM
Oof! I was assuming the A: and C: I was seeing was the filepath on the PC communicating with the ESA but of course that wouldn't work for simple SCPI commands. It's the ESA's floppy and some flash memory on it mimicking a hard drive. That makes sense now and I think Rolf was right about needing another program to transfer the data (and that it probably uses the E4407 Driver Library). It looks like that program is the BINBLK 2 FILE (Binary block to file?) program you show in the screenshot.
Where did you get that?
Can you post it here? (Also send the file off the floppy when you get your drive.)
05-25-2022 11:49 AM
someone had posted a screen capture for the PSA. I've attached it here. I've had to modify it a bit for my applications but has worked fine. I'm hoping I can perform somewhat of a reversal to move a txt file back over to the 4407. Has been proving difficult since I don't really understand what the binary VI is really doing and if its necessary for txt files.
05-25-2022 12:16 PM
@ohboy5678 wrote:
I know this program works well to store an image onto the 4407 drive and covert it, then transfer it to my PC. It has something to do with the BINBLK 2 vi but I don't know what its doing or how to edit it to transfer a regular text file.
It's simply doing the reverse of the Configure Correction VI shown earlier using the HP Binary Data Transfer mode.
Basically the flow is as follows:
:MMEM:STOR:SCR 'C:TMPIMAGE.GIF'; *OPC? // store a screen capture to a temp GIF file, it also causes the OPC to be sent when the command is finished saving the file but that is never used
:MMEM:DATA? 'R:TMPIMAGE.GIF' // Request the image data in binary form, I wonder about the R: volume name here
:MMEM:DEL 'C:TMPIMAGE.GIF' // Delete the temporary file
The second command causes the instrument to send back the data in form of early HP Binary Transfer format.
Basically a # followed by a line feed
then an asci digit sequence indicating the number of bytes to follow with another line feed at the end
then the binary data of the number of bytes indicated by the previous line followed with yet another line feed
This returns the GIF file corresponding to the screen shot. The download of the correction waveform is similar except that the binary data is probably floating point values.
05-25-2022 01:20 PM
Don't worry about the "R". That was me playing around with it in the beginning and accidentally saving it. Its supposed to be a "C". So how much of a venture is it to upload a file based on being able to download a file from the spec an?
05-25-2022 03:18 PM
I think it is pretty trivial and can be made a lot more flexible. Simply the opposite of what the Configure Correction function does.
:MMEM:STOR:CORR [ANT|CABL|OTH|USER],"<file name>"
:MMEM:DATA? "<file name>" => returns data
:MMEM:DEL "<file name>"
The returned data is in the format as configured during the Initialize.vi and that sets :FORM ASC; so while binary data would be quicker I left it at ASCII format for now. Changing the initialization would require a lot of changes throughout the existing driver.
I'm not sure in what format the data is. It seems likely that the Decimate Array function should work but you have to try out.
05-25-2022 04:11 PM
were you able to pull a correction factor off of the ESA using that program? If not the easiest way is to create a cable loss or antenna correction on the ESA itself then save it as a correction. Then run the program and transfer it to your laptop. From there you'll be able to see what format the file is in.
05-26-2022 11:38 AM
duplicated what you created but goes into the loop at the read point and does nothing. ☹️
05-26-2022 03:56 PM
found the format it uses.