完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我正在运行Vee 7.5,并且我有一个令人沮丧的时间弄清楚,也许有人可以指出我正确的方向。
我附上了我得到的字母数字记录显示的屏幕截图。 正如您所看到的,数字的执行方式超出了必要的范围,有时使用“to string”命令在字符长度不一致时会导致数据放置的偏移量。 有没有办法格式化进入显示器的数据,以便它只有4 sig figs?提前谢谢!John 以上来自于谷歌翻译 以下为原文 Hello all I am running Vee 7.5 and am having a frustrating time getting this figured out, maybe someone can point me in the right direction. I attached a screen shot of the alpha numeric logging display I am getting. As you can see the digits are carried out way beyond necessary means and sometime causes an offset in data placement when character length are not consistant using the "to string" command. Is there a way to format the data coming into the display so that it is only 4 sig figs? Thanks in advance! John 附件
|
|
相关推荐
5个回答
|
|
我不确定我是否跟着你。
如果您正在参考默认首选项,在“文件”下并将我的有效数字设置为4,我试过这个。 我也使用固定而不是标准。 令人费解的是,现在我把它设置为4,并且所有带有一个数据集的记录字母数字框都被冻结为4个sig figs。 出于某种原因,当你使用To String公式时,它会使用所有数据。我还尝试通过Real 64框运行数据并将字符大小设置为4,然后再将其运行到to string框中,但它显然仍然看到 数据。 我认为有一个简单的方法可以做到这一点我必须忽略一些东西。还有其他建议吗?谢谢,约翰 以上来自于谷歌翻译 以下为原文 I'm not sure I follow you. If you are refering to the default preferences, under "file" and setting my significant figures to 4, I have tried this. I have also used fixed instead of standard. What is puzzling is right now I have it set to 4 and all of the logging Alphanumeric boxs with one data set going to them are fromatted to 4 sig figs. For some reason when you use a To String formula it uses all of the data. I also tried running the data through a Real 64 box and setting the character size to 4 before running it into the to string box, but it obviously still sees the data. I think there is an easy way to do this I must be overlooking something. Any other suggestions? Thanks, John |
|
|
|
有没有办法“砍掉”数据?
简单地说,例如,12.3456789并将其设为12.34?或者是否有一种方法可以在同样的情况下舍入到特定的小数位,它将是-12.35。我认为圆形特征仅向整数舍入。约翰 以上来自于谷歌翻译 以下为原文 Is there a way to "chop" the data? Simply take for example, 12.3456789 and make it 12.34? Or is there a way to round to a specific decimal place in this same case it would be- 12.35. I think the round feature only rounds to the whole number. John |
|
|
|
全局默认数字格式对于从ToString对象发出的数据并不重要,它始终是Text数据类型。您需要在ToString对象中打开事务并从Default格式更改为Real64格式。
这将为您提供选择有效数字,固定数字等的选项。为了获得最大的灵活性,您可能还希望将每个数据项(A,B,C ...)分成一个事务(确保您也设置EOL) OFF)所以你可以单独控制每个项目的格式。 如果您在一个事务中拥有所有项目,则相同的格式将应用于所有项目。 以上来自于谷歌翻译 以下为原文 The global default numeric format is not releveant for the data coming out from the ToString object, it is always a Text data type. You need to open up the transaction in the ToString object and change from Default format to Real64 format. This will then give you the options to select significant digits, fixed digits etc. For most flexibility you may also want to split up each data item (A, B,C ...) into one transaction each (make sure you also set EOL OFF) so you can control the format for each item individually. If you have all items in one transaction the same format will be applied to all of them. |
|
|
|
你可以用一个带有多个Transactions的字符串框来实现你想要的。交易一:写“A”,设置格式为日期/时间和宽度以适应,关闭EOL OFF事务二:是“ t”EOL OFFTransaction Three:Write
“B”,将格式设置为实数然后将固定小数位设置为4转EOL OFFTransaction 4:是“ t”EOL OFFTransaction Five:写入“C”,将格式设置为real,然后将固定小数位设置为4转 EOL OFFTransaction六:是“ t”EOL OFF ......交易十三写“G”,将格式设置为实,然后将固定小数位设置为4转EOL ON应该在常规颜色中很好地格式化所有内容。欢呼, 加里 以上来自于谷歌翻译 以下为原文 You can achieve what you want with one To string box with multiple transactions. Transaction One: Write "A", set the format to Date/ Time and Width to suit, Turn EOL OFF Transaction Two: is "t" EOL OFF Transaction Three: Write "B", set the format to real and then set fixed decimal places to 4 turn EOL OFF Transaction Four: is "t" EOL OFF Transaction Five: Write "C", set the format to real and then set fixed decimal places to 4 turn EOL OFF Transaction Six: is "t" EOL OFF .. .. .. Transaction Thirteen Write "G", set the format to real and then set fixed decimal places to 4 turn EOL ON That should format everything nicely in regular coloumns. Cheers, Gary |
|
|
|
实际上你不需要“ t”字符的单独事务.REAL格式与“ t”无关,所以它只是作为“ t”发送。注意你也可以指定字段宽度和左/右对齐
在该领域内。 以上来自于谷歌翻译 以下为原文 Actually you dont need the separate transactions for the "t" character. The REAL format is not relevant for "t" so it is just sent as "t". Note that you can also specify field width and left/right justify within the field. 附件
|
|
|
|
只有小组成员才能发言,加入小组>>
1231 浏览 0 评论
2351 浏览 1 评论
2161 浏览 1 评论
2026 浏览 5 评论
2910 浏览 3 评论
976浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
709浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
809浏览 0评论
1234浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-27 20:04 , Processed in 1.447072 second(s), Total 84, Slave 68 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号