LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to define SC-2043-SG in vi

I am trying to get labVIEW to hold the setting of my SC-2043-SG accessory board in 8.2 using traditional DAQ.  I can define the accessory board (SC-2043-SG) in MAX but  when I  start up my vi  it does not  work  correctly , but if  I  define  the SC-2043-SG in MAX and then look at channels in the "test pannel" they are fine.  Once I do this I can then run my vi and it works fine.  How can I define my accessory board in the vi so I do not have to do it in Max, because if I shut the machine down or close the vi it will forget that the SC-2043-SG was ever defined as being attached to my PCI-6034E.


0 Kudos
Message 1 of 4
(2,829 Views)

Hi deepsnow,

I have been looking at this issue, and I have a few things that you can try. 

I assume that you are defining the SC-2043 SG by right-clicking on your 6034E under Traditional NI-DAQ (Legacy) Devices, selecting properties, and under the accessory tab selecting the SC-2043 SG.  Can you confirm this for me when you open the VI, the signal is not read properly, but if you open the test panel, and read the signal in the test panel, then go back to the VI it does reads properly?  

It sounds like the Traditional NI-DAQ configuration is not saving properly.  This will occur if you do not have proper administrative rights to your computer. 

In MAX, can you set up your SC-2043 SG accessory for your DAQ card and open test panel, and ensure that your VI is working correctly.  Then go to Tools>> Traditional NI-DAQ configuration>>Save configuration as.  Give it a file name and save it. 

Next, go back to MAX and in the same menu, select Set Active Configuration.  Select the file that you just created.  Close MAX and re-open it and ensure that your accessory is still configured.  If you don’t have administrative rights to your computer, this configuration will not remain. If you do not have administrative rights can you get them.    

If you are still running into problems, can you please provide me with the following information:

What version of the NI-DAQ driver are you using, what OS are you using, is there any reason you are using traditional DAQ and not DAQmx, what Development System of LabVIEW do you have, i.e. Full, Professional...

Also are you using an example VI to acquire the data or are you using a VI that you created from scratch.  If you are using a self-created VI, can you try and acquire this signal form a VI from Example finder (under help menu in LabVIEW). 

Have a good evening

 

Chris_K

0 Kudos
Message 2 of 4
(2,807 Views)

Hello Chris;

 

Yjour reccomendations worked great, and now it does hold the configured board.Smiley Happy

 

One similar related question.  Can I call that .daq file in my vi to force this hardware configuration whenever I load my vi?

 

Deepsnow

0 Kudos
Message 3 of 4
(2,795 Views)

Hi Deepsnow

I am glad that solution worked for you.

There is a VI called Set Default DAQ Configuration File.vi that can be used to call the saved .daq file. 

It is located in C:\Program Files\National Instruments\LabVIEWx\vi.lib\daq\dqchnutl.llb.  Use the Select VI from the block diagram function palette, and navigate to this file extension.  Place this in your VI, and then use the error wire to ensure that it gets called before your other DAQ VIs.

Here are two Knowledge Base articles that explain this procedure. 

How Can I Load or Change My NI-DAQ Configuration File (*.daq) Programmatically in LabVIEW?

http://digital.ni.com/public.nsf/websearch/862567530005F09C8625674E005EA939?OpenDocument

 

Can I Load a MAX Configuration File Based on the Current Windows Profiles?

http://digital.ni.com/public.nsf/allkb/F4EF5FFDB540C09986256E2100754A57?OpenDocument

 

Regards,

Chris_K

0 Kudos
Message 4 of 4
(2,780 Views)