LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exe file from app builder does not work

Solved!
Go to solution

As you can see in the help, I should wire a ULx physical channel in that terminal and specify the name of the channel to use, but I don't find the ULx physical channel in the palette (only DAQmx physical channel which are not the same and also, I don't find the Ai0 ecc in there)...

This is why I put a string with the name of the channel (in the help it is written that I can also put a string in there). I thought the names were the same on the target computer.... Do you know what should I wire in there?
As for the basic in laview... it is since 4 years I use LV and I know that I don't use it in the correct way, but I am just happy when it works fine and quickly, as I don't have so much time when I have to program something. Also, most of the times I make standard, basic VIs which I think do not require a deep knowledge. Maybe this just a more elegant way to say I am too lazy to start again with the basis 🙂

Finally I would have put at least the timing in the while loop !

0 Kudos
Message 11 of 16
(1,252 Views)

Right click on the terminal of the ULx VI where the device identifier and click 'create -> control' and that will create a control of the right type that you can put on the front panel of your software. I presume when you do this, you will get a drop down list that will allow you to select the device before you initialise the device.

 

No, it will not necessarily be the same on the target computer - what if you have two devices connected - they can't have the same address!


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 12 of 16
(1,249 Views)

Sorry, when I make rigth click on the ULx VI and go to create, everything is disabled and I cannot click on anything. I still think I have a problem with installation of the ULx for Labview...

0 Kudos
Message 13 of 16
(1,244 Views)

Ok, I was able to add the control by right clicking on the terminal (I was rigth clicking on the VI). The problem is that the drop down menu which appears on the front panel is empty and the device does not appear into it.

 

I think anyway that the problem is actually that I cannot hard-code the channels as strings: have wired the error terminal and got the following error on the target machine:

 

ULx Create Channel (DO-Digital Output).vi:5090001<ERR>

0 Kudos
Message 14 of 16
(1,233 Views)
Solution
Accepted by topic author fabbro12

Does the drop-down menu populate when you expand it? It should show the list as per the screenshot of the help you posted.

 

The error code on its own doesn't mean anything to me as it is driver specific - does the error indicator display the description of the error?

 

If the list is empty, that means no devices could be found - either the driver for LabVIEW isn't installed or the device isn't configured (e.g. in MAX?)?!

 

If the strings work on your development system, then they will work on the target machine as long as the device identifier is the same on both PCs.

 

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 15 of 16
(1,228 Views)

It is working now, thank you Sam for the precious help....

 

The problem was actually that I was calling the channels using a string. I use a constant physical channel now as you advised and it works. 


The list was empty because the USB device was still plugged into the target computer and not in my development computer!

I am more relaxed now that it works fine! Thank you! 

0 Kudos
Message 16 of 16
(1,212 Views)