LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parallel port updating

hi all,
i have a question that was asked a while ago, but unfortunately i couldn't understand the answers due to my small knowledge on LabView.

my question is that, i wan't to update the parallel port output in a way that when i press the bottun RIGHT ( look at the attachement please) a specific value is passed to the out port , when i release the bottun the value should stay the same ( RIGHT value's) and when i press LEFT .. the value changes to any thing i wish. when i press STOP the value is zero .. and so. i would like to have control and change the values using the boolen. i can update and control by typing the hex number directly, but my question is i want a specific value to be passed to the outport.

what i want is the easy way
of doing it. please don't forget that i am a begginer to LabView.

the attached file will help understanding my question.
it is only pressing the buttons instead of typing the number directly.

i look forward to hearing from you in the near future.

best regards,
0 Kudos
Message 1 of 6
(3,124 Views)
Hi,
I guess what you're after is how to control the flow of the program.
There's a couple of architectures you can use. 1 is events (in version 6.1) and the other is useing a state machine which keeps writing to the parallel port.
(you could move the looping outport.vi inside the case statement to only write when needed - method 3)
I've included them below.

Hope these help

S.
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 2 of 6
(3,124 Views)
hi ,

i think that the Event file was a good way of doing it.
i didn't test it practically , i only looked at the designing and programming part.

i have a request, but am a little shy to say.
will it be possible to discuss how the programming part was done and how would i make the same or even develop it ?
i mean is it possible to do that by instant messaging?
becuase i really don't know alot in the programming part and i have a graduation project to do, LabView is the only solution, and i really need to learn this part only for now.
i looked for books, but didn't understand alot.

i will be most gratefull if you SachaE could meet with me on MSN Messenger to discuss about it ( everybody is welcomed).

i look forward to hearing from you .

best regards,
murshed
0 Kudos
Message 3 of 6
(3,124 Views)
i forgot to say , that when i used the files attached .. an error message appeared that says .. there was an error in some node ..
but when i used the tracing thing .. to see how the code executes .. it was nearly fine.
am using Labview 6.1
0 Kudos
Message 4 of 6
(3,124 Views)
Hi Murshed,
Unfortunately I can't use MSN Messenge from work. The approaches I took was down to the amount of LabVIEW (and other programming languages) coding I've done - it comes down to a state of mind in how you break down problems.
I can't stress strongly enough (IMHO) that the best thing to do with a programming language is gain a little knowledge (how the environments work) and then play. It might be an idea, if you're stuck, to contact your local NI representative who could give you some advice, or even point you towards the LabVIEW courses.
If you have very large projects, you could even approach an integrator (see the alliance member directory on the NI website).


Hope that helps

S.
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 5 of 6
(3,124 Views)
hi
thanks for replying. Well i tried contacting my local Ni provider and they said that they would call me but they didn't.
i've read books, sites, tutorials about labview, but didn't get the real benefit from it yet. my uses are only using the parallel port and unfortunately the tutorials for it are not alot.
i had a teacher in my college that knows alot about labview but he was fired fot no reasons!
any way, the project is not big, what i want to learn now is how exactly control the parallel port to act when pressing a button or an events happen, this is my goal for now.

thanks alot SachaE for your help, i hope any body could help me in this thing, it wont take alot of time , might take only 30 min on the MSN or any other su
itable ways of instant messaging.


best regards,
Murshed
0 Kudos
Message 6 of 6
(3,124 Views)