LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dll and embedded systems

I have a question regarding usage of dll and embedded systems.

If I make a dll with all the functions that I ned to operate the microcontroller or my device , I suppose I should be able to call those functions from labview , right?

In case labview can call those functions, how does labview translates them in machine code?

 

Thank you

0 Kudos
Message 1 of 7
(4,145 Views)

hi tau,

 labview cant traslate its code to any machine code...Please check this www.ni.com/embedded

 

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 2 of 7
(4,142 Views)

So how can you call functions from the dll and make use of the hardware capabilities?

When one comunicates with some instrument they send/receive data. Those instruments have some controller in them. How does that controller know what to do with the info?

 

This is a fictional scenario of a fictional device.

The device has read and write to the same ports.

It comes with these functions:

Read enable,

ReadData

Read disable

Write enable

WriteData

Write disable

 

Ok so far?

Now in a breeze I can call these functions from labview in these order:

Write enable

WriteData(12345...)

WriteDisable

Read enable

ReadData (xyz)

 

and so on

 

Now how can labview tell the device what to do? I mean, how do these function call aleternate the behaviour of the device?

 

Is it running in an infinte loop where it waits for a selection of actions to take? Is this loop hardwired in the device?

0 Kudos
Message 3 of 7
(4,132 Views)

hi tau,

 For that you need to install any modules like NI labview embedded module for ARM microcontrollers..In the labview targetted for that ARM microcontrrollers and if in that labview has code interface node or call library function node,then only you can import dlls and automatically

that module will take care of converting into a mchine code...Those things are all hidden to the user..

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 4 of 7
(4,128 Views)

I am not dealing with arm chip in this case. its a card reader/writer that I would like to enhance the user interface. It comes with some functions that I can use.  I am not just interested in this specific device, but also in the theory of communication between labview and other stuff.

Thanks for your replys srikrishnaNF.

0 Kudos
Message 5 of 7
(4,126 Views)

hi tau,

 Are you communicating with your card reader using a serial port?

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 6 of 7
(4,116 Views)

Yup, its serial port, a reall serial the old ways. Would it be any different if it was USB?

Why is the port important?

0 Kudos
Message 7 of 7
(4,113 Views)