当前位置:网站首页>The serial port in the visa test panel under LabVIEW or max does not work
The serial port in the visa test panel under LabVIEW or max does not work
2022-06-10 23:47:00 【LabVIEW development】
LabVIEW or MAX Under the VISA The serial port in the test panel cannot work
What serial devices work in HyperTerminal , But not here. LabVIEW or Measurement& Automation Explorer (MAX) Under the VISA Work in the test panel ?
answer : The serial port device may work in the HyperTerminal but not in the LabVIEW or MAX Under the VISA There are two reasons for working in the test panel : Different terminators and character transmission speeds . Use the following methods to solve the problems related to these two reasons .
Ensure that HyperTerminal and LabVIEW Match the terminator used in
In general , The HyperTerminal adds a group after each message it sends \r\n, It corresponds to a carriage return followed by a line feed .
stay LabVIEW Character type input and display control can be used in \ Code display item to check whether the terminator is consistent . for example , have access to loopback The test method ( About loopback For test instructions, please refer to... In the following link NI Developer's Guide ) Send a string from the HyperTerminal , And then in LabVIEW Read back in . This will help determine what terminators are used by the HyperTerminal . then , Again using loopback test , from LabVIEW The same string is emitted in the and in LabVIEW Read back in . Comparing these values will determine whether the terminators match .
Reduce the speed of sending command strings to devices .( If the serial port device is old , also / Or it has no hardware to control it , therefore LabVIEW and / or MAX Medium VISA How fast the test panel sends serial data to it is a question
Once a character is entered into the HyperTerminal , The HyperTerminal will write these characters to the serial port . therefore , When entering a string , The HyperTerminal will send... After the end of the string 6 Independent termination characters : First of all s, And then there was t, And finally r wait .

edit
Add picture comments , No more than 140 word ( Optional )
However ,LabVIEW Will get all strings and write them to the device at once , And there is no delay between characters . You can use one for Cycle to test , Output the string to the device one character at a time , Set a short delay for the output between each character in the loop . Attached Basic Serial Write and Read_1 bit.vi Is an implementation method
More details , Participate in the introduction of the following annex .
LabVIEW、LabVIEW Development 、LabVIEW Programming 、LabVIEW Program
Examples and information mentioned above , Both in word In the attachment in , Click to download . Learn more , Can you contact us .
边栏推荐
- Project training 10 - backup of specific databases
- About not being able to create a new package under Src in idea
- How to handle the database query error with Emoji expression in Typecho- Xingze V Club
- LabVIEW错误“内存已满 - 应用程序停止在节点”
- LabVIEW执行串行回送测试
- Yuntu says that every successful business system cannot be separated from apig
- [Video] kmeans mean clustering and hierarchical clustering: R language analysis life happiness index visualization | data sharing
- MySQL table mechanism
- It is known that the transverse grain pressure resistance of a certain wood obeys n (x, D2). Now ten specimens are tested for transverse grain pressure resistance, and the data are as follows: (unit:
- 可扩展到Max–MCU和MPU开发,使用相同的许可证
猜你喜欢

The time (in minutes) required for a group of workers to cooperate to complete the assembly process of a part are as follows:

Fiddler creates an autoresponder

300 questions on behalf of the first lecture on determinant

【视频】KMEANS均值聚类和层次聚类:R语言分析生活幸福指数可视化|数据分享

怎么生成自动参考文献(简单 有图)

LabVIEW改变Point ROI Overlay的形状或颜色

LeetCode 501 :二叉搜索樹中的眾數

PwnTheBox,Pwn:tutorial1

宁愿“大小周”、每天只写 200 行代码、月薪 8k-17k 人群再涨

宝塔计划任务Shell脚本定时删除某各目录下所有文件【记录】
随机推荐
About not being able to create a new package under Src in idea
[Video] kmeans mean clustering and hierarchical clustering: R language analysis life happiness index visualization | data sharing
Creating dynamic two-dimensional array with C language
34. 在排序数组中查找元素的第一个和最后一个位置-二分查找、双指针
LeetCode+ 21 - 25
细数十大信息安全原则
LabVIEW错误“内存已满 - 应用程序停止在节点”
Vs tomato assistant add header comments and usage
300题 线代第一讲行列式
It is known that the transverse grain pressure resistance of a certain wood obeys n (x, D2). Now ten specimens are tested for transverse grain pressure resistance, and the data are as follows: (unit:
Baidu quick collection SEO optimization keyword ranking optimization skills
LabVIEW获取IMAQ Get Last Event坐标
上海证券开户是安全的吗?
LeetCode 501 :二叉搜索树中的众数
easyrecovery15操作简单方便的数据恢复工具
Data and information resource sharing platform (V)
Executor - Shutdown、ShutdownNow、awaitTermination 詳解與實戰
使用TSA包中的 beersales 数据集建立TAR模型
Usage of C tryparse
Postgraduate entrance examination English vocabulary unit1