Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

DTE vs DCE Selection using NI VISA

Solved!
Go to solution

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 Kudos
Message 1 of 3
(341 Views)
Solution
Accepted by topic author 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 Kudos
Message 2 of 3
(272 Views)

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 Kudos
Message 3 of 3
(247 Views)