LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime Error (My VC++ program not responding)

I wrote a VC++ program to send out voltage output to controller. The call function is like shown below:

volt(double Vx, double Vy);

I am using SingleAO in my VI and not DAQmx because the controller doesnt support it.

When my program runs, it is okay but after awhile it doesnt respond. My program calling the function is a loop.

My questions are:

1) Is there a max number of function can be called?
2) Any possible reason why my program hangs?


Thanks
0 Kudos
Message 1 of 4
(2,505 Views)
Please provide us with more information regarding the hardware you are calling (name of DAQ card), version of the DAQ driver that you are using and example of your code.

Hopefully we can help you then.
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 2 of 4
(2,499 Views)
Thanks for quick reply.

The controller is PXI8175, the DAQ card is E6040.
0 Kudos
Message 3 of 4
(2,494 Views)
Hi jw81,

Without seeing all of your code, it is difficult to say why you are getting the error.

My first question would be why wouldn't your controller support NI-DAQmx? Since you are programming in C, all you would need to do is download NI-DAQ 7.3 and install it. With NI-DAQ 7.3, you will be given a C API to program NI-DAQmx. You can get NI-DAT 7.3 here:

http://digital.ni.com/softlib.nsf/websearch/BEC182021CEB566C86256EEE00696562?opendocument&node=132060_US

If you still wish to program in Traditional NI-DAQ I would suggest you start with one of the shipping examples. See if you can get them to work. If not, let me know which example you are using and what error you are getting.

Traditional C examples: C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC

-Sal
0 Kudos
Message 4 of 4
(2,476 Views)