Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Control reference is not always passed

I am running a system where I pass a DAQ resource name to a subvi using a control reference. The problem is that every once in a while, the reference does not populate the subvi control input.

 

For example, the upper level control is populated as  PXI1Slot5/ctr1. When you run the system, you can see the that the control is populated in the top level, but when you look at the input on the subvi, it is just blank. What is odd is that the failure is random. I can start and stop the system without changing anything and about every fifth time the control is blank.

 

Has anybody seen anything like this before and how did you fix it if you have?

 

Thanks

David A. Taylor
0 Kudos
Message 1 of 6
(3,983 Views)

Are you sure you're talking about a control reference, as opposed to just a control? A control reference would not have any visual indication of value. Have you verified using highlighting/probes that a value is actually being passed into the subVI?

0 Kudos
Message 2 of 6
(3,972 Views)

Maybe I just stated this in an unclear fashion. It is a control reference. I create a control on the top level vi and a matching control on the subvi. I create the reference in the top level vi and pass the reference down to the subvi. So the visual path I am using to confirm things is from control to control. If I put X in the control in the top level vi, then X should appear in the control of the subvi. Most of the time it does. But occasionally the control in the subvi is blank. If you watch the subvi and run this a few times, you will see something like  X,X,X, "blank", X.  Something is being passed because it clears the control. Just what that something is though I can't quite figure. I haven't tried to catch the actual ref value when the failure occurs. I'll take a stab at that.

Just so you have a notion of why I am using the reference, this is a large application with several parallel loops. Some of the loops have to use the same hardware resources and update indicators at the top level. Since the number of these items is large, it is not possible to wire everything directly, so it all gets handled using a cluster of references that I can pass around as a single wire on the diagram. I'm using the same setup for about 20 controls/indicators and this is the only one that is flaky (so far).

David A. Taylor
0 Kudos
Message 3 of 6
(3,958 Views)

Hi David

 

Any chance you can post a simple VI example of what you are trying to do?

 

Best Regards

 

David

NISW

0 Kudos
Message 4 of 6
(3,942 Views)

Hi ,Can you give me a chance of being becoming your friend or commnicate with you about Labview softmotin for solidworks or motion control ,I am a student in china ,persuning a master degree in Zhejiang Sci-Tech University Zhejiang Province in China, my research area is parallel robotics.Now i am studying the labview softmotion for solidworks ,the important part of my thesis is Virtual Prototype skill,which is a charpter of my thesis,if you give me you MSN or MSN that is talking about or communicating the Labview softmotin for solidworks with other ,any reply will be apperciated ,looking forward your reply ,my chinese name is hanayng ,my address is , College of Mechanical Engineering and Automation ,Zhejiang Sci-Tech University 5 Second Avenue,Xiasha Higher Education Zone ,Hangzhou,China,310018,my email is hanyang19861017@163.com  ,my MSN Number is hanyang19861017@Hotmail.com,if you want to communicate with me about the skill of motion and softmotion for solidworks ,please add me ,thank you very much ,your friend hanyang,

0 Kudos
Message 5 of 6
(3,851 Views)

hanyang,

 

STOP!!!

0 Kudos
Message 6 of 6
(3,841 Views)