Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot reach digital I/O from LabView (but from M&A Explorer its possible)

In M&A Expl. I can turn output on/off, but in DIO Port Config.vi (in LabView) I get an error and cannot turn output on/off. Please help!
0 Kudos
Message 1 of 5
(3,635 Views)
Hello!

This will be kind of tricky to answer since you didn�t specify which board you are using, which error message you got in LabVIEW among other things.

You say it works in Measurement & Automation, and that�s great since it shows that the board actually works. Have you verified that the output actually changes though when setting the output on or off?

If it then works in MAX and it doesn�t work in LabVIEW it might be so that LabVIEW have problems to access or find the specific DLL that LabVIEW uses (if you use DAQmx the DLL in question will be nilvaiu.dll). A repair of the driver would most likely be enough then.

But it can also be so that the configuration you are trying to set with the VI in question is not allowed.

Cheers,
Jimmie A
Nationa
l Instruments
Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 2 of 5
(3,635 Views)
Thanx Jimmie,

The board is a PCI-6602 (with counters + IO), and the funny thing is that we have another computer with the exact same setup (board+LabView) that works. So it might be a path setup thingy as you suggested. I'll look into that.
The error message in LabView is simply that the main vi cannot run. Going down to the root of the problem is that the "DIO Port Config.vi" is not runnable which indeed makes error in search path even more plausible. There is no more detail in the error at that level unfortunately.

Regards,
/Rob
0 Kudos
Message 3 of 5
(3,635 Views)
Jimmie,

Turns out the problem was that when upgrading LabView (from 6.0 to 6.0.2) the mass compile option in the patch was never run. So the LabView .vi files were not runnable. Reinstallation and mass compilation solved the problem.

Regards,
/Rob
0 Kudos
Message 4 of 5
(3,635 Views)
Rob,

Great that everything now works for you!

Best Regards,
Jimmie A
National Instruments
Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 5 of 5
(3,635 Views)