[LON-CAPA-users] Unordered Response Question Error

Carl Lira lira at egr.msu.edu
Mon Jan 23 23:21:40 EST 2017


not sure of the impact of the ! in the responseparam field. I believe you
should have some tolerance if you have a calculated real number, e.g.

 

<responseparam name="tol" type="tolerance" default="2%"
description="Numerical Tolerance" />

 

 

 

 

From: lon-capa-users-bounces at mail.lon-capa.org
[mailto:lon-capa-users-bounces at mail.lon-capa.org] On Behalf Of Harding, Gene
L
Sent: Monday, January 23, 2017 10:00 PM
To: 'lon-capa-users at mail.lon-capa.org' <lon-capa-users at mail.lon-capa.org>
Subject: [LON-CAPA-users] Unordered Response Question Error

 

Hi,

 

I am trying to embed some unordered numericalresponse parameters inside an
xml table. I modeled my xml after the example in LON-CAPA, but am having two
problems with it. The first problem is an error referring to tolerance
range, and the second is incompatible units. This is a screenshot:



 

This is the code I am using:

<startouttext />

A $Pa dBm, $fa-MHz RF input signal and a $Pb dBm, $fb-MHz LO signal are
applied to a nonlinear mixer with $Zin-Ω impedance. Complete the table
of IF cross products for m,n equal 1,2.

 

<! Display numeric response inside a table >

<table style="width:400px" border="1" cellpadding="1" >

  <tr>

    <td> m </td>  <td> n </td>  <td> |mf<sub>a</sub> ±
nf<sub>b</sub>| </td>  <td> Cross Products </td>

  </tr>

  <tr>

    <td>1</td>  <td>1</td>  

    <td>

<numericalresponse format="0f" unit="MHz" id="11">

    <answergroup type="ordered">

        <answer type="unordered">

            <value>$fa</value>

            <value>$fb</value>

        </answer>

    </answergroup>

    <!responseparam name="tol" type="tolerance" default="0"
description="Numerical Tolerance" />

    <textline size="8" readonly="no" />

    <textline size="8" readonly="no" />

</numericalresponse>

    </td>  <td>$f11_1 MHz $f11_2 MHz</td>

  </tr>

  <tr>

    <td>1</td>  <td>2</td>  

  </tr>

  <tr>

    <td>2</td>  <td>1</td>  

  </tr>

  <tr>

    <td>2</td>  <td>2</td>  

  </tr>

</table>

 

<endouttext />

 

Any ideas why I am getting these two errors?

 

Thanks for any advice you can provide.

 

Best regards,

 

Gene L. Harding, PE

Associate Professor of ECET

574-520-4190

Purdue University-South Bend

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-users/attachments/20170123/518f23d0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 33938 bytes
Desc: not available
URL: <http://mail.lon-capa.org/pipermail/lon-capa-users/attachments/20170123/518f23d0/attachment-0001.jpg>


More information about the LON-CAPA-users mailing list