03-10-2014 06:39 AM
I am using two while loops in a labview code - one connects to a motor controller and other is used to connect to an agilent multimeter. As soon as I execute this VI, the loop connecting to the controller stop working and only the one used to configure agilent machine works. If I remove the second while loop(connecting to agilent machine), the code runs fine. I guess it is a problem related to execution priority. Could you please look into the attached code and let me know the issues with it.
Solved! Go to Solution.
03-10-2014 07:13 AM
Hi ankit,
the biggest issue with your code is missing to use the AutoCleanup tool! Do you really need to attach a 5500×3400 px image?
Also you're using a lot of "non-usual" subVIs. How should we know what's wrong when you don't attach real code?
03-10-2014 07:31 AM
Hello ,
Actual code attached. I am still getting the grasp of labview concepts. There might be something really small conceptual error in the code.
Regards
03-10-2014 07:35 AM
What resource are you using for talking to the DMM?
03-10-2014 07:37 AM
RS232 - COM port
03-10-2014 09:27 AM
You are setting the serial port connected to the Agilent to 9600 baud, 7 bits, Even parity.
Is the Agilent meter set the same?
9600 baud, 8 bits, No parity is the most common default serial setting.
03-10-2014 09:30 AM
Hello,
Agilent meter is set to the same setting. I am able to talk to the meter and get a loop of the readings. It is just that the while loop connecting to the motor controller, becomes really slow, when the DMM loop is executing. When I remove the Agilent loop, the other loop works fine.
03-10-2014 09:53 AM
What com ports are you using for each device?
Are they 'real' com ports or virtual com port devices like USB to serial adaptors?
03-10-2014 10:27 AM
I am using COM1 (for the motor controller) and COM3 (for the agilent dmm). They are real com ports.
03-10-2014 10:34 AM
Com1 and Com3 share an interrupt.
Go in to the computers BIOS and set the port on Com3 to Com2 so they will each be on their own interrupt and see if that helps.
FYI
Com1 and Com3 share IRQ3
Com2 and Com4 share IRQ4