Jump to content

Visa Constant Grayed Out?


pallen

Recommended Posts

This might not even be a "bug". But it's unusual behavior I've just started to notice on my current project.

I'm using constants to supply a VISA resource name in my code. This gives me a little drop down box from which I can select COM1, COM3, or LPT1.

For some reason all my drop down boxes keep graying out occasionally. But they restore on a reboot.

The code still works alright, and the port isn't being held open or anything. I'm just wondering what the problem might be.

Link to comment
It sounds like your constants are type-defs that are set to auto update from their ctl source, and the source is being changed (or at least marked as changed) somewhere else...

Hmmm.....Everything is set to COM 3.....or at least it better be. :P

Thanks though. I'll double check things to make sure nothing has been overlooked.

Link to comment
Hmmm.....Everything is set to COM 3.....or at least it better be. :P

Thanks though. I'll double check things to make sure nothing has been overlooked.

I do not have a diffinative answer but I will share my thought.

Those constants are populated based on what ports LV thinks your PC has. I have noticed that VI's with VISA constants can take quite a while to open the first time.

I suspect.....

MAX is being invoked in the background and a refresh is happening.

Does right-clicking and selecting "allow undefined names" change this behaviour?

Done guessing.

Ben

Link to comment
Does right-clicking and selecting "allow undefined names" change this behaviour?

I'll give that a try.

NI AE's are currently working on another COM problem I'm having with my PXI system.

Maybe it's all related?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.