LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

excute twice DAQmxwrite in one task

Solved!
Go to solution

Hi  community,

 

I'm working on a signal generation, it looks like that

help.jpg

because of the short times, making the whole signal as a wfm is not a good idea, so I want to make it like that,

help2.jpg

so it turns out it will write twice each cycle of the loop, but there are some error(error code -200288) , I really can't fix out.

 

I need ur help.
I hope I made it clearly.

Thanx for advance.

 

badstone

 

0 Kudos
Message 1 of 5
(2,640 Views)

in the attachment is my VI.

0 Kudos
Message 2 of 5
(2,635 Views)

the forums had been attacked since morning. And I waited the whole day.

0 Kudos
Message 3 of 5
(2,622 Views)

Hi badstone,

 

I took a look at your VI. It can not work, since the concept of configuring and executing a DAQmx task is not respected.

 

Please take a look into the LabVIEW example library to understand how the DAQmx-tasks work. You can find them by choosing "Help" >> "Find examples" in an open LabVIEW window. The opening dialog contains the examples. Under "Hardware Input and Output" >> "DAQmx" >> "Analog Output" you see the example "Voltage continuos output".

 

Additionally you should keep in mind, that you first have to configure the task for timing, properties and the first writing of data to the module. Then you have to start the task. Otherwise there will be no output on the module.

 

You should also keep in mind, that you can not change the timin settings on runtime. I think a triggered solution would be a good way to implement your application.

 

If you have further questions about implementing your application, please mention, which LabVIEW version you use and what hardware and which driver versions you have installed.

 

Regards,

Melanie

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
0 Kudos
Message 4 of 5
(2,601 Views)
Solution
Accepted by topic author badstone

Hi Melaniee,

 

sorry, that I didn't make it clearly.


but I have fingured out the solution.

 

still thank you for help.

 

best regards

 

badstone

0 Kudos
Message 5 of 5
(2,587 Views)