LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does queue not update?

Solved!
Go to solution

That looks like a bug, one that I have never encountered, which version of LabVIEW are you using?

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 11 of 15
(894 Views)

Hi Ton.

 

Yeah, it probably is. The example uses a Double Constant to initialise the Queue, so a Bundle Constant should have worked.

 

I'm using 7.1.

 

Peter.

Peter Cusack
Control Engineer
CSIRO Materials Science and Engineering
LV 7.1, VB6 & Notepad++
0 Kudos
Message 12 of 15
(889 Views)

Just to follow up, I changed the single item Queue to a Notifier, and got a double win. It ran fine, and it initialised properly with a Bundle Constant. I do feel that the Queue behaviour is a bug. Though the workaround I used was acceptable, any variation in the initialisation sequence for similar data types allows a space for errors to creep in.

 

Cheers;

 

Peter

Peter Cusack
Control Engineer
CSIRO Materials Science and Engineering
LV 7.1, VB6 & Notepad++
0 Kudos
Message 13 of 15
(863 Views)
I don't understand.  Why are you  bundling some stuff together to create a cluster to initialize the queue.  Why wouldn't you just use a cluster consant directly?
0 Kudos
Message 14 of 15
(859 Views)

Hi Ravens Fan.

 

The Queue is used to synchronise two State Machines in my application. One collects data from a setup page containing several distinct functions, the other uses that data to make calculations on data acquired in measurements, and display the results.


State Machines are essentially While Loops, and data collected in a While Loop is not normally visible outside it until it ends. Queues (and Notifiers) allow me to pass data from one to the other without stopping either.

 

Cheers;

 

Peter.

Peter Cusack
Control Engineer
CSIRO Materials Science and Engineering
LV 7.1, VB6 & Notepad++
0 Kudos
Message 15 of 15
(849 Views)