LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running joystick on real time card

I'm using PCI-7041/6040E real time daq card directly running on windows (labview and the daq card installed in single computer).How can i communicate data between host and daq card? I want to use joystick while the joystick vi can't be download in RT excecution target. In this forum says it can be done if joystick vi is running on host and the joystick data is transfered to RT target, but for my condition (using one computer), Can I do this?
0 Kudos
Message 1 of 7
(3,686 Views)

hi there

the datasheet says the board contains ".. high-speed dual port memory for communicating to the host..."

see the boards documentation of how to use this memory to share data with the host application. you can then create a simple LV App that reads the joystick and writes the data to the shared memory.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 7
(3,685 Views)
Yes, I know about using communication on RT but I'm running it directly on windows. I made TCP communication wizard but still didn't work. Can TCP/IP be used directly on windows?
0 Kudos
Message 3 of 7
(3,676 Views)

ok....

your RT-card has memory that can be shared with a LV-app running on the host pc. that means: both the RT-app running on the card and the Host-app running on the PC can access this shared memory using the vis from the "Real-Time shared memory"-functions palette. by doing so you can pass data between RT-app and Host-app. see the documentation of the VIs from that palette for more information (see "Real-Time Module"->"Real-Time VIs"->"Real-Time Shared Memory VIs" of the "Functions, VI and How-To Help") or search for some examples in the exampler finder.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 7
(3,670 Views)
I see the example but there's only for traditional nidaq while I'm using Daqmx. Is it any for daqmx?
Is host vi can run together with RT vi?
I can't use joystick because the vi's dll can't be loaded, is any dll that I can use to the vi or at least my joystick be able to be detected by labview or MAX?
I'm using microsoft joystick.
I'm sorry for my silly questions, I'm a very newby of real time.
0 Kudos
Message 5 of 7
(3,653 Views)

hello

the examples send data acquired with nidaq, but you want to send data from the joystick. see the attached simplified vis and read the documentation of the vis (right click on the vis->help). attached vis are not tested, so maybe you have to play around a bit.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 6 of 7
(3,650 Views)
Thank's, now I can use and understand shared memory. But, now I have question about shared memory, so I post it in "Shared memory questions".
Thanks once more.
0 Kudos
Message 7 of 7
(3,572 Views)