LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication

Not everything at once. First get things working with a loopback connector and a basic VI for communication with LV on the COM ports. If you get this working and know what happens in the VI we will do the other things I mentioned.

Do you know how to make this VI ? What version LV are you using ?

0 Kudos
Message 41 of 96
(1,647 Views)
I am using Labview 7.0. I should know how to make it, but I have been unsuccessful in it before, so I think with a bit of work I can do it. Pins 2 & 3 are second and third from the top left, I assume? I will look on the labels. I will let you know when I finish it.
----------------------------------------------------------------------------------------------------------------------------------------------------
I've got a sneaking suspicion that Jesus might have been made of bread. Why else did they have to put him in a warm cave and wait three days for him to rise?

Damnant quadnon intelligunt - They condemn what they do not understand.
0 Kudos
Message 42 of 96
(1,630 Views)
OK> I set up the loopback as you said. (I did find pins 2 and 3, they were labeled). I Wrote a program to write an input string to the port and read from the port in an out put string. No matter what I do, I keep getting timeout errors. I even used the example VI's that come with the program. So not even a loopback will get me what I need... Smiley Sad I begin to wonder if there is something wrong with the PCI slot that the serial ports are connected to. But that shouldn't affect COM one, since it's not in a PCI slot..... and it doesn't work either. Is my computer just screwed up? It can't be the programming. I used the official stuff even.  What can I try to do to fix this?
----------------------------------------------------------------------------------------------------------------------------------------------------
I've got a sneaking suspicion that Jesus might have been made of bread. Why else did they have to put him in a warm cave and wait three days for him to rise?

Damnant quadnon intelligunt - They condemn what they do not understand.
0 Kudos
Message 43 of 96
(1,629 Views)
Hi Cole (is it Cole and not John?),
 
First you need to check in your windows control panel-system hardware-device manager (depends on windows version) what windows says about your com port(s)
I also made a small VI for a COM port. It is only for a test and not uaseable in a program. I hope you can read it.
 
Tell me what windows thinks of your COM ports. Are you using WXP?
 
0 Kudos
Message 44 of 96
(1,620 Views)
You can also try this with Hyperterminal. Make sure that the flowcontrol is set to none.
0 Kudos
Message 45 of 96
(1,608 Views)
So the Device Manager sees all of the ports, but the first four (ME-9100 1-4) give me an error code 10 cannot start. The rest seem fine fro the manager. I tried your VI. For Com 1 it worked beautifully. For the rest, nothing. I think that indicates I need to try something very different with the ME ports. I should try using COM 1 to communicate with the instruments. I will let you know how that goes.
----------------------------------------------------------------------------------------------------------------------------------------------------
I've got a sneaking suspicion that Jesus might have been made of bread. Why else did they have to put him in a warm cave and wait three days for him to rise?

Damnant quadnon intelligunt - They condemn what they do not understand.
0 Kudos
Message 46 of 96
(1,592 Views)
Ok. Tried communicating on Com 1 with the temperature controller. Nothing works. I even tried your VI, KC. It seems odd that it shouldn't work, after i tested it with a loopback and it worked. (yes, it is Cole, John Galt is a character from a book) I will try writing my own, but we all know how successful that has been so far.
----------------------------------------------------------------------------------------------------------------------------------------------------
I've got a sneaking suspicion that Jesus might have been made of bread. Why else did they have to put him in a warm cave and wait three days for him to rise?

Damnant quadnon intelligunt - They condemn what they do not understand.
0 Kudos
Message 47 of 96
(1,586 Views)
OK, now we're getting somewhere.Smiley Very Happy  If your instrument works it's OK. But if it not works you have to look if the cable is right.
If it is not working you must measure the voltage at pin 2 and 3 (pin 5 is ground) of the com port from the PC and of the cable from the instrument.
Your PC would normally show at pin2 + or - 8-12V and at pin3 about 0V. Most often the voltage at pin2 will be + if the PC is just switched on and be - if you use or configure the com port.
Do the same with the cable from your instrument. On this connector pin2 and 3 should be the other way (pin2 = 0V and pin3 = +/- 10V)
 
If this is OK you can plug it in and things could work if not we have to look at the others side.
 

Message Edited by K C on 10-24-2005 07:59 PM

0 Kudos
Message 48 of 96
(1,589 Views)
Sorry, double-posted and removed.

Message Edited by JohnGalt on 10-24-2005 01:31 PM

----------------------------------------------------------------------------------------------------------------------------------------------------
I've got a sneaking suspicion that Jesus might have been made of bread. Why else did they have to put him in a warm cave and wait three days for him to rise?

Damnant quadnon intelligunt - They condemn what they do not understand.
0 Kudos
Message 49 of 96
(1,582 Views)
Ok. Here's going to be interesting for you. I just tested the cords. From COM1, I get somewhere around 10-11v. From the Omega Temperature Controller I get about 7.18v. From the ME card, I get 0.0 v. Never anything but 0.0. I think we may have found the problem, Watson. Thank you. Now, what does this mean. Is it broken, or just different from the normal COM port? Perhaps I should e-mail Meilhaus about this? Progress! Yay!Smiley Very Happy However, when I tried to communicate through your VI with the Temperature Controller on COM 1, it didn't work. Hmmmmm..... interesting.

Thanks very much,
Cole
----------------------------------------------------------------------------------------------------------------------------------------------------
I've got a sneaking suspicion that Jesus might have been made of bread. Why else did they have to put him in a warm cave and wait three days for him to rise?

Damnant quadnon intelligunt - They condemn what they do not understand.
0 Kudos
Message 50 of 96
(1,582 Views)