LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open File dialog options for a newbie

Hi,
I wish to open a file in read only mode and for that I am using the "Open File". I have been able to connect all its inputs except the "open mode (0)". I am using the "Enum" datatype with the correct number (4) of enumerations.

I checked up the example "AnalogOutputDialog.vi", but am unable to come up with something similar on my own, because of this error.

Any ideas where I am going wrong?
0 Kudos
Message 1 of 3
(2,658 Views)

Please post the code you are having trouble getting to work.

That VI will return an error if the file specified by the path does not exist. Are you sure the file in question is correct?

Trying to help,

Ben


Ben Rayner
Certified LabVIEW Developer
www.DSAutomation.com

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,658 Views)
Is the error you are getting a broken wire between the Enum and the read mode Terminal?

If so it sounds like you may have tried to create the emun on your own, and there is a chance there is a mismatch. I would suggest using the "create constant" method. If you right click on the "Open Mode" terminal and select Create >> Constant you should get an enum constant that will wire up correctly.

If this is not the behavior you are seeing, attach your VI and we will take a look at it for you.

Evan
National Instruments
Message 3 of 3
(2,658 Views)