Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

can't select channel in an executable daq i/o control properties

Hi Everyone,

   I'm currently using labview 8.6.1 and runtime 8.6.1 and I have created a build,executable and an install package.  The issue that  I'm having, is that I have I have several daq i/o control pull down boxes that I use to select the physical channel of the i/o port. While i'm in development, the drop down boxes show all the available i/o channels and it also gives me the ability to browse.  However, once I create the executable, the daq i/o pull down box is empty, and i have to manually type in the location of the port. For instance, "Dev1/port1/line0" or "Dev1/ai0".  I have checked to make sure that i'm not accidentally filtering the names.  I must also mention that did this work before, and besides me having to type the address of the physical channel directly the  executable works fine. I attached a picture of what i'm talking about just in case i wasn't clear enough(bottom right I/O settings tab)  Any help would be greatly appreciated!

-Will

 

0 Kudos
Message 1 of 12
(5,001 Views)

Hey,

 

Do you see this behavior just on the target machine or also at the development machine when you run the executable there.

 

Christian

0 Kudos
Message 2 of 12
(4,996 Views)

That is the strange part, I have built other applications in which the i/o drop down menu worked, and when another user would log on to the pc it would disappear.  To answer, your question, it doesn't appear on the development machine or the target machine.  It only appears, while i'm in the development environment, and it disappears when it is an installed application.

0 Kudos
Message 3 of 12
(4,992 Views)

Can you please try to build a simple VI just with all the different DAQmx Name Controls on it (maybe also some others like VISA or IMAQ to verify), as code in the blockdiagramm just a loop with timing. Then observe the behaviour in the VI, after that build a executable, close LabVIEW, run the executable and see if you can find the terminals, tasks, whatever....

 

Thanks,

Christian

0 Kudos
Message 4 of 12
(4,966 Views)

Christian,

  I did what you suggested, and I made a very simple VI to get a voltage and also to turn on a DIO line.  And as you recommended, I also built the EXE and an installer for it. And it worked. So now, i'm really confused.  I used the same code that I use to get the voltage and set the DIO in the test vi as I did in the previous VI that I'm having the problem with.  Perhaps, I'm not making the EXE correctly? I didn't do anything differenet while making the installer for the test program or the exe.   

Download All
0 Kudos
Message 5 of 12
(4,947 Views)
What are the main differences between the simple vi that you built and the one that you are having problems with?
Regards,
Margaret Barrett
National Instruments
Applications Engineer
Digital Multimeters and LCR Meters
0 Kudos
Message 6 of 12
(4,895 Views)
The two vi's have the same code. The main difference between the two, is that the vis are called by a "Main" vi.  I just can't figure out why it would work in development, but then disapper when I create. the exe.
0 Kudos
Message 7 of 12
(4,889 Views)
What version od DAQmx are you using? Are you adding channels to the project by going to My Computer>>New>>NI DAQmx channel? I do see a bug report where there was a similar issue to this where channels were added to the project.
Regards,
Margaret Barrett
National Instruments
Applications Engineer
Digital Multimeters and LCR Meters
0 Kudos
Message 8 of 12
(4,866 Views)

 Margaret,

   The pc is running NI-DAQmx version 8.8.  I did not add the channels as you stated above.  I just created a control directly from the DAQ vi.  Are there some sort of settings that maybe need to be checked off while making the executable? Once again thanks for your help.  

 

-Wilson V. 

0 Kudos
Message 9 of 12
(4,854 Views)

Hello,

 

I assume that the vi you attached a couple of posts ago is your "simple vi." I too was able to make that into an executable and verified that the drop-downs are accesible. Please try deleting the controls that you have in your larger vi and replacing them. There should not be any special settings you need to account for in order to use this functionality.

Regards,
Margaret Barrett
National Instruments
Applications Engineer
Digital Multimeters and LCR Meters
0 Kudos
Message 10 of 12
(4,815 Views)