Farid2010
-
Posts
41 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by Farid2010
-
-
ShaunR
It's interesting I didn't know that . Thanks. I Use Firefox and i did what you said but it just pasted it as an image and not converted to code. How can we differentiate a simple png file from a snippet?
-
Thanks Neville But it's a png file.
-
Jon
Do you mean I have to create an invoke node for every single SubVi linked to main Vi?
Also I am wondering why my subpanel invoke looks different from yours ( it has not the reference input,although the version is 2010) can you send me the file of your example instead of image?
Thank you
-
Jon
Thank you so much but as I am not that expert in labview,do You have any example file I can look at?
Also, If I want to fit the Vi inside the sub pane ( not scrolling) what should I do?
Thank you in advance
-
Hi
I need your help. I created a sub panel in the front panel and wrote the code to open another Vi inside this sub panel. It works,but the problem is the Vi that I want to open here has several subvi's dependencies which do not open inside the sub panel.
What happens now is that the Vi opens in my sub panel but when I click in a button inside that vi ( which is linked to another sub Vi) ,the linked sub vi Opens in a full page( in a seperate window), not inside the sub panel ! How can I modify it in a way that all subsequent Vis also open inside the sub panel?
Can you help me in this regard?
my code image is attached.
Thanks
-
Thank you ShaunR
-
OK Thanks Ben
Same here when it comes to ActiveX.
I would start dropping and wiring invoke nodes and property nodes and wiring them to the ActiveX wire and look for something that looks good or you could try the help for those properties to get a clue.
A very long time ago it was possible to get the VBA version of the help for MS stuff by doing an advanced install of the MS stuff and make sure that "Help for VBA" is checked. It will not give you LV code but it will give you VBA examples that can be used as inspiration in LV.
Ben
-
Thanks Ben
I am not that expert. Could you give me more explanation or an exapmle file? Thanks
ActiveX stuff runs in its own world so you will have to poll to see if it still running of generate an event when the vieo comletes.
Ben
-
Hi
I want to open a video and after finishing that video which is 10 second, a dialog box (another sub vi) comes up and asks for other steps.I used sequence frame (both timed and flat) but the two events still execute simultaneously. I don't know how to use sequence frames in a way that the subvi runs just after the video playing time is done. Can anybody help?
Here is my video opening codes
Thanks
-
Thanks Ben.
I have another question. I put the activeX container in front panel and inserted windows media player into the container. The problem is when the program loads the video, the windows medai player expands to a bigger window which goes out of my container!! How can I fix it? I want it play inside the container.
Tnx again
Farid
-
Hi! I have problem with 2D picture control. when the image is loaded in the 2d picture box, it is placed in up and left part of the picture box and the rest remains white. How can I set it to fit in the whole picture box?
Thanks
-
Francois! I am out of town now and just saw your comments, Thank you so much for youre guides. I 'll try them when i am back to work. You helped me a lot so far. Thanks
I was thinking of corrupted files when I sent you the test VI. But it's so rare...
Concerning your questions, it surely is possible to use the events to do what you want. You need to activate/deactivate the events based on the last action performed. Wiring a constant to the references deactivates them, and wiring the correct reference activates them. Establish a list of the sequences you need to achieve what you want and code them accordingly as shown in the VI I posted.
(1) What's the detailed list of user interactions for this? That's what you need to code. Ex: When left-click is detected, show the scroll down pictures and activate two choices: a) if mouse leaves, close the drop down menu or b) if user left clicks again, select it. In the example I showed, I used the Mouse Up event, but if you replace those by Mouse Down, it might work without further modifications. Try it, and if you don't succeed, upload your modified code to show what you tried.
(2) You could add to the code to check for a condition when the user selects a picture that should have a second drop down menu to show this second picture array (make it visible) and position it where the user had clicked. Configure the events to react exactly the same way has for the first array of pictures (select or hide) depending on the mouse down/leave events.
(3) You'll notice, in the Event cases, that there is an inside terminal with a list of things like buttons, coords, ctl ref, etc. The button terminal lists which button is activated. I'm not sure how you can scroll your list with the scroll button of the mouse, but it might be doable. Never tried that.(I don't think there is a "Mouse Scroll?" event)
-
Froncois,thank you so much. it just worked!! i think there were 2 corrupted images among that directory files which made it not functioning. thanks. I have 3 questions :
1- now when i click and hold the mouse left button, it shows the pictures and select the picture when i hold the mouse on the picture and then release the left button. Is it possible to make it like normal drop down which by first click it pulls down and shows the pictures and then selecting the picture just by clicking on that?
2- is it possible to make the combination drop down menu ( see the image) by using picture array?
3-Is there any way to scrolling pictures by scrolling the middle button of mouse?(i need this function for another user interface)
Again, Thank you a lot and appreciate your patience and kind effort.
I think the pictures are there...
What is the size of your images???
Resize the picture frame in the array to show more if needed, but if they're huge, use an image editor to reduce the pixels to what you need to display in the array. I used a 32x32 picture, but enlarge it to what you want. It doesn't have to be square. However, the array elements are not resizing automatically to your picture size.
-
it does'nt show any error!! but still no picture is shown. here is the image with highlighting execution.
As I thought... if PNG's are actually not corrupted.
Let's try something else:
Can you check where the error is occuring in the code?
It works fine in my place, so we've got to find the point where the error is generated. Use execution highlighting.
-
It didn't show up any error,,
Can you try this test code and tell me if you run into errors?
-
Froncois!Thank you so much for your kind effort. I did exatly what you showed in video. Now it shows this error message after selecting "current folder". I don't know what is wrong!!!!
Browse to the folder that contains a list of your images (the usual double-clicks to open the folder). When you see the png files listed, select "Current Folder" at the bottom right.
<object id="scPlayer" class="embeddedObject" width="634" height="478" type="application/x-shockwave-flash" data="http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/jingh264player.swf" >
<param name="movie" value="http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/jingh264player.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#FFFFFF" />
<param name="flashVars" value="thumb=http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/FirstFrame.jpg&containerwidth=634&containerheight=478&content=http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/2010-10-01_0941.mp4&blurover=false" />
<param name="allowFullScreen" value="true" />
<param name="scale" value="showall" />
<param name="allowScriptAccess" value="always" />
<param name="base" value="http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/" />
<video width="634" height="478" controls="controls"><br />
<source src="http://content.screencast.com/users/normandinf/folders/Jing/media/41ae1109-54db-438b-b200-e462ec7e9383/2010-10-01_0941.mp4" type="video/mp4;" /><br />
<b>Your browser cannot play this video. <a href="http://www.screencast.com/handlers/redirect.ashx?target=viewingembededhelp">Learn how to fix this</a>.</b>
</video>
</object>
-
Yes I have png files. I tried the new file you just sent. again the same problem. As you see in the image, when i select the folder which contains png files nothing is selected in "file name" section. it doesn't select neither by selecting and hiting open button nor by double click or etc.!!!
Did you have any PNG files in the directory? You can change it in the code if you use other formats. Also, I've limited it to the four first file in the folder for the demo, but you can change that in the code.
I've changed the code to ask for the folder on startup.
<a href="http://content.screencast.com/users/normandinf/folders/Jing/media/6fa447b3-276b-484f-a496-3d3f10261a04/2010-10-01_0905.png"><img'>http://content.screencast.com/users/normandinf/folders/Jing/media/6fa447b3-276b-484f-a496-3d3f10261a04/2010-10-01_0905.png"><img class="embeddedObject" src="http://content.screencast.com/users/normandinf/folders/Jing/media/6fa447b3-276b-484f-a496-3d3f10261a04/2010-10-01_0905.png" width="306" height="284" border="0" /></a>
-
I tried again but still when i browse to select a directory which contains my pictures,either in non-executing mode and executing mode! it does not select the directory. could u double check the file yo sent me? Thanks
Select the directory before running the VI.
You can check on startup (init frame) and add a browse for directory primitive from the File IO palette.
-
Thanks francois, but when i run it and browse to select the directory in which images are, it doesn't select!!
This won't do the cascading effect, but you can have a quick look at how you could use a simple array of pictures with events to act as a drop-down picture ring.
-
I created a popup vi in which by pushing the YES button another Vi opens and the current vi closes, but it only opens the second Vi and does not close the first Vi? i tried different ways but still have not found any solution! Could you help me in this regard?
files are attached.
-
Thank you guys. as michael said i have not that much experience but i m trying to either make my project and also learn labview. it's hard but i ma really interested . I have to read more about xcontol and picture controls.
The problem is we are pretty much stuck with the controls we are given. As we don't have access to the control canvas and the "OnRedraw" event, we cannot change the control (with the exception of a few cosmetics). Everything we do to get around it is really a kludge and not for the faint of heart.
You are probably better off finding an Active X or .NET control tat supports images and using that.
-
Thanks but i don't know how to make it. Do you have any example file?
May be XControl is a good way to realize it.
-
No i did not!!
Did you remove its front panel?
-
Sorry Francois I should have written the version next to it.
Farid,
when you upload code that is not in the same version as the one you show in your profile, please add a note for the version the VI is saved in.
I don't have LV2010 installed, so I can't help you. But I wouldn't have tried if there was a note next to your uploaded file.
Worst case, if the file is corrupted and the code inside is very complex and hard to duplicate, perhaps NI can help?
Problem with Sub panel! Need help
in Application Design & Architecture
Posted
ShaunR
Yess! It changed to code now with the last trick you mentioned. Thank you so much