取消
显示结果 
搜索替代 
您的意思是: 

How do probes get named?

已解决!
转到解答

When I implement a probe on a wire, sometimes I see a name associated with it in the probe window; other times there is just the word "probe".  I would like to be sure all my probes have names because those little numbers are not easy to find nor remember.

 

What determines whether a probe has a name associated with it?  Can I "force" a name by adding an indicator or something?

0 项奖励
1 条消息(共 9 条)
4,750 次查看

The probe name corresponds to the object label that supplies the data to the wire beign probed.  If the label is blank, then the name is "probe".  It seems as if the outputs of primitive functions (like add and subtract), the labels do not carry over to the probe names.

- tbob

Inventor of the WORM Global
0 项奖励
2 条消息(共 9 条)
4,741 次查看

A lot of these lines come out of Boolean functions, which don't have names.  So how would I "force" a name for a probe?

0 项奖励
3 条消息(共 9 条)
4,738 次查看

I don't see any way to force probe names on function outputs.  Perhaps this can be a new feature suggestion.  The probe name should be the same as the output label.  Like for the AND function, the probe name should be "x .and. y?".  Also, while you are making a suggestion, the probe name should be changeable inside the probe window to avoid duplicate names.  I don't know how handy this would be though.  It might not get much of a priority level.  The numbers show exactly where the probe is located, and is much smaller to display than a name, causing much less clutter.

 

- tbob

Inventor of the WORM Global
0 项奖励
4 条消息(共 9 条)
4,727 次查看

I have tried turning labels on and off but I still don't see an "output name" as probe name from functions like ">0"

 

I wouldn't suggest doing away with the numbers; it's the Probe Watch Window where I need distinct names.

 

It appears this is one of those questions with no satisfactory answer.

0 项奖励
5 条消息(共 9 条)
4,717 次查看
解答
接受人 wildcatherder

Kind of a hack, but you can put a typecast on the wire.  Wire in a constant of the same datatype.  So if it is a boolean wire, put in boolean constant as to what you are typcasting to.  But show the label on the constant and give it a meaningful name.  Now you've typecast from an unnamed boolean wire to a named boolean wire.  When you put a probe on the wire after the typecast, it will have the meaningful name.

 

 

If you need to change the name of the wire, you will change the label on the constant, then have to delete and recreate the probe.

 

When you are all done debugging, you can go and delete the typecast and the constant.

6 条消息(共 9 条)
4,711 次查看

If you REALLY wanted to you could use the Type Cast function to name your wire:

 

 

EDIT: I see Ravens Fan had the same idea! 极度高兴的表情

0 项奖励
7 条消息(共 9 条)
4,704 次查看

@smercurio_fc wrote:

If you REALLY wanted to you could use the Type Cast function to name your wire:

 

 

EDIT: I see Ravens Fan had the same idea! 极度高兴的表情


 

I think I will stick to the numbers.

- tbob

Inventor of the WORM Global
0 项奖励
8 条消息(共 9 条)
4,696 次查看

Don't forget you can right-click the probe and: "Find Wire".

 

Edit:  That's with the regular probes.  I don't know if it works in the Probe Watch Window.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 项奖励
9 条消息(共 9 条)
4,679 次查看