LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel spreadsheet as input to PID Setpoint Profile VI

Sure!

This is an Excel ".csv" file (comma delimited) with 2 columns:

Time (seconds) and randomly generated setpoints (mmH2O in our case ).

0 Kudos
Message 11 of 27
(1,555 Views)

bmann2000,

No, I have not. But will try.

Thanks for your reply!

0 Kudos
Message 12 of 27
(1,554 Views)

Hi Perillo_U...,

the attached example should work for you.

If not, can you upload you vi?

 

Mike

0 Kudos
Message 13 of 27
(1,543 Views)

Hello Mike,

No, I am having the same problem and attached the VI for you.

Thanks Mike!

0 Kudos
Message 14 of 27
(1,537 Views)

Hello bmann2000,

 

The problem really isn't reading the data, but reading in an appropriate fashion to make it match the structure needed to feed the PID Setpint Profile SubVI.

 

Thanks for your reply!

0 Kudos
Message 15 of 27
(1,518 Views)

To help clarify, I am posting a copy of the PID Setpoint Profile VI.  Maybe this will help some.

Thanks!

0 Kudos
Message 16 of 27
(1,483 Views)

Hi Perillo,

 

I took a look at your VI and it looks like you are inputting the correct data type.  What type of error are you getting?

 

Justin P

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 17 of 27
(1,470 Views)

Hello Justin, thanks for your interest.

 

Well,  apparently it reads all data from spreadsheet at once instead of sequentially, so a few seconds later I got either a "zero" value or "NaN".  This VI is actually a SubVI used in a control VI.

0 Kudos
Message 18 of 27
(1,463 Views)

Does the second Setpoint Profile VI with the constant wired into it read the values sequentially? 

 

Justin

Justin Parker
National Instruments
Product Support Engineer
0 Kudos
Message 19 of 27
(1,452 Views)
The second VI is just a copy from the original included in LabView installation package (Real time package), which not everyone has access to, but when I try to substitute the constant with the data from the spreadsheets it gets messed up.
0 Kudos
Message 20 of 27
(1,448 Views)