cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

LabVIEW NI-Scope Example: Error 1 occurred at Enqueue Element

Solved!
Go to solution

LabVIEW NI-Scope Example: Error 1 occurred at Enqueue Element

  1. I altered NI-Scope EX Stream to Disk by adding custom file name prefix (YYYYMMDD-HHMMSS), and I began to get the error as shown below at Enqueue Element for an invalid input parameter.
  2. The other change I incorporated was to time-restrict the producer loop to 1.5 seconds and collect data for just this time period.
  3. As stated in on of my previous post here, I am not sure about how to use a STOP trigger to the Stream_to_disk example so that I don't have to time restrict the collection of data from the producer loop based on my sampling rate/freq.

 

2018-06-29 14_14_09-.png

 

4. Below (also attached) is the altered example

20180629-timed_producer_loop.pngany advise on how to correct this and obtain data for a pre-alloted time period and/or using a stop trigger is appreciated.

 

Thanks.

NI System Configuration:
- NI PXIe-1071, 4-Slot 3U PXI Express Chassis , 1 GB/Slot throughput, Part Number: 781368-01
- NI PXIe-PCIe8381,x8 Gen2 MXI-Express for PXI Express Interface,3m, Part Number: 782522-01
- PXIe-5160 PXI Oscilloscope, 500 MHz, 10 bits, 2.5 GS/s, 2 Channels, 64 MB, Part Number: 782621-01
- Astronics PXIe-1209 2-Channel, 100 MHz PXI Pulse Generator, Part Number: 785033-01
0 Kudos
Message 1 of 5
(303 Views)

Re: LabVIEW NI-Scope Example: Error 1 occurred at Enqueue Element

Kindly upload your updated code so that equeue error can be sorted out.

CLD Using LabVIEW since 2013
0 Kudos
Message 2 of 5
(270 Views)

Re: LabVIEW NI-Scope Example: Error 1 occurred at Enqueue Element

Please find the attached VI

NI System Configuration:
- NI PXIe-1071, 4-Slot 3U PXI Express Chassis , 1 GB/Slot throughput, Part Number: 781368-01
- NI PXIe-PCIe8381,x8 Gen2 MXI-Express for PXI Express Interface,3m, Part Number: 782522-01
- PXIe-5160 PXI Oscilloscope, 500 MHz, 10 bits, 2.5 GS/s, 2 Channels, 64 MB, Part Number: 782621-01
- Astronics PXIe-1209 2-Channel, 100 MHz PXI Pulse Generator, Part Number: 785033-01
0 Kudos
Message 3 of 5
(254 Views)
Solution
Accepted by topic author asukumari
07-06-2018 04:29 PM

Re: LabVIEW NI-Scope Example: Error 1 occurred at Enqueue Element

Hello asukumari,

I went through your vi and found that you were releasing the queue while the acquisition is being carried out. Secondly you have to set the boolean "Acquisition completed" to false when the vi is initialized. Find the attached code. 

 

And one more thing rather than looking for stop trigger why dont you acquire the number of samples that will be generated during the one cycle e.g 50000 samples per cycle.

CLD Using LabVIEW since 2013
Message 4 of 5
(247 Views)

Re: LabVIEW NI-Scope Example: Error 1 occurred at Enqueue Element

Well again the problem is the following:

 

Number of samples @ 1.25 GS/sec = 1.25x10^9 samples/second. What if I want to repeat this for N cycles.

How will I tell my program that the next pulse from my pulse generator is going to occur exactly at time T and start acquiring data from T to T+k (where k is the next occurrence of trigger). When using an external trigger, you control exactly when to start acquiring data and when to stop.

 

 

NI System Configuration:
- NI PXIe-1071, 4-Slot 3U PXI Express Chassis , 1 GB/Slot throughput, Part Number: 781368-01
- NI PXIe-PCIe8381,x8 Gen2 MXI-Express for PXI Express Interface,3m, Part Number: 782522-01
- PXIe-5160 PXI Oscilloscope, 500 MHz, 10 bits, 2.5 GS/s, 2 Channels, 64 MB, Part Number: 782621-01
- Astronics PXIe-1209 2-Channel, 100 MHz PXI Pulse Generator, Part Number: 785033-01
0 Kudos
Message 5 of 5
(243 Views)