LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to refresh max programically?

Or to close it down once i have used either Change NI-DAQ Config File.vi or Set Defaul Daq Configuration File.vi and then run max with system exec.vi? I am looking to hide the whole process of updating the config.daq file from the user. Any input ideas .. easy bat code would be appreciated because i can't remember it .. using 6.1 and max 2.2.0.3010 or higher ..
Download All
0 Kudos
Message 1 of 8
(3,929 Views)
Could you explain a little more what exactly it is that you are wanting to do? You can programmatically change between DAQ files and you don't need to open Max to do it.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 8
(3,929 Views)
Mike that is exactly what i am trying to do. I am sending out a product to a customer and i want to install my daq file on their system with out having anything pop up that they could muddle with. I can do it with either of the files i mentioned in the top of this discusion. But the changes do not take effect until after max is refreshed. So i have taken to loading max using the system exec.vi . Now i have the max window open which is not something i would like to have open because i am afraid the customer might corrupt my settings. So if you could share your method for changing daq files with out having to load max i would be greatful. Or if you know of a way to close the max window down after it has opened and refreshed i would also be gre
atful for that. I have incuded a file showing my intentions .. and another file with a channel control. The documentation on the front panel of testme.vi should provide information on how to use and modify it to work. I use daqchannel.vi to test and see if the change has taken effect.
Download All
0 Kudos
Message 3 of 8
(3,929 Views)
The routine "Set Default DAQ Configuration File.vi" allows you to programatically specify which DAQ file to use. You have to provide a complete path to the file.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 8
(3,929 Views)
True and good point, i left that to the operator of the vi just create two daq configs one with a specific channel then one without. If you programticly change between the two you should find that the changes DO NOT TAKE EFFECT TILL AFTER MAX IS REFRESHED, unless i am missing something which is possible. And yet again that is my whole question.
confused and frustrated
Erik
0 Kudos
Message 5 of 8
(3,929 Views)
You should be able to use the NiAutoConfig.exe to refresh max. Check out the following thread for more information: http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000CF1F0000&ECategory=LabVIEW.LabVIEW+General
Message 6 of 8
(3,929 Views)
Mark i read that and i could not get it to function properly. Do you have a snipet of code that works you could share with me? I tried running my test program which uses the Set default Daq Configuration.vi and then run the NiAutoConfig.exe after it but i still do not seem to get the refresh unless i go into max and refresh either by opening max or hitting F5. Have i gone completely daft ?
Erik
0 Kudos
Message 7 of 8
(3,929 Views)
Hi,

I need to do the same thing but I have not even tried anything after reading this thread. Is there any working solution for switching between Config files?
Andras
0 Kudos
Message 8 of 8
(3,929 Views)