LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem running two parallel while loops

Solved!
Go to solution

Try connecting pin 2 to 3 on your USB-serial adapter. Then, using whatever comm program ( I've come in late, do you see the USB-serial adapter in MAX?), send characters. If the adapter is working correctly, and configured correctly with your comm program, you should see the characters you are sending echo'd back, or "looped back".

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 41 of 95
(766 Views)

Google Null Modem cable.  You'll get a dozen explainations at least.  Basically it is just two of the wires switched at the pins from transmit(TxD) and recieve (RxD) pins.  How the device is wired determines which cable.  I believe standard is RxD on pin 2 and TxD on pin 3.  So if both devices are standard pinouts, you whould need a null modem cable.  ei, When your scale talks from pin 3, it is received on pin 2 by the computer. Straight through means the device manufacturer already switched the wiring inside the device for you.

 

I'm no expert, but it looks to me like may need a null modem cable (now that I look at your pic again).  I'm not sure what the Summit Series is vs. the Standard, (a model of your scale??).  Maybe some of the seasoned veterans out there can weigh in concur or reject my input here?

Message 42 of 95
(763 Views)
Hi, AMP12:
Actually, all the poster has to do when using hyperterminal is to press his "print" button the equipment.  This pormpts the equipment to generate an output to the serial port.  Later, the poster will create code to send the print command programmatically, but the command structure is very confusing (definitely not SCPI), so we'll have to use the print button for now.
The poster provided the manual earlier in the thread if you wanted to check it out.  (The manual is very confusing.)
Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 43 of 95
(755 Views)

Hi AMP12,

    For differentiating null modem cable and straught through RS232 I used this source:
http://digital.ni.com/public.nsf/allkb/1EE0DD8AF67922FA86256F720071DECF

 

    The scale model is Denver instruments SI-2002. The manuals are attached below.

 

Regards,

avi0111

Download All
0 Kudos
Message 44 of 95
(751 Views)

Hi Billko,

    I will not be switching my PC for now, Lab admin has not authorized me to remove the older version of LabView (8.2 and defunct for some reason). So switching back what I was using. Is there a different cable I might have to purchase to get this to work.

 

PS: will connect Pins 2 to pin 3 tomorrow and try commands over Hyperterminal tomorrow.

 

Thanks for all the suggestions,

avi0111

0 Kudos
Message 45 of 95
(747 Views)

Yes.  As AMP said, you will need a null modem cable according to the pinout diagram you posted.

 

(Didn't the manual tell you what kind of cable to use?)

Message 46 of 95
(730 Views)
Hi RavensFan,
I unfortunately thought there was just one kind of RS232 cable out there.
Avi0111
0 Kudos
Message 47 of 95
(725 Views)

@RavensFan wrote:

Yes.  As AMP said, you will need a null modem cable according to the pinout diagram you posted.

 

(Didn't the manual tell you what kind of cable to use?)


Actually, RavensFan - the manual does NOT tell you what kind of cables to use!  TThe documentation is really sub-par.  😞

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 48 of 95
(713 Views)

Hi everyone,

    I was going to purchase a null modem cable, and would like someone to confirm if the pins match. Basically the technical details provided on amazon is confusing. Here's the details;

  • DB9 Female / DB9 Female, 8C, 6 ft.
  • DB9 Null Modem Cable. 28 AWG
  • Pin Outs: 1+6-4, 2-3, 3-2, 4-1+6, 5-5, 7-8, 8-7, G-G

And the pin requirements according to the manual is also attached. DB9 to DB9 according to the manual says pin 4 is hooked upto pin 4. So what does 1+6-4 and 4-1+6 mean on the cable I picked out.

 

Thanks, avi0111

0 Kudos
Message 49 of 95
(706 Views)

@billko wrote:

@RavensFan wrote:

Yes.  As AMP said, you will need a null modem cable according to the pinout diagram you posted.

 

(Didn't the manual tell you what kind of cable to use?)


Actually, RavensFan - the manual does NOT tell you what kind of cables to use!  TThe documentation is really sub-par.  😞


That is a bad manual.  The phrase "handwire handshake" is pretty bad also.  Is that a bad translation from Chinese?

 

The manual doesn't necessarily say that pin 4 is connected to pin 4.  It kind of gives that impression, but that makes no sense.  Get the null modem cable and try that.  Normally the handshaking lines are crossed just like the details you got from Amazon for a null modem cable.  A straight cable, a null modem cable, male and female gender benders, should all be part of your arsenal for working with serial ports anyway.  A loopback plug, a null modem adapter, and a box with LED;s that show which lines are functioning during the communcation are all useful tools also.

 

 

Message 50 of 95
(687 Views)