Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating labview code from task never ends

Hi

 

I'm developing a Temperature Response program in LabVIEW 2011 with a CompactDAQ and NI 9213 Thermocouple module.  I've created a task with 3 thermocouple channels; 1 for the room temperature bath, 1 for the heated bath, and 1 for the DUT (device under test) that is transferred between the baths.

 

The task was created in MAX and then a "Task Name" constant is used in the program. It works great but I want to create an "Executable" so its available to anyone.

 

When I try to generate DAQmx Configuration Code, it goes on and on for ever and is impossible to stop.

 

See attached program.  I've also attached a screenshot of the Task...I don't know how to send the actual Task.

 

Does anyone know what I'm doing wrong?

 

Glen

 

 

Download All
0 Kudos
Message 1 of 4
(2,844 Views)

Well, I can confirm your problem. I set up a virtual device and your Pianka task in MAX and LabVIEW got stuck when I chose the Generate Code >> Configuration. However, it successfully worked when I chose Generate Code >> Configuration and Example. It also worked to when I chose Generate Code >> Sub VI, which I then generated code from successfully. I can't explain why LabVIEW won't just generate the configuration code, but I think you should be able to use one of the other functions to get your code ready for deployment. 

Applications Engineer
National Instruments
CLD Certified
0 Kudos
Message 2 of 4
(2,830 Views)

Zack

 

Hey thanks for verifying my problem.  I accidently stumbled upon the same results.  Also if I disconnect the task task, then Generate Code>> Configuration, it works fine.  I am then able to rewire it like nothing is wrong????

 

Glen

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

I can also verify that. That's definitely a bug. I'll make sure to include it in my report. 

Applications Engineer
National Instruments
CLD Certified
0 Kudos
Message 4 of 4
(2,822 Views)