Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Loss serial input with re install of Labview

I have an existing VI that is trying to connect through Com 1 to an Emveco testing machine. The hard drive crashed and I am trying to re install LabView on a new hard drive. When I run the VI in the new installation, it does not seem to communicate to the testing machine. I have opened hyperterminal and can see the data coming in the serial port. I am not sure if I loaded the correct driver for serial communications and also I not not sure how to check to see if the serial comm. settings are right in LabView
0 Kudos
Message 1 of 15
(4,808 Views)

Hello -

It appears that your hardware is working, as verified by hyperterminal. Therefore, the problem most likely is with the software.

Are you receiving any error messages? Or does the serial port just appear to not communicate when the VI is run?

What version of LabView are you using? Did you install the same version on the new hard drive?

Does your program use VISA? You may not have VISA installed on the new machine and this may be causing the problem. You can verify that VISA is installed by opening Measurement and Automation Explorer and expanding the software list in the left column by clicking on the "+".

Have you tried to verify serial communication in LabView by running one of
the example VIs? Try to run the LabVIEW <-> Serial.vi found in the Example Finder >> Hardware Input and Output >> Serial folder.

Let me know if any of these suggestions solve your problem. If not, please provide more information and I will continue to research the issue. Have a great day!

Becky B.
Applications Engineer
National Instruments

Becky Linton
National Instruments
Field Engineer
Office: 734-464-2463
Cell: 248-709-2822
Email: becky.linton@ni.com
Message 2 of 15
(4,808 Views)

Hello,

In order to help resolve your problem, I need to get a better understanding of the error you're experiencing as well as your system parameters.

What method are you using to communicate to the serial instrument in LabVIEW? NI-VISA?


Are you using a GPIB card to receive the data, or are you taking in data directly into the serial port?

Also, what version of LabVIEW are you using?

Please send me as detailed description of the problem as you can, so that I can help you come to a solution.

Kind Regards,

Joe Des Rosier
National Instruments

Message 3 of 15
(4,808 Views)
What method are you using to communicate to the serial instrument in LabVIEW? NI-VISA?

I am not sure. How can I determine this?


Are you using a GPIB card to receive the data, or are you taking in data directly into the serial port?

Serial Port.

Also, what version of LabVIEW are you using?

Ver. 5.1.1

Sorry for my limited knowledge but this was set up years ago by someone else who is no longer with the company. It is going to take a little time for me to come up to speed.

Thanks for your help with this matter,

John
0 Kudos
Message 4 of 15
(4,808 Views)

Hi John,

Don't worry about having limited LabVIEW knowledge. You'll soon find out that the learning curve is very exponential. The program begins to become more and more intuitive as your usage increases.

Can you post a copy of the VI you're using? I'll be able to take a look at your code and determine the method you're using to communicate with the serial instrument.

The fact that your HyperTerminal loopback test was successful is an indicator that the issue is not with the hardware. Most likely, we just need to make a few adjustments to your LabVIEW code to allow for proper functionality.

I hope this helps! I�ll work through this issue with you until we resolve the problem.

Best Regards,

Joe Des Rosier
National Instruments

0 Kudos
Message 5 of 15
(4,808 Views)
Here are three of the VIs

I think there is one more but I will need to send it again in another file attachement
Download All
0 Kudos
Message 6 of 15
(4,808 Views)
Here are more VIs
Download All
0 Kudos
Message 7 of 15
(4,808 Views)
John-

I looked at your code and everything appears to be ok on a functional level. What�s the exact error message that you receive when you run the VIs that communicate with the serial port? In your original message, you said that LabVIEW didn�t appear to be communicating with the serial port. What do you mean by this statement? What makes you think that commutation is failing? An error message? No data output representation from your VI front panel?

First, I�d like to make sure that we can communicate with the serial port on a hardware level using LabVIEW. Please follow the instructions for performing a loopback test in LabVIEW pendocument�?> here. Did your instrument communicate with the serial port?

Next, please run the following LabVIEW example program to demonstrate the proper serial communication coding structure. From the front panel or block diagram of any VI, click [Help]>>[Find Examples] and search for �serial.� Open the �serial communication� VI, select the resource name for your serial port, and run the program. Does this work?

Please let me know the outcome of these two tests.

Regards,

Joe Des Rosier
National Instruments
0 Kudos
Message 8 of 15
(4,808 Views)
I got the loopback to work.

I got the sample program to work but neither the loopback or the sample program run correctly all the time. I am not sure if correct is the proper term. I just can't get either one to run all the time. Strange but I did see them both work at least once.

My emveco program still does not work.
0 Kudos
Message 9 of 15
(4,808 Views)
I got the loopback to work.

I got the sample program to work but neither the loopback or the sample program run correctly all the time. I am not sure if correct is the proper term. I just can't get either one to run all the time. Strange but I did see them both work at least once.

My emveco program still does not work.
0 Kudos
Message 10 of 15
(4,808 Views)