取消
顯示結果 
搜尋替代 
您的意思是: 

How can I identify an instrument with VISA Find Resource?

    I am trying to write a program that would control a pump and a heater with a fast ethernet switch and a netBooter. I need LabVIEW to turn the power outlets on the netBooter on and off. So first of all LabVIEW needs to identify the netBooter. I used VISA Find Resource to search for the instrument, but it found two things: ASRL1::INSTR and ASRL10::INSTR
    How do I read these strings and find out if they are referring to the fast ethernet switch or the netBooter?

0 積分
1 條訊息(共 9 條)
4,212 檢視

Those are the Com1 and LPT1 ports so unless your instruments are connected to one of those, you are not doing something correctly. You need to fully explain the physical connections that are present.

 

Your code has nothing to do with your question.

0 積分
2 條訊息(共 9 條)
4,207 檢視

Sorry, I attached the file with unsaved changes.

0 積分
3 條訊息(共 9 條)
4,202 檢視

Many (not all) instruments will respond to an "*IDN?" query. Just send that string to the instrument and read the results. If this is supported by your instrument then it should return the manufacturer and model number of the device.

=====================
LabVIEW 2012


0 積分
4 條訊息(共 9 條)
4,198 檢視

    There is a patch cord connecting the computer to the ethernet switch and another connecting the ethernet switch to the netBooter. We can turn the netBooter power outlets on and off with HyperTerminal, but we need to do it with LabVIEW so that we can control the temperature of a water tank.

0 積分
5 條訊息(共 9 條)
4,194 檢視

When dealing with network devices there aren't easy options for dynamically finding the devices you need. You need some type of protocol in order to find them. One method would be to use predetermined names and use a DNS lookup to find the IP address associated with the device. From there you can attempt to query th edevice and see if it is actually available. Other devices may support a discovery protocol. However this is very dependent on the device itself. For example, the printers my company make support a discovery protocol. If they receive a broadcast discovery message one a specific UDP port they will respond with identification data. This data is in a proprietary format. The devices you are working with may do the same. Or if you are developing them it could be something you consider doing.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 積分
6 條訊息(共 9 條)
4,188 檢視

If you have statically assigned an address to netBooter, then you can simply do a TCP/IP Write, just like Hyperterminal.

0 積分
7 條訊息(共 9 條)
4,179 檢視

@Dennis_Knutson wrote:

If you have statically assigned an address to netBooter, then you can simply do a TCP/IP Write, just like Hyperterminal.


Yes, a configuration file containing the information is always an option. I was given the impression they wanted something more dynamic.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 積分
8 條訊息(共 9 條)
4,173 檢視

I got the impression that they did not really have a clue since they were using the VISA Find Resources.眨眼表情

0 積分
9 條訊息(共 9 條)
4,170 檢視