From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-09-2005 08:20 AM
12-09-2005 11:24 AM
12-12-2005 02:35 AM
12-12-2005 04:03 AM
now I found some to simulate PCI6221
But there are still errors in LabWin/CVI :
NON-FATAL RUN-TIME ERROR: "mess.c", line 86, col 23, thread id 0x00000708: Function DAQmxReadAnalogF64: (return value == -89120 [0xfffea3e0]). Source terminal to be routed could not be found on the device. Make sure the terminal name is valid for the specified device. Refer to Measurement & Automation Explorer for valid terminal names. Property: DAQmx_SampClk_Src Property: DAQmx_SampClk_ActiveEdge Source Device: Dev1 Source Terminal: Dev1/ai0 Channel Name: Dev1/ai0 Task Name: Dickemessung 1 Status Code: -89120
It happens, when Read or when starttasked.
I created and configerd my task on this way.
strcpy (chan,"Dev1/ai0");
/*********************************************/
/*/ DAQmx Configure Code
/*********************************************/
DAQmxErrChk (DAQmxCreateTask("Dickemessung 1",&taskHandleA1));
DAQmxErrChk (DAQmxCreateAICurrentChan (taskHandleA1, chan, "", DAQmx_Val_Cfg_Default, 0.004,0.020, DAQmx_Val_Amps, DAQmx_Val_External, 499.0, ""));
DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandleA1,chan,1000.0,DAQmx_Val_Falling,DAQmx_Val_FiniteSamps,1000));
/*********************************************/
/*/ DAQmx Start Code
/* Start über digitales Signal aus der SPS, sobald Kachel unter Sensor
/* (Analoger Trigger gibt Fehlermeldung)
/*********************************************/
//DAQmxErrChk ( DAQmxCfgDigEdgeStartTrig (taskHandleA1, "Startsignal",DAQmx_Val_Rising));DAQmxErrChk (DAQmxStartTask (taskHandleA1));
May be I made something wrong, or is it specially a problem of the simulation ?
Greets from good old germany
franky71
12-12-2005 09:16 AM
12-12-2005 09:35 AM
Hi Carsten,
thank you very much for your help, especially the screenshots.
The lines above I got from an NI-Example, little bit modifying. As I see, this function helps too:
DAQmxSetTimingAttribute (taskHandleA1, DAQmx_SampClk_Rate, 1000.0)
bye