LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is that fopen() works in labview?

Solved!
Go to solution

Hi sirs...

I used fopen() in labview,it is not working.Is that i can use fopen() works in labview?

please help me as i am new to labview.

 

Thanks in advance

0 Kudos
Message 1 of 10
(3,872 Views)
Solution
Accepted by topic author pals

Can you provide some description of how you're trying to do this?

 

You realize that LabVIEW is not text-based, right?

 

Are you just looking for an equivalent method? http://zone.ni.com/reference/en-XX/help/371361J-01/lvprop/vi_open_front_panel/

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 2 of 10
(3,866 Views)

As Chris points out, LabVIEW is not a text based programming language.

 

So i recommend you to work through the LabVIEW in three hours tutorial.

 

Pay special attention on file IO functions.....

 

Norbert

 

EDIT: Maybe you should better look into the tutorial LabVIEW in six hours (same link as above) since it better elaborates on the basic file IO functions rather than only ExpressVIs.....

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 10
(3,864 Views)

Norbert,

 

Thanks for recognizing the file I/O call . . . wow, it's been a long time since I coded that in text based . . .

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 4 of 10
(3,848 Views)

Hi Sir.

Thanks for ur previous reply.Smiley Happy

As i need to write 'n' number of data(integer type) in to a file,I am not going with ArrayToFile.(becoz array size is not constant)

Rather I am trying with C file handlers i.e fopen() so that i can put 'n' values.

In File IO I could open FileOpen() where as WriteFile() i can not use becoz in this content to be written is char buff[],

whereas i want long int to be written.

 

 

 

0 Kudos
Message 5 of 10
(3,829 Views)

Why are you even using LabVIEW? There is no such function as ArrayToFile and none of the File I/O functions in LabVIEW care about a constant array size. I really think you should take those tutorials and attach some of your code so we can see where you are having issues.

0 Kudos
Message 6 of 10
(3,822 Views)

@pals wrote:

Hi Sir.

Thanks for ur previous reply.Smiley Happy

As i need to write 'n' number of data(integer type) in to a file,I am not going with ArrayToFile.(becoz array size is not constant)

Rather I am trying with C file handlers i.e fopen() so that i can put 'n' values.

In File IO I could open FileOpen() where as WriteFile() i can not use becoz in this content to be written is char buff[],

whereas i want long int to be written.

 

 

 


becoz?  What language is that?  You can't spell because?

 

 

Sounds like you should stick with C or possibly use LabWindows/CVI.

 

 

 

Message 7 of 10
(3,818 Views)

Use the Write to Binary File Function and wire the long int to the data variant input.

 

 

Be aware that LabVIEW is big endian. There is an optional input on this function to specify how to write (big or little)

 

Writing Binary Files with LabVIEW That Can Be Read by Other Applications

 

0 Kudos
Message 8 of 10
(3,816 Views)

Dear Sir,

I am sorry for that. 

0 Kudos
Message 9 of 10
(3,778 Views)

Hi Sir.

Thank you for the reply.It helped me to go through the tutorials.

0 Kudos
Message 10 of 10
(3,776 Views)