07-10-2015 01:19 PM
Yes,
Im just getting into labview, it seems very difficult to keep clean at times. Im getting the hang of it though. I actually found the solution as well. I renamed the module on my computer and i have that as a constant in the application, so ofcourse when i switched to the other computer it couldnt find the correct moduel. It works now, but is there a way to hard code something like that so i wouldnt have the issue if i was to deploy it? Also any advice on my code is always welcome. Im trying to make improvements.
Thanks James,
Matt
07-10-2015 01:30 PM
Glad you found the problem.
When you say Module, you mean the instrument module, right? So the name that shows in your DAQmx channel? I don't think you shared the right code above because I don't see anything like your horizontal/vertical scrollbar image you sent.
If it's a DAQmx module, you can create a configuration file from MAX that includes that device's alias and everything and then include that with an installer along with the executable. Other options are to find all DAQmx resources that are connected, sort by what type of instrument they are, and use the one that matches what you want. I worked with a Network DAQ before and I knew that no other NI9191 devices would ever be on the same network so I just found all 9191 devices and use the "first" one.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-10-2015 01:36 PM
James,
That was the right code, in the second tab you should be able to see the array and scroll bar, it may open with the graph up and you may have to run it to make the tab control visible I will look into the configuration file and may just try to use the serial number of the device, i know that wont be changing.
I appreciate the help,
Matt
07-10-2015 04:38 PM
Are you sure? The only VI I've seen attached is called Thermocouple Testing.VI. The only thing I see on your front panel is a waveform chart and a stop button.
07-10-2015 04:41 PM
Ravensfan,
Thats how i mustve saved it, if you run the code, it should go to the correct front panel. The tab control isnt currently visible, that the front panel it ends on, which i should probably have it return to the start front panel. Here is the same Vi just saved at the start state of the front panel.
07-10-2015 04:59 PM
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-10-2015 05:12 PM
Thats odd,
Does it say which vi is missing? I dont have any user vi's in the application, nor any add on vi's.
07-10-2015 05:42 PM
@matt198717 wrote:
Thats odd,
Does it say which vi is missing? I dont have any user vi's in the application, nor any add on vi's.
It is a ctrl:
"ENUM RING FOR TEMPERATIRE.ctl"
07-10-2015 05:49 PM
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-10-2015 05:49 PM
Okay,
I got it. Im sending the project file now, this is all learning experienc for me.