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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data saving from PIC code

Solved!
Go to solution

hello,

 

I was trying to save my experimental data from PID code. I used the queue options but I can't get any saved file on my computer. I have attached the PID code here. 

Would anyone check and help me to solve the problem? TIA 

0 Kudos
Message 1 of 7
(2,644 Views)

Hello,

 

Could you send your file in the 2015 version ?

What is the size and the type of the data ?

 

Kudos are welcome! Smiley Wink

0 Kudos
Message 2 of 7
(2,624 Views)

You are not putting any data into your Queue only a Boolean (Stop) 

========================
=== Engineer Ambiguously ===
========================
Message 3 of 7
(2,605 Views)

hi RTSLVU,

 

Actually, I followed another example. Would you please modify the code?

 

Thanks in advance

0 Kudos
Message 4 of 7
(2,594 Views)

Hi Fred19ni

 

I have attached the 2015 version of my code here. Actually, I want to save numeric data from the sensor. I have low knowledge about data type and size. Sorry, I can't give the exact answer to your question. 

0 Kudos
Message 5 of 7
(2,592 Views)

Hi Chowdhury_Milon,

 

I can't open this file because it's the 2017 version, not 2017.

Anyway, if you want to save numéric data, you can use Excel file.

This link will help you to choose the best file and to do it.

 

Moving Data From LabVIEW Into Excel

 

Kudo are welcomeSmiley Wink

Message 6 of 7
(2,577 Views)
Solution
Accepted by Chowdhury_Milon

1. You have a data dependency between your two loops.  Data flow will therefore dictate that you second loop connect run until the first loop is complete.

2. You are just using the queue as a stop condition.  You need to pass the data through the queue.

3. Get rid of those Dynamic Data Types whenever possible.  They make things more difficult to understand.

 

You might also want to give the Producer/Consumer a good read over.  But here is your VI set up to be a proper Producer/Consumer.  You still may need to tweak things to get the display and file format the way you want it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 7 of 7
(2,574 Views)