Instrument Control (GPIB, Serial, VISA, IVI)

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

VISA write buffer

How do figure out what hex values to write in the write buffer?

0 件の賞賛
メッセージ1/8
6,691件の閲覧回数
How do you know that you have to write hex values? What does the manual say? What is the instrument?
0 件の賞賛
メッセージ2/8
6,680件の閲覧回数

To communicate with a device ? See its protocol.

 

PS : Your question is much too vague to expect a detailed answer.

0 件の賞賛
メッセージ3/8
6,678件の閲覧回数

I am documenting a VI and I saw the hex values in write buffer.

Communication is through the internet.

I dont know what device is used. What possible devices can be used?

This VI is for monitoring and display (no acquisition).

0 件の賞賛
メッセージ4/8
6,664件の閲覧回数
This is just the wrong place to be asking what instrument is connected on your network. If there is no one at your company that can provide this information, run away now. If you cannot determine it yourself, then you lack basic knowledge of instrumentation and you should ask your supervisor for another assignment or at least some time to do some studying. Quite frankly, you don't know enough to even ask reasonable questions. There are literally millions of instruments that you can connect to an Ethernet network.
0 件の賞賛
メッセージ5/8
6,659件の閲覧回数

You can always make a string indicator and change the format to be hex.

 

Most instruments use an ASCII format for sending and recieving commands/data.  The fact you are asking for hex values tells me that you are most likely dealing with an internallly developed device.

 

As has been said, you have to know the protocol of whatever you are talking to.  It would be like if I went up to somebody in Russia and started giving them orders in Portugese.  They would just look at me funny and ignore me.  But if I speak in Russian, and they are more than happy to give me the information I asked.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 件の賞賛
メッセージ6/8
6,647件の閲覧回数

First of all can you please explain the concept of sending/receiving data and protocols and how actually the communication happens? 

 

I think an SB-rio is used (or something else). Could'nt find required information from the data sheet of sb-rio.

 

The thing is, there are various systems located at different places. This VI (energy monitor) monitors the different parameters (acquired from these systems) and displays the results (It is an internet enabled monitoring system). 

 

My question is,

There is a write buffer which contains some hex values (which I assume are commands to read required parameters). How do you configure these hex values?

How do you find out that these are the commands that should be written to read the required data?

 

Please help! 

0 件の賞賛
メッセージ7/8
6,633件の閲覧回数

@kdm7 wrote:

First of all can you please explain the concept of sending/receiving data and protocols and how actually the communication happens? 

 

I think an SB-rio is used (or something else). Could'nt find required information from the data sheet of sb-rio.

 

The thing is, there are various systems located at different places. This VI (energy monitor) monitors the different parameters (acquired from these systems) and displays the results (It is an internet enabled monitoring system). 

 

My question is,

There is a write buffer which contains some hex values (which I assume are commands to read required parameters). How do you configure these hex values?

How do you find out that these are the commands that should be written to read the required data?

 

Please help! 


sbRIO?  Yep, it is an internal protocol that somebody at your company made up.  GO TALK TO THEM!

 

You just write whatever you want to send to the VISA Write.  VISA knows which communication bus to use based on the session you gave it.  When dealing with a sbRIO, it is most likely using an Ethernet connection, so it will use a TCP/IP protocol to send the data.  But you don't care about that.  All you need to know is that you write the data to the VISA Write and it will automagically make it to your device.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
メッセージ8/8
6,628件の閲覧回数