| Products > Test Equipment |
| Stanford Research PS375 PC communication Software |
| << < (2/2) |
| HKJ:
--- Quote from: simba15 on October 12, 2022, 08:11:30 pm ---I can see the device is responding with the measured value but it seems the program is blocking it as the response contains more than just the decimal value. ;; 01: Tx <READ?> ;; 01: Rx <+2.01366577E+01VDC,+133.432121SECS,+00792RDNG#> ;; 01: Rx as numbers <NaN NaN NaN> I can see the "readFormat" section but I don't see this in the Keithley 2000 def or the HP34401 def file. How can I resolve this? --- End quote --- #askValuesReadFormat uuu And then you must have a #value for each number: #value Volt V D5 #value Time s D2 #value Count - D0 You can ignore some of the numbers (here the count): #askValuesReadFormat uux And that means one #value less. #value Volt V D5 #value Time s D2 You cannot use spaces in the names, but you can use a underscore _ and it will be replaced with a space. |
| simba15:
So seems i am stuck on this step. I am using the HP 34401a as a reference ( as I have this and it works great) I cannot see #askValuesReadFormat in the def file, but it seems the 34401a is doing some conversion, as the response is adjusted. ;; HP34401A: Tx <READ?> ;; HP34401A: Rx <-1.21400000E-04> ;; HP34401A: Rx as numbers <-1.214E-4> Where is this occur in the 34401 def file? What is refereed to by the D0...D6 values? Are these part of there Meter SCPI? of part of "TestController" Thanks! I really hope to get this working. I Also attached my testing def file if it helps. |
| HKJ:
--- Quote from: simba15 on October 17, 2022, 07:55:56 pm ---So seems i am stuck on this step. I am using the HP 34401a as a reference ( as I have this and it works great) I cannot see #askValuesReadFormat in the def file, but it seems the 34401a is doing some conversion, as the response is adjusted. ;; HP34401A: Tx <READ?> ;; HP34401A: Rx <-1.21400000E-04> ;; HP34401A: Rx as numbers <-1.214E-4> Where is this occur in the 34401 def file? What is refereed to by the D0...D6 values? Are these part of there Meter SCPI? of part of "TestController" Thanks! I really hope to get this working. I Also attached my testing def file if it helps. --- End quote --- Using a voltmeter as reference is not that good of a idea, because it has different modes, a power supply do not. It makes the definition rather different. A meter needs the #askMode and power supply will usually not need it. The #askValuesReadFormat is used when the device returns anything but plain numbers, in this case there are units attached to the number and you need to get rid of them. Like this line: #value VoltageDC V D6 VDC,d It is only used when the meter is in voltage or diode more (VDC,d), removing the last part will make the line valid all the time: #value VoltageDC V D6 The D0..D15 is number of decimals TestController will display. In TC there are 3 basic numeric format D=Fixed number of decimals, X=Up to number of decimals, SI=Use si prefix (MKmunp) and use up to specified number of digits. In a power supply something in the range D1 to D4 is usually needed. I believe your biggest mistake was starting with a voltmeter definition, instead of a power supply definition. You need to fix the #value line and you will probably need to get rid of: #askMode #interfaceType DMM BMM #interface readValue 0 #cmdMode #prepareSample #finalCmd And the associated lines. |
| simba15:
HKJ, Thank you very much. I was able to get the meter to respond to the measured values and was able to graph some data. The next challenge is the Current value always responds in unsigned format. this makes the program think the the value is negative Meter responds with 4E-6 Is there a way to filter the "-" value? The manual states it is "unsigned" Thanks. I will be sure to add this meter to the main thread once its it 100%. |
| HKJ:
--- Quote from: simba15 on October 24, 2022, 12:58:18 pm ---The next challenge is the Current value always responds in unsigned format. this makes the program think the the value is negative Meter responds with 4E-6 Is there a way to filter the "-" value? The manual states it is "unsigned" --- End quote --- That do not make sense, TC knows hos to interpret 4E-6 as 4uA. When needed you can do a lot more filtering with #askValuesMathFormat (That is similar to :readmath: at other locations), but you do not want to remove the "E-6", it is needed to get the correct value. --- Quote from: simba15 on October 24, 2022, 12:58:18 pm ---Thanks. I will be sure to add this meter to the main thread once its it 100%. --- End quote --- I look forward to it, it is always nice to add another device to the supported list. |
| Navigation |
| Message Index |
| Previous page |