03-24-2021 08:33 PM
@Kyle97330 ha escrito:
Bob, I'm going to go ahead and disagree here and say that a gif is actually pretty good as far as showing the issue and precisely what he was trying to do.
As far as replicating the issue, it's with near-certainty a problem with his specific computer at this moment and not a problem with LabVIEW 2017 or channel wires in general.
To the original poster: Do you have a license in good standing including NI support? It couldn't hurt to ask. They are after all the people who have the password to the VI that might be able to give you a hint at what's wrong with your setup.
Since this may be trying to write something to disk, could you try it either with your antivirus disabled or by running LabVIEW as administrator just in case there's a weird issue there?
Is this something where you could take the nuclear option if need be? Complete uninstall and reinstall?
I no longer have a license unfortunately, it expired and we screwed up by waiting more than a year to renew it so it costs more again.
I actually have admin rights and I'm able to run LabVIEW with elevated permits. The reason I had discarded the anti-virus is because I can see the channel utilities being created in the folder.
There's also another computer with the same specs and software, except that it doesn't have admin rights but it works there.
I can try the nuclear option in the end.
03-24-2021 08:51 PM
@Kyle97330 wrote:
Bob, I'm going to go ahead and disagree here and say that a gif is actually pretty good as far as showing the issue and precisely what he was trying to do.
Not so good. The problem with a GIF is that you really can't tell where it starts or ends or how long it lasts. An MPEG would at least let you know that.
03-24-2021 09:42 PM - edited 03-24-2021 10:08 PM
Ok. So I fixed it.
I have no idea why it worked. But basically every time I created a channel writer/reader, the creation seemingly "failed". BUT, the dependencies were generated in the ExtraVILib folder.
So I just dragged the channel to the block-diagram. Then I attempted to re-create the channels and poof, it worked!
I don't think I've solved the root issue however. If I try to create a new channel reader, I get the same issue. (I must drag the read.vi to the Block Diagram) then try again. (This also applies to some new types that haven't been created yet.)
I attached a .gif again where I successfully create writers for two types and then fail to create the readers UNTIL I drag their read.vi to the block diagram. (This next thing isn't in the gif) Afterwards I tried to create one for a string and failed. I repeated the same procedure and it worked.
In essence:
I've tested the channels and they work, BUT I noticed one thing I'm not sure is normal. See this picture:
Are they supposed to have a ")" in the name?
And that's it. The work-around is good enough for me, so I'm happy.
Note: I attached the gif purely for reference. If its too big let me know to take it down or something.
03-25-2021 01:13 AM
09-14-2021 02:06 PM
I just experienced the same error (LabVIEW 2019 SP1) after installing on a new PC. Moving and pointing the LabVIEW Data folder did not do it for me - see attached video. I got this advice from the support which worked - though I am hereby sharing it:
NI Support:
"If I understood correctly this might be the solution for the issue you are facing To Fix the Channel Wires Try the following:
-Delete the ChannelInstances folder in the ExtraVILib folder in your LabVIEW Data Directory. " see attached"
You will lose all of your Channel Definitions and assorted support code, but when you load your Project, they should be rebuilt. Once Channel definitions for a Project have been realized, they are likely to remain stable unless you make significant changes to the definitions associated with the Channels in the Project."
After having done that the issue remained when I created the first ch readers and writers, but after first trial the stuck to the BD
Hopes this helps anyone in the future
09-14-2021 04:03 PM
I am sorry you are having so much trouble with my favorite LabVIEW Feature, Asynchronous Channel Wires. I use them all the time, and have a dozen or more in the Project I'm currently developing.
Channel Wires are "created" when you invoke a Channel Writer. The code that supports the Channel is generated in a folder called ChannelInstances that can be found in the "Default Data Directory", which is (by default, no pun intended) in your Documents folder under LabVIEW Data, inside a folder called something like "2019(32-bit}". Inside this folder, you will find the folder "ExtraVILib", and inside that, you will find "ChannelInstances". This last folder contains all of the code that LabVIEW has created for all of the Channels you have created.
Note that Channels are named for the type of Channel (e.g. Messenger, or Tag) and their Content (e.g. str, bool, or t'TypeDefName'. Channels are not associated with a Project, which means if you have two Projects with a Channel that uses a user-defined TypeDef (say "Subject Info", a cluster with Name, Age, etc.) that have the same name but different Typedefs, you will have a problem as only a single Channel definition will apply. Also (and this caused me some trouble) if you are developing a Real-Time Project and use Channels in both the Host and Target code, you should definitely use separate names for Host and Target Channels (H-Subject, T-Subject, for example).
Large Projects (several hundred VIs, a dozen or more Logical Folders) with multiple Channel Wires defined at different "levels" of the code can sometime fail to compile. If your Project has a "nesting" structure (such as a sub-VI with lots of its own "private" components, but one that uses Channel Wires), you can usually cure the problem by taking the following steps:
A note on LabVIEW 2019 -- at some point, (as part of Service Pack 1?), a change was made to the Messenger Channel. The eagle-eyed among you might have noticed reference to a "Messenger2" Channel. If (when you open ChannelInstances) you notice a mixture of Messenger and Messenger2 Channels, you might also notice some flakey behavior if you use Messenger Channels (this is probably the Channel I use the most). If this happens, close your Project, delete ChannelInstances, and load your Project (and redefine your Channel Wire) again.
Bob Schor
09-16-2021 01:47 AM
If possible, upgrade to LV2020 or higher. I had some issues with channel wires that were present in LV2019SP1 but not in LV2020.
Now I only have a few issues with channel wires, the most important being: Never change namespace.
Also, if you want to use channel wire probes, do not use lvlibs.