简体   繁体   English

在 Labview 中将 Express 数据展平为 JSON 字符串

[英]Flattening Express data to JSON string in Labview

I am working on Labview.我正在研究 Labview。 I want to flatten the Express data type coming out from my DAQ-Assistent into JSON string.我想将来自我的 DAQ-Assistent 的 Express 数据类型展平为 JSON 字符串。 I am using JKI JSON but it is showing an error of unsupported data type: Expressdata.我正在使用 JKI JSON 但它显示不支持的数据类型的错误:Expressdata。 Are there any suggestions?有什么建议吗? 在此处输入图像描述

If the JSON VI does not know how to interpret the data from the express VI, it can't convert it into JSON.如果 JSON VI 不知道如何解释 express VI 中的数据,则无法将其转换为 JSON。 For example, the LabVIEWs native JSON VIs can not de/encode timestamps, since JSON does not have a timestamp data type.例如,LabVIEW 的原生 JSON VI 无法解码/编码时间戳,因为 JSON 没有时间戳数据类型。 An additional convention on how to store timestamps would be necessary, such as seconds since 1970 or a string in ISO time format.关于如何存储时间戳的附加约定是必要的,例如自 1970 年以来的秒数或 ISO 时间格式的字符串。

It is even possible that the data wire just contains some references, and storing the reference gives you nothing.数据线甚至有可能只包含一些引用,而存储引用不会给您任何帮助。

If you convert the express data to a more basic datatype like waveform, the JSON VI should be able to encode it.如果将 express 数据转换为更基本的数据类型,如波形,JSON VI 应该能够对其进行编码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM