steveandrews

Members
  • Content Count

    38
  • Joined

  • Last visited

Community Reputation

0 Neutral

About steveandrews

  • Rank
    Member

Recent Profile Visitors

1,781 profile views
  1. steveandrews

    local connection with second DF instance

    Hi, so firstly I'm using a developer licence. The channel I'm trying to share isn't from a device. It's just an integer that is calculated during a sequence Currently I just have a connection name. Is there a way to specify (with daqfactory networking) a local address or something for a particular instance? The help mentions connection to another instance in acquire mode. But I need user interaction in both instances. Otherwise, yes, writing and reading to a temporary file would work but a little more effort keeping things tidy etc. Cheers
  2. Hi, I have two instances of DF running on one computer (probably not reccomended) that i want to share channels. I just made a new connection in both instances with the same name and set brd on one of the channels. It seems like one instance is talking to the other. I don't know how this is decided upon- maybe whichever was loaded first? I'd like 2-way channel sharing. Is this possible and could you shed a litttle light on the 'proper' way to do this? I don't want to combine both programs really as version history becomes awkward Cheers Steve
  3. steveandrews

    disable click temporarily

    of course!!! Maybe my caffeine level was too low when i asked that. Thanks!
  4. steveandrews

    disable click temporarily

    thanks, I could implement the last suggestion, as a lot of the actions are locked out by default already and i always use quick sequences for actions so wouldn't take much to add a few lines to them, although not sure how i would add a flag to a system dialog box such as load file? The others i could use the: page.pagename.ispoppedup
  5. steveandrews

    disable click temporarily

    yeah, I can't really do that as the open file dialog is quite big, and there are many files in the list that can be double clicked, so will always overlap with something. is there no way to disable mouse input for half a second or so? Cheers
  6. Hi, I have a few instances where a user clicks on something in a pop-up and the popup closes but the click is registered on the item beneath the pop-up. A common one is a user entry for loading a file with system. if the user selects a file and clicks 'open' it's fine. But the tendency is to double click an item in the explorer window, which opens it, closes the system.entrydialog box but then registers a click on an item on the daqfactory screen underneath. I'm sure ive seen some kind of disable click function, but cant find it. Can you suggest a way to 'protect' items from being accidently clicked on? i dont want to disable individual components as thats too much work, rather suppress a mouse click cheers Steve
  7. steveandrews

    table display via lookup

    Yeah you're right. It's always array subsetting that I get stuck on, I guess what's in my head often doesn't translate and I need to realise that a loop is still fast and the easiest way to do it. Thanks for the help
  8. steveandrews

    table display via lookup

    Yeah, I was hoping there might be a more elegant way to 'convert' the value dynamically with some fancy syntax in the expression because the table switches between displaying multiple depths of the array. I can make a separate 3d string array for display I suppose, it can just be generated when the array changes as it changes with a function call
  9. steveandrews

    table display via lookup

    not often, it's a data history received from polled slave devices and gets updated when a user manually requests it or closes a pop-up that has recorded a few actions
  10. Hi, I have a table displaying selected contents of a 3d array (table_array). It's all numerical and if possible id like not to modify this array, just display it. For one of the table columns, i would like the table to take the numerical value, say 0,1,2.. and display text from a look-up string array corresponding to those integers. Forother columns just display the numerical value as it is. I initially thought just expression: lookup_array[table_array[]] but this obviously only displays one value in the table, i need to display all the rows of table_array but substituting the numerical value of each row for that column, with a string from the lookup array. Any ideas? Cheers
  11. Hi, I have a table with many rows. When the table fills, I would like it to display with the bottom row visible (i.e the scroll bar at the bottom rather than at the top). Any way to do this in code? cheers Steve
  12. steveandrews

    2 device conflict?

    Ooops! just figured out that it's the collapsing magnetic field in the solenoids that's causing it. It's odd because they are on a separate power supply and energised by relay boards with all the right diodes etc. Somehow the signal is getting back through the power lines of the embedded computer and causing no other problems except dropping the usb-rs232 to the flow controller. The one to the arduino chip that actually controls the valves seems unaffected! So ignore my question about device conflict, have tested it and the communication part is rock solid Cheers
  13. steveandrews

    2 device conflict?

    Hi, I'm having some issues I think with a conflict between 2 devices. I thought it was an electrical issue but i am now pretty sure it is daqfactory. I have a usb to rs232 connected to a flow controller and use a custom protocol to poll it via the virtual comm port as per the instructions in the manual, driven by 1 channel at a timing of 1 sec and add the parsed data to channels. This works great. I also have an arduino chip built into my embedded computer that is running a modbus protocol (although the chip is built in to the board, i think it also runs a usb to serial adapter chip). This also works great and i use a sequence to read some registers and put them in channels. To write to some registers i just use the modbus commands on the channel and set the channel. The problem I am having is that if i switch some valves on/off by setting the registers, sometimes the RS232 adapter to the flow controller will drop out and i have to unplug in order to then initcom(). I get a timing lag error. I think what is happening is maybe if the writing to the modbus registers happens at the same time as the channel timing talking to the flow controller, the flow controller comm port gets locked up somehow? I'm not sure if this is an accurate diagnosis. The modbus read doesn't seem to be affected but it is in a sequence with a try catch. I tried reading the flow controller in the sequence with the modbus, with both reads from the modbus and the flow controller on a 1 sec loop with 0.5 sec offset. They both have try catch and the data comes in fine. But writing rapidly to the modbus I can still get the flow controller to drop out. I was thinking to move the writing to modbus into the sequence also, so I can be sure it never sends data at the same time as the reads but I'm wondering if i'm going about this all wrong!? I don't understand how the two different devices can affect each other like this as it's a different device, different protocols and different ports??? Any ideas would be great Cheers
  14. steveandrews

    VNC multiple windows

    Ah nice, was this one of the research aircraft? NASA DC8? I'll have a read through section 12.7 Connecting to a remote copy of DAQFactory cheers Steve
  15. Hi, Ok, how to describe this... So I have an embedded computer with a small touch screen running daqfactory that is doing some process control. This will have a basic user interface to work well with the small screen. I want to then be able to access daqfactory on this computer from another computer but view a more complex user interface. At first I thought maybe daqfactory running on both computers, but this could get complicated. Then I thought maybe I can use VNC and log on to the embedded computer. Is it possible to use popup page modal and when daqfactory starts to make two windows, maybe on separate virtual desktops, display one on the small touch screen and VNC on to the other one from the computer. Then I can control the program from either computer and the embedded one can mean the system is standalone Cheers Steve