Qizhen's profileLabVIEWPhotosBlogListsMore Tools Help

    女儿的名字

    虽然我的下一代影都还没有呢,但我未雨绸缪,已经开始为他们想名字了。由于干我这行的倾向于生女儿,目前只考虑了女儿的名字。

    老婆是山东人,所以老早给女儿想了个名字叫“阮思齐”。我并不是很喜欢这个名字,理想的名字应当是:字不算太生僻,但组合起来却没有重名的。“思齐”这个名字网上一搜一大把,创意不够。

    上个星期,回南京参加同学聚会。老同学得知我十年没跳槽,还在NI工作,跟我打趣说:“你打算在NI呆一辈子啦,将来生个孩子叫‘阮恩爱’得了。”
    “阮恩爱”这名字不算常见,不过听起来像是韩剧里的人物,不好。再说了,也不能真把公司名挪来用啊。叫“阮恩爱”、“阮仪器”,将来孩子会恨我的。

    不过这事还没完,回上海的路上,老婆说如果把你们公司名称里的“恩”“仪”两个字取出来做名字还是不错的。回到家Google上一搜还真没有叫“阮恩仪”的。我仔细想了想,这个名字还不错:常用字、无重名、有纪念意义,还带着台湾味,比韩版的好听多了。


    Comments (16)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    arrowpig xuwrote:
    恩仪 很好听
    Nov. 8
    心花怒放wrote:
    说到给小孩起名,我过了年也有小孩了,不过名字已经起好了,起了一个男女通用的,呵呵。本来,我已经为小男孩起好了,可是老婆一时也不知道该给女孩起什么名字。后来,我老婆终于起了一个,宇,结果我我母亲正好过来,开口就起了一个,平,平平安安,我们觉得也不错,就基本定下了。因为我的姓写起来很复杂,所以,名字就起一个简单一点的,也不错。
    Nov. 7
    Qizhen Ruanwrote:
    函数传递的参数无论什么数据类型都是存放在一块内存里的,所以有时可以用其它类型代替一下。对于tBCTW_DLDevInfo* 这个数据类型,你可以试着用一个有3076个元素u8数组来读一下。
    不过,LabVIEW毕竟不能支持所有复杂数据类型。在遇到类似的有复杂数据类型参数的情况下,我还是建议你自己再写一个DLL,把原来DLL函数中的复杂数据类型拆解成简单数据类型。然后在LabVIEW中使用你自己做的DLL。
    Nov. 6
    心花怒放wrote:
    如果您需要调试的话,我可以把Dll和头文件发给您。
    Nov. 6
    心花怒放wrote:
    实在不好意思啊,阮老师,刚才使用Opera发评论,没有成功,只好在这里再发一次了,请您指导下,谢谢了。
    Nov. 6
    心花怒放wrote:
    阮老师,您好。对于“C 语言的结构中如果还嵌套了数组,是不能直接对应于LabVIEW中嵌套了数组的Cluster的。在LabVIEW中,只能把数组的元素都拆开来放在Cluster中。”我这里有一个用C++写的库,函数原型是BTCW_FUNC_DLL tBTCWStatus BTCW_FUNC_TYPE BTCW_DL_GetDevInfo(tBTCWHdl Hdl, unsigned __int16 index, tBCTW_DLDevInfo *pDLDevInfo); 关键看tBCTW_DLDevInfo,这是一个结构体,定义为typedef struct{
    unsigned __int8 WriteVerifyMode; // tBTCW_DLWriteVerifyMode
    unsigned __int8 SectorEraseMode; // tBTCW_DLSectorEraseMode
    unsigned __int8 ConfigFixedHeader; // To decide if include fix header
    unsigned __int8 Reserved;
    unsigned __int8 MinidriverPath[BTCW_DL_DEV_PATH];
    unsigned __int8 FirmwarePath[BTCW_DL_DEV_PATH];
    unsigned __int8 ConfigPath[BTCW_DL_DEV_PATH];
    }tBCTW_DLDevInfo;
    而BTCW_DL_DEV_PATH预定义为#define BTCW_DL_DEV_PATH 1024。
    如果在导入的LabVIEW簇中不能直接使用数组,那这个簇里得有3000多个元素啊!!!
    其实,如果元素个数少的话,使用簇与数组的转换函数很容易处理。但是转换函数的限制是256,根本无法转换大数组啊。
    这个问题是我在使用导入共享库功能的时候发现的。当时,LabVIEW转换到这个函数时,像死机了一样,我等了一上午也没有转换过去,后来一看,估计是数组太大的原因。
    想请教一下阮老师有没有什么好的办法。先谢谢您了。
    另:还有一个比这个更头痛的函数:BTCW_FUNC_DLL tBTCWStatus BTCW_FUNC_TYPE BTCW_DL_StartDownload(tBTCWHdl Hdl, tBTCW_PortInfo *pBTCWPortInfo, tBTCW_Download *pDownload);
    tBTCW_PortInfo比较简单,tBTCW_Download定义是,
    typedef struct{
    __int16 BTPIndex;
    unsigned __int8 UpdateWithDevInfo;
    // if UpdatwWithDevInfo is false, will use the values in BTP. Otherwise, use DLDevInfo
    tBCTW_DLDevInfo DLDevInfo;
    unsigned __int8 UpdateWithBDADDR;
    // if UpdateWithBDADDR is false, will use 0xFFFFFFFFFFFF as BDADDR
    unsigned __int8 SectorEraseTimeout;
    // if chip erase, then we need to wait time-out for erase command
    tBTCW_BDADDR BDADDR;
    tBTCW_DownloadCallBack pCallBack;
    }tBTCW_Download;
    这个就是结构里面有结构体了,唉。
    Nov. 6
    BO FUwrote:
    思鲁会让我想起斯巴鲁。恩仪这名字不错,用了~
    Oct. 31
    Shiwrote:
    说实话,阮恩仪,还真不错耶~顶一个
    Oct. 29
    佳 张wrote:
    原来生活中还是挺有情趣的~~~
    Oct. 29
    Jucao Liangwrote:
    叫思齐的人是很多,见贤思齐嘛。毛泽东的儿媳就叫刘思齐。
    Oct. 28
    demi Gwrote:
    阮思鲁也不错啊,又中性,又没有重名。而且鲁国首都是曲阜,还是孔子故乡。
    思齐主要是因为“见贤思齐”,所以叫的人比较多。
    Oct. 28
    帆 王wrote:
    工作10年了也没有要孩子。。。算晚么?
    Oct. 28
    帆 王wrote:
    干我这行的倾向于生女儿,

    这个有倾向性?
    Oct. 28
    你的姓已经很特别了
    Oct. 28
    ruirui zhangwrote:
    我觉得ruan 和 en 有点拗口,而且也许孩子会被人起外号 阮阿姨。。。
    别打我啊,忠言逆耳
    Oct. 27
    Yongqing Yewrote:
    真敬业啊。。。
    Oct. 27

    Trackbacks

    The trackback URL for this entry is:
    http://ruanqizhen.spaces.live.com/blog/cns!5852D4F797C53FB6!4750.trak
    Weblogs that reference this entry
    • None