How do I enter the computer registers

I look at using Labview Realtime on a car PC.

The embedded PC's GPIO ports mapped to an address register.

In this case 0 x 0284. First 4 Bits are output, 4 second are entered,

How to read and write fron this fixed the registry.

If I wrote the Code C under MS-DOS, it would be:

Outportb(0x0284,myOutputState_u8);

myInputs_u8 = InportB (0 x 0284);

[Apologies if my C may be a little rusty.

Old forum messages suggest the use of the 'port.vi' and 'port.vi' but I'm not seeing it, or its equivalent in LV 2012.

There are visas Peek and Poke functions that seem to be VXI and PXI specific resource.

LabVIEW help links for:

IO port screw

Have the Palette: Functions and connectivity screws

Request: Basic package (Windows). This topic may not match its corresponding palette in LabVIEW depending on your operating system, or the licensed products and the target.

Use the screw e/s Port to read and write to a detail record address.

But is not particularly useful

Any suggestions?

OK, the first and most important:

About your operating system, the functions of Port maybe aren't in a palette. If research them it is not viable.

See the help details in the 'Port' for more specific information:

From Windows Vista (so 7, 8 and future), the function is not in the palette more. Code LV existing with these functions using works on 32-bit Vista/7, but will fail on 64-bit (because of security features of the operating system).

Research of the vi.lib of these functions in 2013 LV, I have not found and it seems that there is not yet any documentation. So I guess that "in Port" and "Out" are now completely removed from LV (from 2013).

Due to this KB, using these functions should be possible to run it on LV RT (ETS based at least). But as this KB is very old, I wouldn't count on it.

Regarding LV RT and a RTOS: LV RT supplies you with a RT OS license (and the installation components) based on ETS, VxWorks or today even a RT Linux according to the target. The kernel is selected by the target for installation.

I don't know if LV RT (OS) supports Atom based desktop computers, you must check if you select and install this system as the target of the RT using MAX. If the target does not appear in MAX, you can create a bootable USB to install RT on target office (Tools > create Desktop PC USB Drive Utility).

hope this helps,

Norbert

Tags: NI Software

Similar Questions

Maybe you are looking for