Instrument Control (GPIB, Serial, VISA, IVI)

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

DTE vs DCE Selection using NI VISA

解決済み
解決策を見る

I am working on a project that involves the use of the NI USB-232 cable, part number 778472-01, and have been having some slight troubles during setup. After installing the proper drivers and NI software such as MAX and VISA, I have been trying to figure out how to configure the wire mode as either DCE or DTE.

 

According to the various instructions I have found, this should be as simple as opening the hardware configuration utility, accessing a dropdown, and changing it there. However this drop down is not present, or at least anywhere that I can see. Using VISA, I can see the wire mode attribute, and can see that it is currently set as DTE, but can not seem to find a straightforward way of changing it.

 

My leading suspicion is that this cable does not support switching between the two, as on the datasheet (see attached, on page 9) it mentions that switching is only possible for 232/2 or 232/4 cables. I'm hoping I'm just missing something small in the software somewhere and that this cable actually has the functionality, but if not, then I will just modify my project plans slightly.

0 件の賞賛
メッセージ1/3
992件の閲覧回数
解決策
受理者 pweil95

@pweil95 wrote:

I am working on a project that involves the use of the NI USB-232 cable, part number 778472-01, and have been having some slight troubles during setup. After installing the proper drivers and NI software such as MAX and VISA, I have been trying to figure out how to configure the wire mode as either DCE or DTE.

 

According to the various instructions I have found, this should be as simple as opening the hardware configuration utility, accessing a dropdown, and changing it there. However this drop down is not present, or at least anywhere that I can see. Using VISA, I can see the wire mode attribute, and can see that it is currently set as DTE, but can not seem to find a straightforward way of changing it.

 

My leading suspicion is that this cable does not support switching between the two, as on the datasheet (see attached, on page 9) it mentions that switching is only possible for 232/2 or 232/4 cables. I'm hoping I'm just missing something small in the software somewhere and that this cable actually has the functionality, but if not, then I will just modify my project plans slightly.


The difference between DTE and DCE is physical.   You can't reverse the copper with software.   Period, end of sentence.

 

You need a different cable assembly or a crossover adapter that matches the physical design of your endpoints.


"Should be" isn't "Is" -Jay
0 件の賞賛
メッセージ2/3
923件の閲覧回数

Thanks for your reply! I think that's where my confusion came from, since my intuition would be that its a physical connection, but when looking into the datasheet and other examples of NI VISA, it mentioned the ability to switch. Since it can't be switched, I will modify my plans for the cable instead, thanks for clearing it up!

0 件の賞賛
メッセージ3/3
898件の閲覧回数