1

IEEE string command

Is there a way to send a string command to my 5700A calibrator ?

Here is what I am trying that does not work..

1.004 S[1] = date{"YYMMDD")

1.005 S[2] = "CAL_RPT? CHECK[I>C:/Temp/" & S[1]  "]"

# 1.006  This creates the string CAL_RPT? CHECK[I>C:/Temp/190916.txt]

1.007 IEEE S[2]

This does not work as a string command but if I use 

1.006 IEEE  CAL_RPT? CHECK[I>C:/Temp/190916.txt]

this works.

 

Any thoughts?

 

 

2 comments

Date Votes
1
Avatar
Reiner Kuhnle

Hello Bill,

try the following code fragment:

  1.001  HEAD         CAL_CHK IN PROGRESS!

  1.002  MATH         sec      = 0

  1.003  MATH         filename = "C:\\Temp\\" & date("YYMMDD") & ".txt"

  1.004  MATH         cmd      = "CAL_RPT? CHECK[I>" & filename & "]"

  1.005  IEEE         *CLS;*RST;*WAI;*OPC

  1.006  IEEE         CAL_CHK;*OPC

  1.007  DO

  1.008  IEEE         *ESR?[I][D1000]

  1.009  MATH         sec = sec + 1

  1.010  HEAD         CAL_CHK IN PROGRESS! [V sec] s

  1.011  UNTIL        mem

  1.012  HEAD         SAVING CAL_CHK TO FILE

  1.013  IEEE         [V cmd]

 

0
Avatar
James Steeds

Why not always save it as the same filename, then have your procedure copy it into an appropriately named file immediately after?

Please sign in to leave a comment.