LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

JNI and Labwindows/CVI Linking Problem

Solved!
Go to solution

I  am trying to connect to DataSocket Server in Java through LAbwindows CVI.

I am able to create a dll. Everything works fine with no compilation or run-time errore but when i run the native class DS_OpenEx fails to return.

If anyone can help me out with the problem.

 

Thanks

0 Kudos
Message 1 of 5
(3,798 Views)
Solution
Accepted by 0061433911028
Hi,

Could you better clarify the implementation that is working correctly and the  implementation that is not working correctly?

1. Are you successfully connecting to the DataSocket with Java source code and you are trying to communicate through this Java source through LabWindows/CVI?

2. What environment are you able to successfully create a DLL?

3. Can you indicate what environment throws the error code and what that code is?

-Adri K
Adri Kruger
National Instruments
LabVIEW Product Marketing
0 Kudos
Message 2 of 5
(3,782 Views)

Hello,

   Yes i can specify.

  I am creating a native class in java that is linking to DS_OpenEx in CVI.

The dll is created successfully, when i exeute the native class it executes the DS_OpenEx and connection is established now. I changed the execution model parameter to Polling Model. But still it is not changing the value of the parameter that i wish to update.

What is happening is Connection is established the packets transfer gets updated but no change in the value of samplenum.

URL i am passing is "dstp://localhost/samplenum".

the methods i am using are

DS_OpenEx

DS_SetAttrValue

 

Any help would be highly appreciated.

Regards and Thanks

Rachna

0 Kudos
Message 3 of 5
(3,777 Views)
Hi,

How are you establishing that you are indeed making a successful connection?

-Adri K
Adri Kruger
National Instruments
LabVIEW Product Marketing
0 Kudos
Message 4 of 5
(3,754 Views)

Hello Adri,

   Thanks a lot for replying. My code now is working perfectly fine.

Actually i had to set the execution model to Polling Model for my code to work on command line.

   Than i decided to build a GUI in Java to interact with DataSocket Server in Labwindows CVI.

Now its working perfectly fine and updating and retriving values from the Server.

Thanks and Regards

Rachna 

0 Kudos
Message 5 of 5
(3,746 Views)