Example lua script for programming T7 | LabJack
 

Example lua script for programming T7

5 posts / 0 new
Last post
roopeshmeleth
roopesh.meleth's picture
Example lua script for programming T7

Hello. i have a T7 which i want to program for stream mode . I have tried the streaming in Lab view . In my labview code i wait for an analog pin to become at a voltage high which starts the stream.vi code until the pin  becomes Low . This seems to be a software or host controlled triggering to start the stream and thus the acquisition. I want the triggering pulse to start the stream in T7 itself and print the output through USB  or Ethernet. I have read some of your examples ,but was unable to get a clear idea of what has to be done in order to achieve what i want. if a ready made program is available ,please send me.. Any one  done this using lua scripting ? can i program T7 using labview itself?

LabJack Support
labjack support's picture
We do not have a LabVIEW

We do not have a LabVIEW example for triggered stream at the moment. I will see if we can get one made.

The easiest solution is to continuously stream your data points as well as your trigger signal. Then in software select the desired data set starting from the trigger. You can even get a few points from before the trigger this way.

alexander756
alexander756's picture
Hi. Is it possible to switch

Hi. Is it possible to switch all DIO to high level if I lost Ethernet connection with T7 module?

LabJack Support
labjack support's picture
That is possible. The

That is possible. The watchdog timer can be used to perform several actions if there is no communication within a specified period of time: 

https://labjack.com/support/datasheets/t-series/watchdog

LabJack Support
labjack support's picture
The watchdog is a likely way

The watchdog is a likely way to do that:

https://labjack.com/support/datasheets/t-series/watchdog

Lua scripting is another possibility, but I would look at the watchdog first.