From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

Configuration File VIs give refnums that are not refnums

I am currently using LabVIEW6.1 and have little trouble with this refnum business. Configuration File VIs give refnums that are not refnums. I check this by using the comparison function "NOT A Number/Path/Refnum?" . The same thing happen when I cast a numeric to refnum using "data log file refnum" as the data type.
Thanks,
tc phan
0 Kudos
Message 1 of 4
(2,793 Views)
Configuration File VIs give refnums that are for other Configuration File VIs only. The refnum is created by type casting a numeric.
These refnums are incompatible with the File IO refnums for various other file operations.
0 Kudos
Message 2 of 4
(2,793 Views)
Config File refnums are not actual file refnum to the config file but a refnum to config data in memory. You can't use it for file operation. "NAN/P/R" will always return TRUE.
To test if a config file refnum is valid, use "Not a Config File Refnum.vi".


LabVIEW, C'est LabVIEW

Message 3 of 4
(2,793 Views)
Thanks alot! Jean-Pierre.
regards,
tc phan
0 Kudos
Message 4 of 4
(2,793 Views)