LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200279 How to fix it ?

Solved!
Go to solution

and the SUB VI

0 Kudos
Message 21 of 24
(534 Views)

Hi Max,

 

on your "solution":

- when manipulating file path you should use file functions (like GetFileExtension, StripPath and BuildPath) instead of converting a whole path into a string. Much more safe once you start to use different OS…

- Using two hidden FP elements to store information looks wrong to me. Why not use (uninitialized) shift registers instead?

- Recent LabVIEW versions also support a "Create File with Incrementing Suffix" function…

- Banging DAQ hardware with "1 sample on demand" mode as fast as possible is most often the wrong way to read AI signals.

- Your subVI should use its connector pane according to the StyleGuide: lower left/right connector is "reserved" for errorIO. A nice descriptive icon would be fine, too.

- You never seem to use the AutoCleanup tool - it still improves your code (as you don't follow the StyleGuide)…

 

This snippet is still not "perfect", but shows some of the comments:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 22 of 24
(522 Views)

Wow thanks man ! taking your time to give me all of those advices I really appreciate it ! you're really a nice guy and I can't express how thankfull I am.

-No worries I fixed some of the problems as this was a prototype. I used the loops indicator instead of those saved reset thingies

-I did use the auto clean up on the part that checks if the file exist and replaces it. I dont use it on a grand scale as it makes the program sometime look confusing:

-Im quite curious as what problem could cranking up the speed of a DAQ that reds sample on demand could lead.

-How do you name the header when you're saving a table as Im doing right now??

0 Kudos
Message 23 of 24
(520 Views)

Hi Max,

 

Im quite curious as what problem could cranking up the speed of a DAQ that reds sample on demand could lead.

The sample rate is not consistent.

You get a high CPU load for a job you could delegate to the hardware…

 

How do you name the header when you're saving a table as Im doing right now??

Write the header first, then append the data to the file. (Read the help for WriteSpreadsheetFile!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 24 of 24
(518 Views)