LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issues with labview execution 2 visa resource

Solved!
Go to solution

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.

0 Kudos
Message 1 of 12
(3,263 Views)

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?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 12
(3,246 Views)

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

0 Kudos
Message 3 of 12
(3,239 Views)

What resource are you using for talking to the DMM?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 12
(3,237 Views)

RS232 - COM port

0 Kudos
Message 5 of 12
(3,235 Views)

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.

 

 

 

 

 

========================
=== Engineer Ambiguously ===
========================
Message 6 of 12
(3,220 Views)

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.

 

0 Kudos
Message 7 of 12
(3,214 Views)

What com ports are you using for each device?

 

Are they 'real' com ports or virtual com port devices like USB to serial adaptors?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 8 of 12
(3,202 Views)

I am using COM1 (for the motor controller) and COM3 (for the agilent dmm). They are real com ports.

0 Kudos
Message 9 of 12
(3,191 Views)
Solution
Accepted by topic author ankit2569

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

========================
=== Engineer Ambiguously ===
========================
Message 10 of 12
(3,187 Views)