• 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
返回

电子发烧友 电子发烧友

  • 全文搜索
    • 全文搜索
    • 标题搜索
  • 全部时间
    • 全部时间
    • 1小时内
    • 1天内
    • 1周内
    • 1个月内
  • 默认排序
    • 默认排序
    • 按时间排序
  • 全部板块
    • 全部板块
大家还在搜
  • 怎么将文件从PC传输到PNA?

    嗨,我正在使用C#,visa32和LAN Connection。基于签证帮助文档,使用的函数可以是这样的,public static extern int viPrintf(int vi,string writeFmt,byte [] arr);我的代码看起来像byte [] buffer; // length = 8972 viError = visa32.viPrintf(session,“MMEM:TRAN d:\\ demofile.txt#48972%b”,缓冲区); //%b是否正确? viError = visa32.viPrintf(session,“\ n”); // END终结器它返回错误-1073807297(VI_ERROR_INV_FMT),似乎writeformat字符串不正确。我的问题是,应该使用哪种修饰符和格式代码? 1)“%b”? 2)“%y”?非常感谢,如果有人可以分享您如何使用写入块数据格式化viprintf的经验。谢谢! 以上来自于谷歌翻译 以下为原文Hi, I am using C#, visa32 and LAN Connection. Base on visa help doc, the function used could be this, public static extern int viPrintf(int vi, string writeFmt, byte[] arr); and my code looks like, byte[] buffer; //length = 8972 viError = visa32.viPrintf(session, "MMEM:TRAN d:\\demofile.txt#48972%b", buffer); //is %b correct? viError = visa32.viPrintf(session, "\n");//END Terminator it returns error-1073807297 (VI_ERROR_INV_FMT),seems writeformat string is not correct. My question is, which modifier and format code should be used?1) " %b " ? 2) " %y " ? Very appreciated if anyone can share your experiences on how to format viprintf with writing block data. Thanks!

    2018-11-22 10:48