NI Home > Community > NI Discussion Forums

LabVIEW

Reply
Active Participant
Steve_Block
Posts: 273
0 Kudos

Exporting states from a case and event structure to a text file

I need this for documentation. Is there a way to export a list of states from a case and event structure to a text file? Thanks.

Active Participant
Michael78
Posts: 260

Re: Exporting states from a case and event structure to a text file

Steve,

If you enable scripting you can do it like this:

Get Case Names.png

 

Then write the names to a file.

Enable scripting nodes under tools>>options>>vi server

 

Dont forget Kudos if this is what you were looking for :smileyhappy:

 

Michael

 

Trusted Enthusiast
DFGray
Posts: 2,779
0 Kudos

Re: Exporting states from a case and event structure to a text file

You can do this for a case structure.  You cannot do it for an event structure.  I know of no programmatic way to get event structure names/events.

Using LabVIEW 2011 - 2013 on Windows 7 64-bit
Active Participant
Michael78
Posts: 260
0 Kudos

Re: Exporting states from a case and event structure to a text file

I guess the property is not available for events because they are not simply case labels. My workaround for now will have to be the old fashioned print screen and ocr. I tried this out and it was better than typing, but far from elegant!
Michael
Active Participant
jcarmody
Posts: 1,930
0 Kudos

Re: Exporting states from a case and event structure to a text file

I've (somewhat) succeeded using OCR to retrieve the events from an Event structure here.

Jim

You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice