LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200088 occurred at DAQmx Timing (Sample Clock).vi:4730001

I am currently working on my thesis trying to create a program to send 4 analog voltage signals to 4 different transducers simultaneously (numbered 1 to 4 in diagram below) using NI PXI-6115 I/O modules connected to a NI TB-2708 connector. Those 4 transducers are also connected to 4 input channels to measure the actual voltage signals sent. There is another set of 4 transducers connected to 4 other input channels as well, to measure the signals that travel through my setup. The diagram for my setup can be seen in the png file I attached (it has the connection configuration of the channels, you can ignore the ADA4870 device in the diagram as it has been removed).

 

I am using the following equipment:

  • NI PXIe-1062Q chassis
  • NI PXIe-8301 controller
  • NI PXI-6115 I/O modules connected to a NI TB-2708 connector (There are 2 of each of these devices)

I tried to program the 4 analog signals that needs to be sent and there seems to be a problem in the timing as the error occurs from the NI DAQmx sample clock.vi, the part of the code for sending the signals can be found in the loop labelled "Instrument Control Loop (loop 5)" inside case structure "Set excitation". I have included the part of the program that may be the cause of the error and also attached the program itself. The 2 additional vi with brackets (SubVI) are additional programs that support my vi.

 

I am using LabVIEW 2016

 

I am in dire need of help as I need to fix this problem as soon as possible. Any help will be very much appreciated. Thank you in advance!

0 Kudos
Message 1 of 13
(4,772 Views)

My equipment setup can be viewed in the attached PNG file "Phased Array Schematic".

 

The vi which contains the program that I mentioned in the original post is the vi labelled "phased array v3.0.vi"

 

The vi screenshot shows the part of the program that I am talking about.

0 Kudos
Message 2 of 13
(4,765 Views)

Hi giovanni,

[EDIT]I was going to ask which error you get. But it is written in the title of the post...

Yddet

0 Kudos
Message 3 of 13
(4,746 Views)

giovanni,

Before using the task, it needs to be initialised. You do that in the case "Init excitation" but I didn't find when this case is called. Did I missed it ?

Yddet

0 Kudos
Message 4 of 13
(4,739 Views)

oh my mistake I accidentally removed a part, I have added that back in.

 

There is a measurement control loop, which has a "measurement control" case structure. In the "measurement control" case structure there are queues to recall the "set excitation" case structure, there is also a "init excitation" case structure for initialization. I've included some screenshots below and I have circled the part I mentioned in red.

 

I tried to run the program again and the same error persists.

Download All
0 Kudos
Message 5 of 13
(4,725 Views)

Here is the edited program. I attached it below. The only difference is I added back the init excitation to the measurement control loop.

0 Kudos
Message 6 of 13
(4,724 Views)

I couldn't replicate the same error.

Dev1 and Dev2 are the PXI-6115 ? I tried to simulate them and I get the error 201426 "One or more devices do not support multidevice tasks". I've never used different devices in one task before. See if the error is still there with only one device in the task.

 

Have you the latest version of DAQmx ?

Yddet

 

0 Kudos
Message 7 of 13
(4,710 Views)

I am using LabVIEW 2016 and it says the latest NI DAQmx version that is compatible is version 19.6. I have that version installed.

0 Kudos
Message 8 of 13
(4,699 Views)

For "the multi devices not supported", this may also be the problem. Me and my colleague encountered this problem before and I updated some NI drivers. The problem went away, but now I guess it has returned.

 

However, my colleague also told me he was able to run a similar setup before with 2 devices simultaneously without any problems. The code I am using is partially taken from his original program.

0 Kudos
Message 9 of 13
(4,692 Views)

The 6115 is an S-series device which only supports multi-device *INPUT* tasks.  More info here.  You'll need 2 distinct AO tasks for the 2 devices and should plan to sync them with a shared sample clock.  (The device acting as the source should be started last).  Further, you should *probably* also want to sync your AI task by sharing the same sample clock.

 

What's the history of this code?  The reason I ask is that the code seems to have been developed pretty far, yet the DAQmx error makes it a non-starter.   Is it derived from working code that used only 1 device for the AO signals?

 

 

-Kevin P

 

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 10 of 13
(4,672 Views)