LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with converting LV 7.0 to 6.1

Hi all,
 
Could someone help me with reverting this VI to LV 6.1. I have already done the conversion from LV 7.1 to 7.0.
 
Thanks!
 
Regards,
Anders
0 Kudos
Message 1 of 12
(4,001 Views)

Hi Anders,

your vi contains only 50 buttons and an event structure. Smiley Wink Why do you need to save this for previous version?

Mike

0 Kudos
Message 2 of 12
(3,997 Views)

Hi Mike,

The event structure is not available in the version of LV 6.1 I am working with, but i think it is in LV 6.1 Professional. Unfortunaltely, I do not got LV 6.1 Pro or a later version of LabView. A friend helped me edit a case structure with 50 buttons in LV 7.1, but none of us had LV 7.0 for the conversion back to 6.1.
I am able to open and compile a VI with an event structure in it, but i cannot edit a case or make any new cases. (I can edit code in the structure) 

I feel that my programming would be a lot easier if it is event driven. I do not got much experience with LV, but i try my best to get things working. Smiley Happy This forum has helped me a lot Smiley Happy

Anders

0 Kudos
Message 3 of 12
(3,992 Views)
Hi Anders,
another question, do you really need 50 event cases? You can react on different event in only one event case. You can then differentiate the event by the reference (read the button name or boolean text of it).

Mike
Message 4 of 12
(3,963 Views)
Better yet: Why not just use an array of Booleans? While dynamic event registration was not available in the LabVIEW 6.1 event structure you may be able to do the same thing using the mouse down event on the array and determining which button was pressed.
Message 5 of 12
(3,955 Views)

Hi,

Thanks for the replies.

I want to use all those buttons in a GUI, and every case will do different things like open file, save file, serial port write and so on. I thought it would be easiest to use 50 different cases as I would put code in every case.
I do want to point out that I have not really used the event case before, so I made what I managed to get to work.

If I would use an array of booleans, and use the mouse down event on the array. Am I correct if I say I still need the event structure?
I guess this means that I could, by my own, choose how many buttons I need without edit cases of event structure? If so, I would then be able to be resonably free in terms of edit my code as I want, even if I cannot edit the event structure.

Thanks,

Anders

0 Kudos
Message 6 of 12
(3,934 Views)
If you use an array you would still use an event structure. I don't understand what you're referring to when you say
I guess this means that I could, by my own, choose how many buttons I need without edit cases of event structure? If so, I would then be able to be resonably free in terms of edit my code as I want, even if I cannot edit the event structure.
Why can't you edit the event structure? Aren't you designing and writing the code?
Message 7 of 12
(3,909 Views)
smercurio_fc,

In an earlier reply I mentioned that the event structure is not available in the version of Labview I am working with, which means the Labview 6.1 Base package.
Please refer to this link, I hope this will answer your question:

http://digital.ni.com/public.nsf/allkb/86256A47004E16D286256B490060C5A1

So, I am trying to go backwards from a later version with the event structure available. In a later version of Labview: Edit an event structure with cases and events.
Then go backwards to version 6.1, and hopefully I would be able to use the event structure in my program. But I would not be able to edit cases or events of the event structure in my LV version.
With this in mind, I would like to make the code in a sense so general that it would not be dependent on how many buttons you got in the code.
You suggested making an array with booleans and use an even structure to trigg on the mouse down event of the array. Then check which button was pressed.
If I understand you correctly, I would be able to build this array with how many buttons I want, but the even structure would not need to be changed as the mouse down event is used?

Anders



0 Kudos
Message 8 of 12
(3,877 Views)
Yes, I am aware of the event structure only being available in the Pro version. I misunderstood what you were saying about which versions you had access to. You are basing this on the assumption that you will be able to use the event structure in 6.1 Base. I don't know if that's true, as I've never tried it. You will probably be able to run the code, but as you said you won't be able to edit the event structure.

That said, I think you're pinning yourself into a corner if you try this approach. The reason is quite simple: you will need to change the code, and quite likely the event structure itself. It's inevitable. This means that if you can't upgrade, and 6.1 Base is all you've got, then you need to make the best of the tools you have. Thus, I would suggest doing it the "old-fashioned" way of checking a 2D array of Booleans to see if which button, if any, was pressed.
0 Kudos
Message 9 of 12
(3,839 Views)
I've tried running code with the event structure (in LV 6.1 base) and I'm also able to alter the code in the event structure case. I can compile and run the modified code.

Could you please explain more in detail how to do it the old fashioned way? I don't know how to do this.

Thanks


0 Kudos
Message 10 of 12
(3,826 Views)