-
Posts
26 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Papang
-
-
What are the errors?
Connection errors, and I'm still not be able to loop the VIs.
Somehow, data client and server is to hard for me to understand.
-
Take a look at Data Client.vi and Data Server.vi in the NI examples.
Hi ShaunR,
I was take a look those VIs, and try to implement into my VIs. The facts is just the other errors come out, I'm stuck
-
Give this a try.
Hi ShaunR,
The programs was work perfectly. But when I press stop button in the client side, the programs was stop running. I put a while loop over the client diagram to make it able to play again after it stop but it doesnt work. (what i'm trying to do is client side able to play and display the image from the server side even its stopped, so it able to play over and over during system running)
Do you know how?
-
Hi ShaunR, I have a question regarding these VIs.
I want to put play and stop button at the client side.
So when I press play, the camera show the images and when press stop, camera stop receiving the images from the server. And that case may loop over and over again.
Is it possible to implement?
-
Hi Lavas,
I was creates 2 TCP programs, client andserver.
Client side is open connection and there aretwo functions provided, first are receive the image from the server and second aresend request of Boolean to the server.
Server side is listen connection and there arealso two functions provided, first are send the image to the client and secondare receive request of Boolean from the client.
My questions are:
Can I combine those two functions into one lineTCP connection (because my current programs at two lines TCP connection) and putit into case structure so I can play the connections several time duringprogram running?
I was try but it no works and some errors comeout so I make it back to standard.
Hope anyone can help me..
Thank you.
-
Thank's Lavas.
It works
-
Ohh I see...
Hmm, How if I want to store the second string on the second column?
-
Hi everyone,
I'm trying to insert 2 data from string control into an array. I was done to insert 1 data from string control into an array but when I try to add 1 string control, it not works. Could you guys assist me?
Thank you
-
Actually I create these requirements by my own. My lecture not ask me for that but its better if I can implement those functions because my current program is add the user manually by typing into the table. Do you have any basic steps to implement function like I mention before? Forget about my previous program. Maybe I can combine it later.
I could, but at this point I'm not convinced this isn't an homework ("he/she" is usually indicative of a generic written question) , so I'd like to see that you start to implement these functions. When I tried to answer your question, I couldn't find a simple way to help with your existing program. Any suggestions I would have made would have added more complexity and bug potentials, so I opted to show you a design that you could build on. I hope the design is not too advanced because that would defeat my purpose here.
Ask yourself, what do I need to implement these two requisites? Are these just two more possible states to be added to my design? How can I add a state in my code?
-
Anyone?
-
Thank You François Normandin,
It was really help me, but I'm still do not know how to create this:
- When addbutton selected, add user panel will appear and display 2 empty string controlswhich username and password. To add other user, he/she just insertusername/password that they want, press add user button, those data will automaticallyinserted into the table and user admin will back to user panel.
- When deletebutton selected, delete user panel will appear and display 2 empty stringcontrols which username and password. To delete other user, he/she just insertusername/password that they want, press delete user button, those data will automaticallydeleted from the table and user admin will back to user panel. ButIF username/password is not relevantwith table’s data, message box will appear (telling that username/passwordinserted are not available) and the string control will be empty.
Can you assist me?
Hello Papang,
First, thanks for uploading your code. That helps understand what you want to do.
I've reviewed it and it is hard to follow when you have many structures within structures. Try to avoid putting multiple event structures in the same loop: you might have deadlocks that are hard to debug. Also, the use of local variables to keep information between loops
Instead of modifying your code, I thought I'd prepare a Login Demo project for you to look at. It's based on a queued state machine, for which you can find examples in LabVIEW's help or templates. I've put many comments in the code for helping you expand on this example. I hope you find that this demo is useful to decompose all your use cases and create a login VI with the desired functions. Try modifying this base code to achieve the list of specifications you have. If you still have questions, come back... ;-)
Login demo.zip (LV 2009)
-
-
Hi lavas,
I was creating a user login system using usernameand password, but there something less with the functions. Here belowdescription of the system.
- User should using an admin account (username:admin/password:123456)to login at the first time.
- When the user was login and stand as adminposition, user panel will appear and display 3 buttons which add, delete and view.
- When addbutton selected, add user panel will appear and display 2 empty string controlswhich username and password. To add other user, he/she just insertusername/password that they want, press add user button, those data will automaticallyinserted into the table and user admin will back to user panel.
- When deletebutton selected, delete user panel will appear and display 2 empty stringcontrols which username and password. To delete other user, he/she just insertusername/password that they want, press delete user button, those data will automaticallydeleted from the table and user admin will back to user panel. But IF username/password is not relevantwith table’s data, message box will appear (telling that username/passwordinserted are not available) and the string control will be empty.
- When viewbutton selected, user list panel will appear and show user table where usernameand password are stored. This table is readable-only. Press done and user adminwill back to user panel.
- When it done with editing user account, theuser admin can log out and try to login with other user account. The usernameand password inserted for authentication will be match with the data inside theuser table. Message box will be appearing to notify user IF username andpassword are wrong.
- Username/password cannot be empty. IF username/passwordis empty and login button pressed, message box will appear (telling that pleaseinsert your username or password).
Hopeanyone may solve this.
Thank you.
-
-
That's what we're here for
Ahahaha, Thank you,
By the way, do you know any learning center for labview in malaysia?
-
Sweet.
Press the green plus "+" on the right of my post.
As you are using TCPIP to transmit your data.
You might want to take a look at dispatcher.
I press the green + until my limit out. ehehe..
I saw your dispatcher but I'm not really understand on it, I'm still newbie in LabView world.
But thank you for introduce me something new.
If I have any question, may I ask you again?
-
Huwaaaaahhhhh ShaunR,
It's work perfectly !
I was tried to close the Vis, open it again, run it, close it, open it again, run it (ehehehe) several times and no error.
Thank you so much ! Thank you for assisting me this far, Ehehehe...
Is there any appreciation in this forum like NI forum (mark as a solution) ?
-
Yes you are right. Apart from adding the "Dispose" I also removed the conversion from an image to an array (and visa versa) as I indicated in my previous post. Although I don't think it will solve your problem (but we can hope )
Hi ShaunR,
The VIs diagrams thatt you post yesterday, it works but the image display is non-current like stammering.But no error at all...
-
I was able to get the original file zip that you posted yesterday. I able to open it again, run it, it works then I close it, try to open again and the error comes out.
And then I try to create my own programs based on your VIs diagrams, it works but when I open, the error comes out again.
But let me try your VIs diagram that you just post, I think there is something different from your previous VIs. I will let you know if any progress.
By the way, thank you for assisting me here.
-
Is it because I'm using version 8.5?
I read from NI forum tells the errors comes from 8.5 bugs, so I need to move on version 9.0 SP1. Is that correct? I haven't try yet, so any other opinion?
-
-
Wow, It's work ShaunR.
Thank you very much.
-
-
Hi ShaunR,
Thank's for your advices, but the first is still blinking but not fast as the previous one. Is there any other solution?
And for the second, if I remove wait ms. The client side not display any image from the server side. So I decide to reduce the amount from 500 to 160 and it works but the display is not smooth really. Is there any other solution or advice what should I do?
Thank you.
The IMAQ USB library is ancient.. It was a quick fix before Measurement & Automation explorer supported USB and has many issues such as memory leaks and and the installer has issues with win7.
I strongly suggest you use the measurement & automation explorer first and use the image libraries to interface to it.
However.
To stop the blinking you could try selecting "Synchronous Display" by right-clicking on the image indicator and selecting "Advanced>>Synchronous Display".
If that fails then you are probably receiving incomplete/corrupted packets or you are timing out, reading nothing and then updating the display..
The second one is so slow because you have put a 500ms wait in the loop and a receive time-out of 500 ms.Remove the wait ms and use the default time-out (i.e don't wire it)
USB Camera Error
in Machine Vision and Imaging
Posted
It will looks really messy.
I'm sorry, I really know nothing about advance level of labview..
Capture.vi
Reciever.vi