LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LabWindows\CVI - Flash: How to use ... ?

Hello, I have the version 6.0 of LabWindows\CVI, and I use Flash Macromedia 6.
 
I have seen three examples of applications with these two software. I have use some functions from Flash (ISchockwaveFlash) and I can help somebody to use them. However, I have not the answer to use the Event Callback Registration Functions and particularly "FSCommand".
 
If somebody can help me and say the solution here (for the others), because the link following don't help me: http://forums.ni.com/ni/board/message?board.id=2170&message.id=4195&query.id=29342#M4195
 
Djege
 
PS: URL for examples applications:
 
From these two examples, you could take the file Flash.fp, that contains all the Flash functions could be used with LabWindows\CVI..


Message Edited by Support on 04-03-2008 03:06 PM
0 Kudos
Message 1 of 8
(5,461 Views)

Hello Djege,

I am not sure to fully understand what is your question for.

Is is regarding a problem when using CVI or a general issue about Flash Macromedia 6 activeX functions. If it deals with CVI, please describe me in details where you face a problem (note that one example of Macromedia activeX function can be found here). If it deals with the functionning of the Flash Macromedia activeX controls, you should find more information about them at the following link in the support section

Hope this helps

Best regards,

0 Kudos
Message 2 of 8
(5,419 Views)

Bonjour Mathieu,

Mon problème est le suivant:

Je suis en train de réaliser une application sous LabWindows/CVI générant un ActiveX afin de lancer une animation Flash.

Les projets exemples FlashPlayer m'est déjà connu, ainsi que deux autres examples. J'arrive ainsi à utiliser les commandes standard Flash (SetMovie, Set-GetVariable, etc), mais je n'arrive pas à utiliser la fonction FSCommand. Mon but serait de l'utiliser avec l'option Fullscreen activé.

Ce que je cherche à savoir est un exemple d'utilisation (j'ai des problèmes d'erreur lors du lancement de la commande). J'ai tenté l'utilisation de: "

  if((status = ShockwaveFlashObjects__IShockwaveFlashEventsRegOnFSCommand (panelHandle, FSC, NULL, 1, ID))!=0) ReportAppError(status);

" et de "
 ShockwaveFlashObjects_IShockwaveFlashEventsRegOnFSCommand_EventVTableFunc (thisPtr, "fullscreen", "TRUE");

", mais j'ai de nombreuses erreurs.

 

En fait, je souhaiterais lancer l'animation Flash en plein écran après son démarrage. Je ne sais si cette commande permettra de le mettre en plein écran limité par les bords du panel, ou en plein écran limité par les bords de l'afficheur graphique (PC portable ou fixe).

+1 :D'autre part, comment puis-je définir la taille précise du contrôle ActiveX, car pour l'instant, je le fais manuellement ?

+2: Enfin, j'ai essayé de lancer dans ma fenêtre successivement 2 animations: une séquence d'introduction et une animation classique. J'aimerais aussi que les deux puissent avoir une seule ou plusieurs frames.

Avec une seule frame, je n'ai pas la solution, car Flash ne peut me renvoyer d'information me disant l'application s'est déroulée une fois. Avec plusieurs frames, je peut mettre la commande Launch My_File.swf en dernière frame.

Dans les deux cas, j'ai envoyé au préalable, à l'animation une fois ouverte, la commande "Loop = false". Le premier cas ne permet rien, le second permet de changer si on connait le temps et que l'on défini un timer.

PS: mon e-mail est christophe_gerolami@yahoo.fr

Message Edité par Djege le 08-22-2006 02:03 PM

0 Kudos
Message 3 of 8
(5,386 Views)

Bonjour Djege,

Je ne connais pas les méthodes activeX exportées par l'application Flash. Côté CVI, ce lien donne la démarche à suivre pour pouvoir utiliser les méthodes exportées par un serveur activeX.

Concernant votre problème, je pense que vous avez un conflit de version entre le controller activeX (normalement créé suite à la manipulation décrite dans le lien précédemment proposé), et la version du flash installé sur votre machine. Quoiqu'il en soit, il semble que la fonction que vous essayez d'utiliser n'existe pas puisqu'il vous manque son protoptype. Pour plus d'information concernant les méthodes exportées par un serveur Flash, je vous renvoie de nouveau vers le lien suivant.

En espérant que cela puisse vous aider.

Cordialement,

Message 4 of 8
(5,352 Views)

double post

Message Edité par Mathieu Steiner le 08-23-2006 07:42 AM

0 Kudos
Message 5 of 8
(5,356 Views)

Mathieu,

Effectivement, il faut mettre le prototype. Cela donne :

static void CVIFUNC _IShockwaveFlashEventsRegOnFSCommand_EventVTableFunc
     (void *thisPtr, BSTR *bString_1, BSTR *bString_2)
{
   CA_CStringToBSTR (cString_1, bString_1);
  CA_CStringToBSTR (cString_2, bString_2);

 // Lancemment en plein écran
  ShockwaveFlashObjects__IShockwaveFlashEventsRegOnFSCommand 
   (?,?,?,?,?);

}

Je cherche la réponse des cinq paramètres. Le premier semble la fenêtre ActiveX, ensuite... C'est le noir total.

on serait dans le même cas que la fonction suivante:

//----------------------------------------------------------------------------
// ReportWordAutomationError
//----------------------------------------------------------------------------
static void ReportAppAutomationError (HRESULT hr)
{
    char errorBuf[256];
   
    if (hr < 0) {
        CA_GetAutomationErrorString (hr, errorBuf, sizeof (errorBuf));
        MessagePopup (APP_AUTOMATION_ERR, errorBuf);
    }
    return;
}

Je vais essayer de poser la même question chez adobe. Et rechercher plus en détail la description de FSCommand vu de l'extérieur.

0 Kudos
Message 6 of 8
(5,340 Views)
Hello Sir ,

               I am a student from PSG Tech,CBE . In my current project i use NI Speedy - 33.  I face a great difficulty in receiving the analog signal inputs.  When i use the stereo jacks for getting my analog dc signal into the dsp module, there is an external noise always being added to this input.  I think its probably from the microphone input, which is on board.  The option between the audio line in or microphone is defined by two jumpers which doesnt eliminate the mic when i choose audio line in jack.  In the manual they have said that , the jumper is to choose between low gain and high gain( for audio in and mic resp).   Even when i give zero volts to the audio in jack ,  there is a random variations in the input side after it passes through the audio in jack.   My connectors are all perfect.  Can u help in this regard, as to how to get input through the audio line in jack, .  I would also like to know about the details of the analog expansion slots, the 20 pin and the 10 pin connector.  Is there anyother jumper configuration i should make to have an noise less input through the audio line in jack .. ?
regards,
Manoj
0 Kudos
Message 7 of 8
(4,936 Views)
I don't know NI Speedy, so I can't answer.
If you create a new subject, you will have more answers...
 
Sorry
0 Kudos
Message 8 of 8
(4,909 Views)